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!
{{Short description|Game of strategy}} {{about|the mathematical game of strategy|the programming language|Nim (programming language)|other uses|Nim (disambiguation)}} {{Infobox game | name = Nim | image = NimGame.svg | caption = Matches set up in rows for a game of Nim. Players take turns to choose a row and remove any number of matches from it. | years = | genre = {{ubl|[[Mathematical game]]|[[abstract strategy game]]}} | players = 2 | setup_time = | playing_time = | random_chance = None | skills = }} '''Nim''' is a [[mathematical game|mathematical]] [[combinatorial game]] in which two players take turns removing (or "nimming") objects from distinct heaps or piles. On each turn, a player must remove at least one object, and may remove any number of objects provided they all come from the same heap or pile. Depending on the version being played, the goal of the game is either to avoid taking the last object or to take the last object. Nim is fundamental to the [[Sprague–Grundy theorem]], which essentially says that every [[impartial game]] is equivalent to a nim game with a single pile.
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)