Skip to content

Implementation Timeline

chen445 edited this page Jun 21, 2021 · 1 revision

Day 1

Set up the project skeleton that consists of a simple Nodejs backend to retrieve game index.js, sound effects, background music, icon images and JavaScript files. Implement a welcome page logic that has a button for the player to start the game.

Day 2

Implement the logic to show the game board to the user. Use a 2D array to represent the board where each entry is BoardEntry. The BoardEntry has

  • A Boolean indicates whether the icon has been matched.
  • A id that identifies the icon.

Day 3

Implment the algorithm to handle user click on the icon. I will use either dfs or bread first search to find whether there is path between icon one and icon two. The path consists of 3 lines at most. More than 3 lines is considered invalid path.

Day 4

Add the sound effects and background music to the game. Sound effects applies when

  • the player click on the icon
  • Icons are matched
  • The player wins the game. There are two background music. One is in the welcome page. The other is played during the game play.

Day 5

Add the animation to the gameplay when there is matched, for example, a line is shown to indicate the path between them.

Clone this wiki locally