Search⌘ K
AI Features

Nim Game

Nim Game gives you a heap of stones, and you go first in alternating turns. Remove one to three stones per turn and return whether you can remove the last stone and win with optimal play.

Statement

You and a friend are playing a game called the Nim Game with a heap of stones. The rules are as follows: ...