Game of NIM for COMP2230 Assignment