Scoring Nim

This paper introduces a new scoring variant of the combinatorial game Nim that generalizes both normal and misère play rules, and analyzes its theoretical properties, including optimal strategies and payoff functions.

Hiromi Oginuma, Masato Shinoda

Published Tue, 10 Ma
📖 5 min read🧠 Deep dive

Imagine you are playing a classic game of Nim. You have several piles of stones, and you and a friend take turns grabbing as many stones as you want from a single pile. The person who grabs the very last stone wins. This is a game of pure logic; if you play perfectly, you can always know who will win before the game even starts.

Now, imagine we tweak the rules to make it more like a real-life negotiation or a video game with a high score. This is the game "Scoring Nim," proposed by researchers Hiromi Oginuma and Masato Shinoda.

Here is the simple breakdown of what they discovered, using some everyday analogies.

1. The New Rules: Points vs. Victory

In the old game, the only thing that mattered was who took the last stone.
In Scoring Nim, there are two ways to get points:

  • The Grind: You get 1 point for every single stone you grab.
  • The Grand Prize: The person who grabs the very last stone gets a special bonus of NN points.

The winner isn't just the one who takes the last stone; it's the person with the highest total score at the end.

The Magic Variable (NN):
The researchers introduced a "bonus knob" called NN. You can turn this knob to any number, even negative ones!

  • N=N = \infty (The Infinite Prize): If the bonus is huge, players will ignore the points they get from individual stones and fight desperately to grab the last stone. This turns the game back into the classic "Normal Play" Nim.
  • N=N = -\infty (The Cursed Prize): If the bonus is a massive penalty (like a huge fine), players will desperately try to avoid taking the last stone, forcing their opponent to do it. This becomes "Misere Play" Nim.
  • N=0N = 0 (The Greedy Game): If there is no bonus, players just want to grab as many stones as possible. They play like greedy kids at a candy store, taking huge handfuls just to fill their pockets.
  • N=3N = 3 (The Middle Ground): This is where it gets weird. If the bonus is a small, specific number, the optimal strategy changes completely. You might have to take fewer stones than you want, or leave specific amounts behind, to trick your opponent into a trap.

2. The "See-Saw" of Strategy

The most fascinating part of the paper is how the "best move" changes as you turn the NN knob.

Imagine you are playing with piles of 5, 4, and 2 stones.

  • If the bonus is huge (or huge negative), you play the standard Nim strategy (like a chess grandmaster).
  • If the bonus is zero, you play the "Greedy" strategy (grab everything you can).
  • But in the middle? The strategy becomes a chaotic dance.

The researchers found that for certain bonus values, the best move is to leave the opponent in a position where neither the standard strategy nor the greedy strategy works well. It's like a game of poker where, depending on the pot size, you might bluff, fold, or go all-in, and the "right" move shifts slightly every time the pot size changes by a dollar.

3. The "Breakpoints" (The Bumpy Road)

The paper analyzes a "Payoff Function." Think of this as a graph showing how much better the first player will do compared to the second player, depending on the bonus NN.

If you draw this graph, it looks like a jagged mountain range with many sharp peaks and valleys.

  • The Breakpoints: These are the specific values of NN where the strategy suddenly flips. One moment, the best move is to grab 2 stones; the next moment (with a tiny change in the bonus), the best move is to grab 5 stones.
  • The Discovery: The researchers found that as the piles of stones get bigger, the number of these "switching points" explodes. It's not just a few bumps; it's a complex, jagged landscape. This means that in a game with many stones, the "perfect strategy" is incredibly sensitive to the exact value of the bonus. A tiny change in the rules can completely rewrite the game plan.

4. Why Does This Matter?

You might ask, "Who cares about a stone game?"

This paper is actually a deep dive into how incentives change behavior.

  • In the real world, we often think people act based on one goal (e.g., "win the election" or "maximize profit").
  • But Scoring Nim shows that when you mix small, steady rewards (grabbing stones) with one big, volatile reward (the last stone), human (or computer) behavior becomes incredibly complex and unpredictable.

It teaches us that in any system—whether it's economics, sports, or AI—if you change the "bonus" slightly, the optimal strategy doesn't just shift a little; it can shatter and reassemble in a totally new, counter-intuitive shape.

Summary

Scoring Nim is a game that bridges the gap between "winning at all costs" and "collecting as much as possible." The researchers discovered that the path to victory isn't a straight line; it's a jagged, complex road where the best move changes constantly depending on the size of the prize. It's a beautiful mathematical reminder that context is everything: the same move can be a genius play or a terrible mistake, depending entirely on the rules of the game.