2 Player Games

Nim Strategy

Nim Strategy is a clean, tactile rendition of one of mathematics' most celebrated impartial strategy games, created by MCR for TapGameHub. Arranged across four carved wooden trays, sixteen glowing jade stones invite a deceptively simple duel—on your turn, choose any single row and lift away as many stones from that tray as you like.

Nim Strategy preview

Ready to play?

Play here with no in-game ads. Hosted by TapGameHub; no account or installation required. Progress, where supported, stays in this browser.

Select Play game to start here.

Updated

About Nim Strategy

Nim Strategy is a clean, tactile rendition of one of mathematics’ most celebrated impartial strategy games, created by MCR for TapGameHub. Arranged across four carved wooden trays, sixteen glowing jade stones invite a deceptively simple duel—on your turn, choose any single row and lift away as many stones from that tray as you like. There are no dice rolls, hidden cards or luck-based timers; every position on the board is governed by pure combinatorial logic.

Play face-to-face with a friend in 2P Local mode, randomize pile counts to test raw calculation on the fly, or challenge a Grandmaster AI powered by exact Sprague-Grundy binary Nim-sum theory across both Normal and Misere rule variants.

How to play

  1. Choose vs Grandmaster for solo brainteasers or 2P Local for two-player table play.
  2. Check the Rule button in the top bar to pick Normal (taking the last stone wins) or Misere (taking the last stone loses).
  3. In solo mode, optionally toggle Go: 1st / Go: 2nd—picking first or second matters enormously depending on the starting piles!
  4. Click or tap any stone inside a row to highlight stones from that gem to the right end of the tray in golden amber.
  5. Click Take Selected (or press Space / Enter) to remove those stones and pass the turn. Outmaneuver your opponent down to the final stone!

Controls

Action Keyboard Mouse & Touch
Pick Row 1 to 4 Keys 1, 2, 3 or 4 Click or tap stones inside the desired row
Change Selected Count Left / Right or Up / Down Arrows Tap a different stone in the row (or tap the tray)
Confirm Move Enter or Space Tap Take Selected button
Switch Normal / Misere Rule button in top bar Tap Rule button
Deal Random Piles Random Piles button Tap Random Piles

Mathematical rules and Grandmaster AI

  • Classic 1-3-5-7 setup mirrors the famous four-heap parlor arrangement where binary Nim-sum equals zero (1 XOR 3 XOR 5 XOR 7 = 0), rewarding the second player under error-free play.
  • Random Piles generator deals fresh four-row distributions where the opening Nim-sum is frequently non-zero, letting the first player seize immediate control by zeroing the XOR balance.
  • True Misere endgame logic shifts strategy right before the final multi-stone pile disappears—leaving an odd number of single-stone piles forces your opponent to claim the fatal last gem.
  • Career win tracker records every solo triumph you earn against the Grandmaster AI.

Strategy tips

  • Split piles into binary powers of 1, 2 and 4. Mentally decompose every row count into powers of two (for instance, 7 = 4 + 2 + 1 and 5 = 4 + 1). Whenever every power of two appears an even number of times across all four rows, the player about to move is in a losing trap!
  • Choose Go 2nd on the classic 1-3-5-7 board. Because 1-3-5-7 already pairs off every binary bit evenly, letting the Grandmaster AI move first forces it to break symmetry so you can restore even pairs on every reply.
  • Watch the Misere pivot point. Play Misere exactly like Normal Nim until only one row contains two or more stones; on that crucial turn, reduce that row to either 1 or 0 so you leave an odd total of single-stone rows behind.
  • Create twin piles in casual 2P games. Against human opponents, leaving two equal rows (such as 0, 4, 4, 0 under Normal rules) lets you mirror whatever your friend does on the opposite row to guarantee victory.

Frequently asked questions

What is the difference between Normal and Misere Nim rules?

Under Normal rules the player who removes the very last stone on the board wins; under Misere rules taking the final stone makes you lose, forcing a clever endgame twist.

Can the Grandmaster AI actually be beaten on the classic 1-3-5-7 board?

Yes! Because 1, 3, 5, 7 starts with a balanced binary XOR sum of zero, choosing Go 2nd in the top bar puts YOU in the mathematically winning seat if you play without error.

