Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Nim
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Winning positions == The practical strategy to win at the game of nim is for a player to get the other into one of the following positions, and every successive turn afterwards they should be able to make one of the smaller positions. Only the last move changes between misère and normal play. {| class="wikitable" |- !2 heaps !3 heaps !4 heaps |- |1 1 * |1 1 1 ** |1 1 1 1 * |- |2 2 |1 2 3 |1 1 n n |- |3 3 |1 4 5 |1 2 4 7 |- |4 4 |1 6 7 |1 2 5 6 |- |5 5 |1 8 9 |1 3 4 6 |- |6 6 |2 4 6 |1 3 5 7 |- |7 7 |2 5 7 |2 3 4 5 |- |8 8 |3 4 7 |2 3 6 7 |- |9 9 |3 5 6 |2 3 8 9 |- |n n |4 8 12 |4 5 6 7 |- | |4 9 13 |4 5 8 9 |- | |5 8 13 |''n'' ''n'' ''m'' ''m'' |- | |5 9 12 |''n'' ''n'' ''n'' ''n'' |- | colspan = "3" | * Only valid for normal play.<br/>** Only valid for misère. |} For the generalisations, ''n'' and ''m'' can be any value > 0, and they may be the same.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)