How to Play the game.
- Use arrow keys to move the player and collect the candies.
- Try to collect the candies in the minimum number of moves possible.
Rendering random sprites
For each row, one column is randomly selected and a candy is placed in it.
Assumptions
- Number of candies is equal to
boardSizeY
.
- If boardSizeY is 10, then the initial row position of player is 5.
Local Setup for contribution
- Fork the repo and clone your forked repo.
- Create a branch for the feature named
username-featurename
.
- Run
npm i
to install libraries and tool the project uses.
- Run
npm run start
to start game.
Contributors Guide
- Please create an Issue or comment on existing issue before sending a PR.
- Make sure all tests are passing. This can be done locally by running
npm run test
. Tests are also run via CI and you'll get a build status right on the PR itself.
- Run
npm run format
before the final commit.
- Allow edits from maintainers on the PR.