I didn't look at the game, but converting from hex to binary is easy since one of those bases is a power of the other. It's a 16-entry lookup table, but just like memorizing the multiplication table, there are easy-to-remember patterns. The fact that there are two digits just means to do it twice and concatenate the results (padding to 4 bits first).