님
Mathematical strategy - take the last object
- 2명
- 3~10분
- 난이도보통

로비
지금은 열린 테이블이 없습니다
테이블을 열면 둘러보는 누구나 참가할 수 있습니다.
플레이 방법
- 한 행에서 원하는 수의 토큰을 제거합니다
- 최소 하나는 제거해야 합니다
- 마지막 토큰을 가져가는 플레이어가 패배합니다
자주 묻는 질문
Take the last object(s) to win (normal play), or avoid taking the last object (misere variant).
Objects (traditionally matchsticks or stones) are arranged in several piles. Classic setup: rows of 1, 3, 5, and 7 objects (16 total). Many variations exist with different starting configurations.
Win by taking the last object (normal) or forcing your opponent to take it (misere). The winning strategy involves binary XOR calculations of pile sizes.
Players alternate turns. On your turn, remove any number of objects from a single pile (at least one, up to all of them). You can only take from one pile per turn.
Learn the Nim-sum: XOR all pile sizes in binary. If Nim-sum is 0 before your move, you're in a losing position (with perfect opponent play). Always aim to leave a Nim-sum of 0 after your move. With two equal piles, mirror your opponent's moves in the other pile.
Nim was comprehensively analyzed by Charles Bouton in 1901, who proved the winning strategy. The name may come from German 'nimm' (take) or archaic English 'nim' (steal).