Skip to content

michaelrbock/verilog-minesweeper-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Verilog Minesweeper Solver.

A Minesweeper AI written in Verilog HDL. Solves ~80% of 8x8 boards correctly.

Abstract: The goal of our end of the year project was to implement an automated version of the game, Minesweeper. We implemented a number board generation algorithm, tile cascading, and an artificial intelligence system that could flag mines and solve the game. In order to implement this, we used the hardware description language Verilog and simulated our design using ModelSim10.

Quick Start Guide:

  1. Start Modelsim
  2. Create new project
  3. Add existing Files: minesweeper_final.v & minesweeper_tb.v
  4. Compile > Compile All
  5. Simulate > Start Simulation, choose minesweeper_tb (Enable optimization OFF)
  6. run at least 2000000ns
  7. Boards and result are printed to Modelsim console
  8. To set a different board, open minesweeper_final.v: set mine_row_[0 to 7] to preferred board (lines 52-59), set num_mines on line 248.
  9. Save, compile, re-start simulation, run.

About

💣 A Minesweeper AI written in Verilog HDL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published