Encoding Checkers in three longs
Today we’re going to encode state of International Checkers game in as little as possible. There are two players, each of them has at most 20 pieces, some are men, some are kings. The board is 10 by 10 big (so has 100 fields in total). First solution we may have is to encode position … Continue reading Encoding Checkers in three longs