2048: Difference between revisions
Cleaned up task description to make it more succinct, more accurate, and clearer. Also cleaned up html.
(Cleaned up task description to make it more succinct, more accurate, and clearer. Also cleaned up html.) |
|||
Line 11:
:* All tiles move as far as possible in that direction, some move more than others.
:* Two adjacent tiles (in that direction only) with matching numbers combine into one bearing the sum of those numbers.
:* A move is valid when at least one tile can be moved,
:* A new tile is spawned at the end of each turn at a randomly chosen empty square (if there is one).
:* Most of the time,
:* To win,
:* The player loses if no valid moves are possible.
Line 22:
;Requirements:
* "Non-greedy" movement.
<big><big> [2][2][2][2] </big></big>
Line 34:
<big><big> .........[8] </big></big>
* "Move direction priority".
<big><big> ...[2][2][2] </big></big>
Line 48:
* Check for valid moves.
* Check for a
* Check for a lose condition.
<br><br>
|