A simple implementation of "Nim"