Advertisement
Dorijanko

2048

Aug 24th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. You need to play 2048. No point limit. There are 16 test cases, each with a different seed.
  2. Interaction: First, the interactor puts a 4 and a 2 on a random place on the 4*4 matrix. The following procedure is repeated:
  3. The interactor outputs the current state of the game. Example:
  4. 0 2 0 4
  5. 0 0 0 2
  6. 0 0 4 0
  7. 16 0 0 16
  8. Your program outputs 'U', 'L', 'D' or 'R' that do the same thing they do in normal 2048.
  9. Example if your program outputs R:
  10. 0 0 2 4
  11. 0 0 0 2
  12. 0 0 0 4
  13. 0 0 0 32
  14. 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:
  15. 0 0 0 0
  16. 0 0 0 0
  17. 0 0 0 0
  18. 0 0 0 0
  19. Then your program must terminate.
  20. 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