Download Minesweeper
Transcript
Introduction The game of minesweeper requires a user to navigate through a grid, while systematically flagging “mines” and clearing safe cells. The user wins by successfully flagging all mines within the grid. The user loses by either flagging a cell that does not contain a mine or clearing a cell that does contain a mine. This project involves implementing minesweeper using an M68HC11 evaluation board (EVB), a Spartan xcs10-3pc84 FPGA, and an external perforated board. The EVB controls the game logic, while the FPGA sends user input to the EVB and game display updates to the perforation board. Mounted on the perforation board is a keypad, a 5x6 grid of ‘minefield’ LEDs, a ‘win’ LED, a ‘lose’ LED, and four dual 7-segment displays to show current game information (row and column indices, time, and number of mines adjacent to current position). Figure 1 below illustrates the layout of the game. Please refer to Appendix A for a top level block diagram of the game control. Figure 1: Minesweeper Layout 2