How many stones am I allowed to remove on a single turn?

You must remove at least one stone, and you may take as many stones as you wish—even an entire row—provided every stone you take comes from the same row.

Can I generate fresh pile sizes instead of 1-3-5-7 every time?

Yes. Click the Random Piles button below the board at any moment to deal four unpredictable stone counts so neither player can rely on memorized openings.

Does Nim Strategy support two human players on one screen?

Yes. Switch the top toggle to 2P Local to play head-to-head turns on the same computer, tablet or phone under either Normal or Misere rules.

Game not loading or controls not responding? See help with loading, controls and saves.

Search 204 free games

Instant browser play — no download or sign-up.

2048Puzzle GamesA Dark RoomAdventure GamesAstrayPuzzle GamesDesert RacingRacing GamesOpen Tower DefenseStrategy GamesEvolveSimulation GamesChessBoard GamesSolitaireCard GamesHextrisPuzzle GamesRadius RaidAction GamesGem CavernsAdventure GamesFour in a RowBoard GamesCheckersBoard GamesReversiBoard GamesDots and Boxes2 Player GamesAir Hockey2 Player GamesHoop ShotSports GamesMini GolfSports GamesPizza RushCooking GamesStyle StudioDress Up GamesMath SprintLearning & Creative GamesWord SearchLearning & Creative GamesMinesweeperPuzzle GamesSudokuPuzzle GamesFreeCellCard GamesSunny LemonadeSimulation GamesSnakeAction GamesBrick BreakerAction GamesTurbo LapsRacing GamesTreasure MazeAdventure GamesSea BattleStrategy GamesTower BlocksAction GamesUnderrunAction GamesCorner DriftRacing GamesHill BuggyRacing GamesSunset HighwayRacing GamesHexGLRacing GamesSpace HuggersAction GamesBounce BackAdventure GamesLight CoilAction GamesClumsy BirdAction GamesBubble ShooterPuzzle GamesWater Sort PuzzlePuzzle GamesJewelsbackPuzzle Games0h h1Puzzle Games0h n0Puzzle GamesDino GameAction GamesBlock PuzzlePuzzle GamesClassic Pong2 Player GamesGrid DefenderStrategy GamesSpider SolitaireCard GamesFifteen SlidePuzzle GamesNonogramPuzzle GamesSokoban CratePuzzle GamesLights OutPuzzle GamesPipe PlumberPuzzle GamesLaser MirrorPuzzle GamesHashi BridgesPuzzle GamesKakuro SumsPuzzle GamesKenKen CagesPuzzle GamesSlitherlinkPuzzle GamesTangram FitPuzzle GamesUnblock CarPuzzle GamesHexa FillPuzzle GamesFlow ConnectPuzzle GamesPeg SolitairePuzzle GamesTower of HanoiPuzzle GamesUntangle PlanarPuzzle GamesCode BreakerPuzzle GamesStar BattlePuzzle GamesTents & TreesPuzzle GamesGravity MazePuzzle GamesPoly SlicePuzzle GamesChain AtomsPuzzle GamesNeon PinballAction GamesAsteroid DriftAction GamesFruit SliceAction GamesGrapple SwingAction GamesFlip RunnerAction GamesWhack-a-MoleAction GamesRhythm SpikeAction GamesAlien ShieldAction GamesSub Depth ChargeAction GamesSky InterceptorAction GamesKnife ThrowAction GamesColor GateAction GamesWell DiverAction GamesCopter CaveAction GamesLaser Grid DodgeAction GamesRiver HopperAction GamesCloud JumperAction GamesIce DodgeballAction GamesPolarity MagnetAction GamesMahjongBoard GamesGomoku FiveBoard GamesChinese CheckersBoard GamesBackgammonBoard GamesMancalaBoard GamesNine Men's MorrisBoard GamesLudo RaceBoard GamesDominoes ChainBoard GamesHex PathBoard GamesMini ShogiBoard GamesSnakes & LaddersBoard GamesCorridor WallsBoard GamesFox & HoundsBoard GamesPyramid 13Card GamesTriPeaks SolitaireCard GamesYukon SolitaireCard GamesGolf SolitaireCard Games21 StacksCard GamesHearts TrickCard GamesSpades BidCard GamesCrazy EightsCard GamesCribbage 15Card Games8-Ball PoolSports GamesBullseye ArcherySports GamesPenalty KickSports GamesTen-Pin BowlingSports GamesTable TennisSports GamesBadminton CourtSports GamesDarts 301Sports GamesIce CurlingSports GamesSki SlalomSports GamesHome Run PitchSports GamesTrack HurdlesSports GamesClay TargetSports GamesHex ConquestStrategy GamesCard BattlerStrategy GamesNode SiegeStrategy GamesTurn SquadStrategy GamesCastle TrebuchetStrategy GamesAnt TrailsStrategy GamesTraffic ControlStrategy GamesBridge TrussStrategy GamesTrap KeepStrategy GamesMars GridStrategy GamesAuto FormationStrategy GamesHighway OvertakeRacing GamesTrials BikeRacing GamesPrecision ParkingRacing GamesSpeedboat BuoysRacing GamesRail SwitcherRacing GamesIce HovercraftRacing GamesLunar TouchdownRacing GamesSlot CircuitRacing GamesPixel RogueAdventure GamesDeep DiverAdventure GamesFossil DigAdventure GamesWind GliderAdventure GamesStealth GuardAdventure GamesEcho CloneAdventure GamesLighthouse BeamAdventure GamesVine ExplorerAdventure GamesAlchemy CauldronAdventure GamesZero-G SalvageAdventure GamesDeep MinerSimulation GamesPocket FarmSimulation GamesEspresso BarSimulation GamesReef AquariumSimulation GamesMini City GridSimulation GamesCaravan TradeSimulation GamesBelt FactorySimulation GamesOrbit SandboxSimulation GamesHoneycomb HiveSimulation GamesRail NetworkSimulation GamesFlower GeneticsSimulation GamesBurger StackCooking GamesSushi BarCooking GamesWaffle IronCooking GamesRamen TimerCooking GamesSmoothie BarCooking GamesArtisan BakeryCooking GamesGelato ScoopCooking GamesSteamer BasketCooking GamesCozy RoomDress Up GamesPet SalonDress Up GamesCake DecoratorDress Up GamesSneaker StudioDress Up GamesPatio GardenDress Up GamesPortrait MakerDress Up GamesNail Art StudioDress Up GamesSticker ZineDress Up GamesTank Maze Duel2 Player GamesTap Tug2 Player GamesLight Trail Duel2 Player GamesSumo Ring2 Player GamesSlime Volley2 Player GamesWind Cannon2 Player GamesNim Strategy2 Player GamesWord RainLearning & Creative GamesLetter WheelLearning & Creative GamesTone MemoryLearning & Creative GamesFraction PieLearning & Creative GamesCapital QuizLearning & Creative GamesElement MatchLearning & Creative GamesClock AnglesLearning & Creative GamesBinary SwitchLearning & Creative GamesTyping WPMLearning & Creative GamesFlash NumbersLearning & Creative GamesTic Tac ToeBoard GamesBlock Blast PuzzlePuzzle GamesWord GuessLearning & Creative GamesWatermelon MergePuzzle GamesUnblocked Games24 gamesSolitaire12 gamesCar Games14 gamesBlock Puzzle & Merge Games12 gamesWord Games10 gamesBall & Pool Games14 gamesAction GamesArcade · Runners · Shooters · PinballAdventure GamesExploration · Roguelite · Mazes · QuestsPuzzle GamesLogic Grids · Numbers · Nonogram · MatchingRacing Games3D Racing · Drifting · Hill Climb · Time TrialsSports Games8-Ball Pool · Mini Golf · Basketball · BowlingStrategy GamesTower Defense · Turn-Based · Hex Tactics · NavalSimulation GamesIdle & Tycoon · Farming · Automation · SandboxDress Up GamesFashion · Room Decor · Makeover · Custom DesignCooking GamesRestaurant · Pizza & Burgers · Sushi · BakingCard GamesSpider Solitaire · Klondike · FreeCell · Trick-TakingBoard GamesChess · Mahjong · Checkers · vs Computer or Friend2 Player GamesSame Screen · Shared Keyboard · Multi-Touch · VersusLearning & Creative GamesWord Games · Typing Test · Mental Math · Memory