Nim — free browser game
Bir sıradaki taşı tıkla — o taş ve sağındaki tüm taşlar alınır. Son taşı alan kazanır.
The classic mathematical strategy game — take stones from three rows, last one to move wins. Beat the perfect AI.
Controls
Click: take that stone and everything to its right · R: restart
How to play
Tips and detailed strategy
Nim is one of the oldest mathematical strategy games. Three rows hold 3, 4, and 5 stones. You and the computer alternate; on each turn you take at least one stone from exactly one row (as many as you want, but all from the same row). In this implementation: click any stone in a row and it plus every stone to its right is removed — so clicking the rightmost stone takes 1, the middle takes half the row, the leftmost takes the whole row. Take the last stone to win (normal play). The computer plays the solved strategy — when the XOR of row sizes is non-zero it finds the move that brings XOR to zero; when XOR is zero it plays randomly. To beat it you need to put it into the XOR=0 trap. The opening (3, 4, 5) has XOR = 3 XOR 4 XOR 5 = 2, so you start in a winning position — but one wrong move hands it back. R starts a new game; wins and losses are saved locally.