Assignment to create a program that plays Nim