Hearthstone Deck Comparison

hearthstone

Say you have your deck and there is a new, but still rather similar, deck. Is there any way to quickly compare the two decks in order to see the changes?

At the moment I'm just checking the cards one by one.

Best Answer

If you have both decks in a text file, say DeckA.txt and DeckB.txt as simple plaintext, you could simply use any diff tool to compare them.

On Linux, typing in a terminal:

diff -q DeckA.txt DeckB.txt > Changes.txt

will produce the changes between the two files, stored in the file Changes.txt. You can control the output to a significant degree, see also the manual page, which you can access via man diff. On Windows, you can use a minGW terminal shell to get access to GNU diff or one of the many GUI tools like TortoiseIDiff or WinMerge.

Modern windows versions have PowerShell, which also knows the diff command, although here it appears not to consider the order of the individual lines within the file. This may be what you want, but a simple sort before diff would do the same for the GNU version;

sort DeckA.txt > DeckA_s.txt
sort DeckB.txt > DeckB_s.txt
diff -q DeckA_s.txt DeckB_s.txt > Changes.txt
rm DeckA_s.txt
rm DeckB_s.txt