Use β β β β or W A S D to move Swipe to play!
Picks moves randomly from available legal directions. Used as a baseline to compare other strategies.
Bitboard expectimax with a tuned heuristic. Uses pre-computed lookup tables for O(1) move operations and searches the game tree to maximize expected value.
Monte Carlo Tree Search β runs random rollouts from each possible move and picks the one with the highest average outcome.
Dueling Deep Q-Network trained with advanced reward shaping (corner bonus, monotonicity, empty cell incentives).
Dueling CNN that learns spatial patterns on the 4Γ4 board with one-hot encoded tile channels.
Expectimax Rust: Uses bitboard representation (u64 with 4 bits per tile) and pre-computed lookup tables (65,536 entries) for instant move calculations β including a per-row heuristic table scoring empty cells, merges, monotonicity and tile sums. Search depth adapts to board complexity.
Risk-Averse Search: At chance nodes, blends average and minimum:
(1-Ξ±)Γavg + Ξ±Γmin where Ξ±=0.25, making moves more conservative.