Share your repls and programming experiences

← Back to all posts
NIM solver (misere)
SkipperBoop (6)

Input the possible number of objects one can remove. Based on how many objects are left, the program will output if there is a winning strategy for the player whose turn it is, or if you are doomed against a perfect opponent. The depth is just how many numbers the program will analyze.