Classic Tic-tac-toe Game on Spartan-6 FPGA
The project implements the classic tic-tac-toe game on the Spartan-6 FPGA. The game board size is 3×3, and two human players are involved. The board of the game will be displayed on a monitor via VGA. The player who has the turn can press 4 buttons, UP, DOWN, LEFT, or RIGHT to move a blinking cursor on the board. When the cursor is moved to the target grid, the player can press the ENTER button to record the move, and if the game is not ended yet, the other player gets the turn. During the game, the 7-segment display will show the current location of the cursor, and which player’s move is now pending. We also need to constantly check whether or not the game should be over. There can be three outcomes: tie, Player 0 wins, or Player 1 wins. When a game-over condition is met, the game ends automatically, and no new moves are recorded. The final outcome will be shown on the 7-segment display. The user can press the RESET button to start a new game with an empty board.