A python exercise to simulate the 2048 game.
Finish the game in terminal. The program does not need to calculate scores.
Input: W(Up) S(Down) A(Left) D(Right), <CR> to exit.
2 4 2 2
2 0 0 2
0 0 0 0
2 0 2 0
operator: a
2 8 0 0
4 0 0 0
0 0 0 0
4 2 0 0
operator:
...
What you need to do:
- Understand the mechanics of the 2048.
- Proficient with loops and arrays.
- Independent thinking.
It's not what we do once in a while that shapes our lives. It's what we do consistently.
Love U ❤️