Browse Source

docs(twenty-forty-eight):fix audit and readme

pull/2048/head
miguel 2 years ago committed by MSilva95
parent
commit
d275dbf9a2
  1. 54
      subjects/mobile-dev/twenty-forty-eight/README.md
  2. 34
      subjects/mobile-dev/twenty-forty-eight/audit/README.md

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

@ -1,41 +1,33 @@
## twenty-forty-eight ## twenty-forty-eight
### Introduction: It is April 2014, and the popular game "2048" has not yet been released. Your task is to implement the game before the official release. The objective of the game is to slide numbered tiles on a grid to combine them and create a tile with the number 2048.
It is April 2014, and the popular game "2048" has not yet been released. Your task is to implement the game before the official release. To do this, you will need to create a 4x4 table and fill it with tiles valued at either 2 or 4. The game should start with 3-4 tiles placed randomly on the board. <center>
<img src="./resources/2048.01.png?raw=true" style = "width: 500px !important; height: 300px !important;"/>
Players should be able to swipe the tiles in any of the four directions, and the tiles will move as far as possible in that direction. If two tiles with the same value collide, they should merge into one tile with twice the value, and the score should be updated accordingly. After each move, a new tile should appear randomly in an empty slot on the board. </center>
Use any [animation](https://docs.flutter.dev/development/ui/widgets/animation) to smoothly move the tiles. You can choose the colors for the tiles, but it is preferred to use the colors from the original "2048" game.
The game should stop when no legal moves are possible and allow the user to restart. When the game is over, the best score should be updated if necessary.
Remember to include functionality to track and display the current and best scores. Good luck! ### Instructions
To complete this exercise, you will need to do the following: To complete this exercise, you will need to do the following:
1. Set up a development environment for the game. - Create the 4x4 grid and fill it with `tiles` valued at either 2 or 4.
2. Create the 4x4 table and fill it with tiles valued at either 2 or 4. - The game must start with 3-4 `tiles` randomly placed on the board.
3. Implement the ability for players to swipe the tiles in any of the four directions and have them move as far as possible in that direction. - Implement the ability for players to swipe the `tiles` in any of the four directions and have them move as far as possible in the chosen direction.
4. If two tiles with the same value collide, merge them into one tile with twice the value and update the score. - Use [animation](https://docs.flutter.dev/development/ui/widgets/animation) to smoothly move the `tiles`. You are free to choose the colors for the `tiles`.
5. Add a new tile to the board randomly after each move. - If two `tiles` with the same value collide, they should merge into one tile with twice the value, and the score must be updated accordingly.
6. Use animation to smoothly move the tiles. - After each move, a new `tile` must appear randomly in an empty slot on the board.
7. Stop the game when no legal moves are possible and allow the user to restart. - The game ends when no legal moves are possible (i.e., the grid is full, and no adjacent `tiles` have the same value).
8. Update the best score if necessary when the game is over. - You must add a `restart` button so that the player can restart the game and try to achieve a higher score.
9. Include functionality to track and display the current and best scores. - Include functionality to track and display the `current` and `best scores` live during gameplay.
10. Test the game thoroughly to ensure that it is functioning correctly and all objectives have been met. - Update the `best score` if necessary when the game is over.
11. Remember to follow best practices for coding and game development, and be sure to document your code and any decisions made during the development process. Good luck!
Some additional considerations for this exercise might include:
1. Adding a user interface (UI) to the game, such as buttons for moving the tiles and displaying the current and best scores.
2. Implementing difficulty levels or other gameplay options, such as the ability to choose the value of the tiles (e.g. 2, 4, 8, etc.) or the size of the board (e.g. 4x4, 5x5, 6x6, etc.).
3. Adding sound effects or music to enhance the gameplay experience.
4. Adding support for different devices and screen sizes, such as tablets or smartphones.
5. By taking these additional factors into account, you can create a more polished and enjoyable version of the "2048" game.
<center> Remember to follow best practices for coding and game development, and be sure to document your code and any decisions made during the development process.
<img src="./resources/2048.01.png?raw=true" style = "width: 840px !important; height: 420px !important;"/> ### Bonus
</center> To enhance the game, you can consider implementing the following features:
- Design a user interface (UI) for the game, including buttons for moving the `tiles` and displaying scores.
- Add difficulty levels or additional gameplay options, such as the ability to choose `tile` values (e.g. 2, 4, 8, ...) or customize the grid size (e.g. 4x4, 5x5, 6x6, ...).
- Incorporate sound effects or background music to improve the gameplay experience.
- Ensure the game is responsive and supports different devices and screen sizes.

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

@ -1,33 +1,37 @@
#### Functional #### 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) > In order to run and hot reload the 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 crashing?
###### Does the app run without crashes? ###### Does the game start with a 4x4 grid and 3-4 `tiles` randomly placed?
###### Does the game start with a 4x4 table and 3-4 tiles valued at either 2 or 4? ###### Are those `tiles` valued at either 2 or 4?
###### Can players swipe the tiles in any of the four directions, and do they move as far as possible in that direction? ###### Can players swipe the `tiles` in any of the four directions, and do they move as far as possible in that direction?
###### Do tiles with the same value merge into one tile with twice the value when they collide? ###### Do `tiles` with the same value merge into one `tile` with twice the value when they collide?
###### Is the score updated when tiles are merged? ###### Is the score updated when `tiles` are merged?
###### Does a new tile appear randomly on the board after each move? ###### Does a new `tile` appear randomly on the board after each move?
###### Are animations used to smoothly move the tiles? ###### Are animations used to smoothly move and merge the `tiles`?
###### Does the game stop when no legal moves are possible and allow the user to restart? ###### Does the game stop when no legal moves are possible and does it allow the user to restart?
###### Is the best score updated if necessary when the game is over? ###### Does the game include a functionality to track and display the current and best scores.
###### Is the current score displayed during gameplay? ###### Is the current score displayed during gameplay?
###### Is the best score displayed when the game is over? ###### Is the best score updated if necessary when the game is over?
#### Bonus
###### +Does the game contain a user interface (UI), including buttons for moving "pieces" and displaying scores?
###### +Implementing difficulty levels or other gameplay options, such as the ability to choose the value of the tiles (e.g. 2, 4, 8, etc.) or the size of the board (e.g. 4x4, 5x5, 6x6, etc.). ###### +Does the game have difficulty levels or other gameplay options, such as the ability to choose the value of the `tiles` (e.g. 2, 4, 8, etc.) or the size of the board (e.g. 4x4, 5x5, 6x6, etc.).
###### +Adding sound effects or music to enhance the gameplay experience. ###### +Does the game have sound effects or background music to enhance the gameplay experience.
###### +Adding support for different devices and screen sizes, such as tablets or smartphones. ###### +Does the game support different devices and screen sizes like tablets or smartphones?

Loading…
Cancel
Save