Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- You need to play 2048. No point limit. There are 16 test cases, each with a different seed.
- Interaction: First, the interactor puts a 4 and a 2 on a random place on the 4*4 matrix. The following procedure is repeated:
- The interactor outputs the current state of the game. Example:
- 0 2 0 4
- 0 0 0 2
- 0 0 4 0
- 16 0 0 16
- Your program outputs 'U', 'L', 'D' or 'R' that do the same thing they do in normal 2048.
- Example if your program outputs R:
- 0 0 2 4
- 0 0 0 2
- 0 0 0 4
- 0 0 0 32
- Then the interactor, on a random place, places a 2(75% chance) or 4(25% chance). If nothing was able to be put, the interactor outputs:
- 0 0 0 0
- 0 0 0 0
- 0 0 0 0
- 0 0 0 0
- Then your program must terminate.
- Scoring: If the sum of all numbers on the board is A, you get A/16 points for the test case.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement