mysql < quarto.sql
Example game play: mysql> -- Start the game and pass the first piece in the lower nibble mysql> CALL SetupGame(0x0A); -----------------------------------------------------------------------+ | rules | -----------------------------------------------------------------------+ | Quarto: 4 in a line (row, column, or long diagonal) with at least one bit in common wins. CALL Play(move); -- high 4 bits are board position, low 4 bits are piece for next player CALL PrintBoard(base); -- to display the board. Useful bases are 16 and 2. | -----------------------------------------------------------------------+ +------------------------+ | instructions | +------------------------+ | Player 1, play piece A | +------------------------+ mysql> CALL Play(0x00); +---------+ | board | …[Read more]