Skip to content

YueyaoLuo/Project01_Mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game title

MASTERMIND

Screenshots

wireframes

Description:

(MVP version)

  • Only 1 player in the game, computer randomly generated 4 secrete colour code and their order that player is going to guess.
  • Player choose 4 colours in 6 given colours and place them into player section (order matters!)

Game rules:

  1. Player to choose from 6 colours to put into 4 holes and guess the right colours and their positions. Using CHECK button to get some hints regarding the chosen colour and the order.
  2. The secrete colour code may include duplicated colour.
  3. 4 smaller pegs on each row to indicate if the user put the right or wrong colour and their order. BLACK indicate right colour position, GRAY indicate right colour but at the wrong position, NO PEG to indicate a wrong colour that does not appear in the secrete code.
  4. When the guess is correct or run out of 12 guessing turns (decoding board are full), the game is over and has a pop up window sending result message

User story:

  • As a user, I want to know how to play the game
  • As a user, I want to pick up colour
  • As a user, I want to change my mind during each turn
  • As a user, I want to check my guess
  • As a user, I want to restart the game
  • As a user, I want to have a won or lost message

Technologies Used:

  • JavaScript
  • HTML
  • CSS

Getting Started:

Mastermind Game

Next Steps:

  • Have two players in the game and create a score board for them
  • The placement of the hint pegs NOT to indicate which particular code pegs are meant.
  • Thinking of a vacant hole as being another colour code

To-do list:

  • create playing board
  • create bottons
  • set computer randomly generated secrete color code
  • user click to choose colours
  • Button for instructions
  • Button for restart the game
  • Button for backspace, allowing player to change mind
  • Button for checking players choice
  • Hint section to provide feedback based on rules and player's choices
  • pop-up windows to send result message
  • Refine UI

About

GA first project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published