Skip to content

Final project for ECE243, Computer Organization. Designed to work with the DE1-SoC computer system.

License

Notifications You must be signed in to change notification settings

zahamza/Minesweeper_DE1-SoC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper_DE1-SoC

Final project for ECE243, Computer Organization. Designed to work with the DE1-SoC computer system.

Tested using: CPUlator Computer System Simulator
To run just copy and paste code from main.c into CPUlator's text editor. Then click on the drop down menu and select C. Hit complie and load. Click continue to start running


Minesweeper Run

Project Description: We have created a version of Minesweeper to be used in conjunction with the De1-Soc. You lose if you uncover a square and a mine is revealed. If you uncover a square and there is no mine revealed, the square will display the number of mines directly adjacent to it. To win you must uncover all safe squares and flag all bombs

Controls:
Note: You should/can drag ps2keyboard, HEX display, and the VGA display modules closer to each other on CPUlator

  • A position is ‘selected’ if red square is hovering over it
  • Use PS2-Keyboards arrow keys (🠄🠆🠅🠇) to control where to select
  • To Interact with grids we use the KEYs (or push buttons)
    • KEY[0] to reveal/uncover a square
    • KEY[1] to flag a square
    • KEY[2] to question/mark a square
  • If a square is marked as questioned or flagged it can still be uncovered. They can also be set back to uncovered by pressing their respective KEY

Hardware used during game run:

  • PS2-Keyboard for user inputs that control the game
  • KEY/Push-buttons for grid interaction
  • VGA display for actual game interface
  • Private Arm A9 timer is used to count seconds since the game has started
  • HEX Display is used to display time since user started the game (MM:SS)

Features we can/will add:

  1. Keyboard inputs to place in conjuction with KEYS/push_buttons

About

Final project for ECE243, Computer Organization. Designed to work with the DE1-SoC computer system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages