Browse Source

docs(twenty-forty-eight): add new subject and audit

for DEV-4108
pull/1695/head
davhojt 2 years ago committed by Dav Hojt
parent
commit
b672ee8715
  1. 21
      subjects/mobile-dev/twenty-forty-eight/README.md
  2. 17
      subjects/mobile-dev/twenty-forty-eight/audit/README.md

21
subjects/mobile-dev/twenty-forty-eight/README.md

@ -0,0 +1,21 @@
## twenty-forty-eight
### Introduction:
Let us imagine that today is the april of 2014 and we know that the game "2048" is not implemented yet, but will be within a month. As we are aware the game will be a success and it is not such a difficult project to implement. Your task is to implement the game before the author of the game does so.
The game shoud start with a 4x4 table. Every new tile must be valued as either 2 or 4. Start game with 3-4 tiles, which are located randomly on the board. By swiping, tiles are moved towards any of 4 directions as far as possible and if there are two tiles that collide with the same value, they merge into one tile with twice the value, and as a result, the score is updated.
After each move, new tile appears randomly in an empty slot.
You must retain the best score. Score is attained when tiles are merged, i.e. if tiles with a value of 4 are merged, add 4 to current score.
You can use colors of your choice, but colors of the original game are preferred.
Use any [animation](https://docs.flutter.dev/development/ui/widgets/animation) tile movement.
Game should stop when no legal movement is possible, and let user restart game. When game is over, update the best score if it is required.
<center>
<img src="https://github.com/alem-01/alem_public/blob/master/resources/2048.01.png?raw=true" style = "width: 840px !important; height: 420px !important;"/>
</center>

17
subjects/mobile-dev/twenty-forty-eight/audit/README.md

@ -0,0 +1,17 @@
#### Functional
> In order to run and hot reload app either on emulator or device, follow the [instructions](https://docs.flutter.dev/get-started/test-drive?tab=androidstudio#run-the-app)
###### Was the app committed within the required time period?
###### Does the app run without crashes?
###### Play the game for a while. Do tiles move when you swipe the screen?
###### Do tiles with the same value merge into a single tile with double the value?
###### When swiped, do tiles move all the way to the swiped direction? They must stop only if edge of the grid or other tile is encountered.
###### Is the tile movement animated?
###### Try beating best score of the game. After game is over, is the best score updated?
Loading…
Cancel
Save