Skip to content

Commit

Permalink
fix grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-mate authored Nov 24, 2020
1 parent 3421527 commit 0adc889
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,35 @@
- [DEMO LINK](https://<your_account>.github.io/js_2048_game/)
2. Follow [this instructions](https://mate-academy.github.io/layout_task-guideline/)
- There are no tests for this task so use `npm run lint` command instead of `npm test`
- TODO(ihor): fix me

### Task: 2048 game

Hey! Are you ready for a real hard check of your JavaScript skills, ninja?
If you are still here, let's do it.

In this task, you need to implement the 2048 game like in [this reference](https://play2048.co/)
Don't play for so long! We need back to work.
Don't play for too long! We need you to write the code!

Okay, what we have?
1) HTML and CSS are completely done. So you can use it, or implement your own design if you want.
Okay, what do we have?
1) HTML and CSS are already written. You can use it, or implement your own design if you want.
2) Reference.

That's all.
That's it!

Okay, okay. Also, we have some rules:
1) The game field is 4 x 4
2) Each cell can be empty or contain one of number: 2, 4, 8 ... 2^n
2) Each cell can be empty or contain one of the numbers: 2, 4, 8 ... 2^n
3) The player can move cells with keyboard arrows
4) All the numbers should be moved in the selected direction as much as possible
4) All the numbers should be moved in the selected direction until all empty cells are filled in
- 2 equal cells should be merged into a doubled number
- The merged cell can’t be merged twice during one move
5) The move is possible if something will be changed after that
5) The move is possible if at least one cell is changed after the move
6) After move 2 or 4 appears in a random empty cell. 4 probability is 10%
7) When 2048 collected should be shown win message.
7) When 2048 value is displayed in any cell, win message should be shown.
8) The `game over` message should be shown if there are no more available moves.
9) Hide start message after begin.
10) Change the `Start` button to `Restart` after begin.
9) Hide start message when game starts.
10) Change the `Start` button to `Restart` after the first move.
11) Increase score with each move. The score should be increased by the sum of all merged cells.

Hints:
Expand Down

0 comments on commit 0adc889

Please sign in to comment.