nim

A mathematical game of strategy

nim
Return to game
It's your turn

Leaderboard

offline
online
User Points

About the game

Nim is a mathematical game of strategy in which two players take turns removing objects from distinct heaps.

A player can only remove an arbitrary amount of pieces from one single heap. The player that removes the last piece wins the game.


Configuring the game

After logging in, you will be presented with the main configuration screen, as shown below.

Main screen

In order to play, you have to first decide how many columns you want to play the game with (Board Size option). For playability reasons, this number is limited to 50.

Then, please choose the type of adversary you want to be matched with. This can be either the AI or another Human (Multiplayer mode is WIP).

Finally, decide what player plays first and how smart you want the AI to be.

Difficulties

If you're feeling lucky, try the legendary mode... I bet you won't be able to beat the AI in that difficulty!


Playing the game

If "Your Turn" is displayed above the game board, you can make your play by selecting any amount of pieces you wish to remove from a single column.

Play transition

As shown in the image above, if you try to select one piece of a column from the board, all the others above it will also be highlighted. Click on the left mouse button, and the pieces will be removed. The player which removes the last piece will be victorious

If you are clicking on the game pieces and nothing is happening, please check the turn message above the board, as it probably is your opponent's turn to play.

There is also the "Verbose Mode" button. When you click on it, a scrollable chat-style text-box will appear, indicating every play that was done since the start of the game.

Verbose mode

As you already noticed the user can also decide at any moment of the game if he wants to give up.

Give up

If the user gives up, his total score for that match will be 0.


Score Calculation

The total score for each match played is as follows.

Victory screen

Total points = Difficulty Multiplier * Plays Multiplier * Columns Multiplier * Outcome Multiplier

Difficulty Multiplier

0.1*(Difficulty ranging from 1-100).
  • Easy: 25
  • Normal: 50
  • Heroic: 75
  • Legendary: 100

Plays Multiplier

1 + NumberOfColumns/NumberOfPlays

We can easily derive from the formula above that if the number of plays from the user exceeds the number of columns there are on the game, this factor won't have much of an effect on the final score.

This means that the player who wins a game with less plays than another gets more points (if the configuration is exactly the same).

Columns Multiplier

1 + NumberOfColumns/10

Simply put, the more columns you board has, more points you get for playing a match on it.

Outcome Multiplier

If victorious, is equal to 1

If defeated, is equal to 0.1

This means that the total score of a match where you get defeated grants you 10 times less the points if you were to win that same exact match.

About giving up

Giving up doesn't give you any points at all. This will be represented by the "N/A" word in each multiplier when the total score prompt appears.

No points when you give up