What this game is
This is Threes with the shuffle taken out and an opponent put in its place.
Threes (Asher Vollmer and Greg Wohlwend, 2014) is the game 2048 was cloned from, and the subtler of the two: tiles move a single step, 1 and 2 only merge with each other, and the next card is shown before you swipe. In the original that card comes off a shuffled deck and lands in a random lane. Here both are the opponent's move. The computer looks at every card still in the deck and every lane your swipe opened, works out what your best reply would leave you in each case, and picks the card, then the lane, that leaves you the least. You maximise, the dealer minimises — a two-player game in the game-theory sense, hiding inside a solitaire.
Rules
- Arrow keys, WASD or a swipe move every tile one cell in that direction. A tile moves if the cell ahead is empty or holds a tile it can merge with; otherwise it stays. Nothing slides to the wall.
- 1 and 2 merge into 3. From 3 up, two equal tiles merge into their double: 3+3, 6+6, 12+12. A 1 never merges with a 1, nor a 2 with a 2.
- After every move one card enters at the far end of one of the lanes that actually moved. You see the card before the move. The deck is twelve cards — four 1s, four 2s, four 3s — reshuffled when it runs out; the evil dealer draws from the same twelve, it only chooses the order.
- Random dealer only: once a 48 is on the board, about one card in twenty-one is a bonus — a 6 or higher, shown as +. The evil dealer never deals a bonus. It never deals anything that helps.
- The goal tile depends on the level: 384 against a random dealer, 192 at half evil, 96 when the dealer never gives you anything. Scoring is the original's — a 3 is worth 3 points and every doubling triples it, so a 96 is worth 729.
Why the goal drops as the dealer gets nastier
The drop was measured on this very code. A simple player who reads the next card and takes the move with the best position, assuming the worst lane, reaches about 192 against the shuffled deck, 96 at half evil and 48 when the dealer is fully hostile — the same player, the same twelve cards, only the order and the lane are no longer chance. Each goal is one doubling above that.
The dealer is bound by the deck: in every twelve cards it must hand over four 1s, four 2s and four 3s. That bound is what keeps the game playable — a dealer free to choose any value ends the game in about fifteen moves. Even so the shift is the one this site keeps finding: the moment chance is replaced by an opponent, the problem changes class, and the numbers you are used to stop applying.