diff --git a/README.md b/README.md index 40920f6..3a48e22 100644 --- a/README.md +++ b/README.md @@ -28,3 +28,30 @@ Recreate as much of the original game as is reasonable in the one week we have a - Document your answers to these questions in this README. - Use your discussion and answers to create tasks for a trello board. Organize those tasks into deliverable components (e.e., _Scoring_, _Tile Collision_, _Win/Loss_). - Open a PR with your discussion notes and answers to the above questions. Include a link to your Trello board. Indicate in the PR which deliverable(s) you are targeting first. + +### ANSWERS +1. How does scoring work? +when 2 of the same tiles love each other (are the same), they add up in the direction of the swipe, starting from the opposite direction of the swipe. +2. When do tiles enter the game? +At the beginning, and every time we swipe, it randomly places a tile in a space available. +3. How do you know if you've won? +When you get a tile that has 2048 +4. How do you know if you've lost? +When all the spaces are filled and none of the same values are next to each other. +5. What makes tiles move? +When the user presses the arrows on the keyboard. It's based on the direction. +6. What happens when they move? +They traverse across each tile (in the direction) and stop if they hit a wall or a different valued tile. If it's the same value, please read number 1. +7. How would you know how far a tile should move? +We are creating pointers, that tell us the last available space a tile can move to. +8. How would you know if tiles would collide? +We check the tile in the direction of the swipe and the closest one to it (in the same direction), if it matches, we add them. Collision! +9. What happens when tiles collide? +They add together, some weird CSS happens and it changes their data val and their actual value in the div. + +EDGE CASES +diag +
Score
+Best
+