-
Notifications
You must be signed in to change notification settings - Fork 0
Implementation Timeline
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.
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.
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.
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.
Add the animation to the gameplay when there is matched, for example, a line is shown to indicate the path between them.