Skip to content

LukeyReyno/DecimalToBinaryGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DecimalToBinaryGame

Game Design for Basys3 board

Uploading the bitstream to your Basys3 board will allow you to play a game

  • Instructions

      - The game is played by inputting a binary number to match the random decimal number on the 7 segment display.
      - The decimal number is pseudo random (clock based) that ranges from 0 to 99, so the “Answer” input goes up to 6 bits.
      - To input the answer, one must press the indicated button to confirm the positions of the switches.
      - The scoreboard starts by lighting the 0th LED, then counts in a unary way to light up 6 LEDs; there are 5 rounds in total.
      - To get to the next round, the correct answer must be submitted.
      - If an incorrect answer is submitted, the displayed number changes, but the game progress isn’t lost (i.e. if you are on round 3, you stay on round 3, even if your answer is wrong).
      - After getting to the end, LEDs 6, 7, and 8 start to blink, as a congratulatory message.
      - There is also a reset switch that returns the player to round 0. The reset can be used during any point of the game to return to round 0 / the initial state.
  • Controls

      - Reset Switch is number 15
      - Switches 5 (MSB) to 0 (LSB) are used to input answer
      - Center Button is used to submit answer (BTNC [U18])
  • Source Code

      - MyProjectModule.sv is the main module that manipulates the game
      - SevenSegment.sv controls the seven segment display found on the Basys3 board
      - MyProjectConst.xdc is the main constraint file (maps program to physical buttons/switches/LEDs)
  • About

    Game Designed for Basys3 board

    Resources

    License

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published