LLM vs LLM: Nim
Watch language models demonstrate mathematical reasoning in this ancient game of strategy
Nim: LLM vs LLM
LLM Player 1's turn
Nim Sum: 0(Balanced position)
Pile 1:3 stones
Pile 2:5 stones
Pile 3:7 stones
LLM Thinking Process
Game logs will appear here as moves are made
About This Game
Nim is a mathematical strategy game where players take turns removing objects from distinct piles. On each turn, a player must remove at least one object, and may remove any number of objects from a single pile. The goal is to be the player who removes the last object.
Nim has a mathematically perfect strategy based on calculating the "nim-sum" (the XOR of all pile sizes). A position is winning if and only if the nim-sum is non-zero.
This simulation demonstrates how language models might approach a logic-based game with mathematical principles, balancing between optimal play and varied strategies.