Player and Computer take turns removing chips. Each can take as many chips as wanted, from one pile only. Wins the player who takes the last chip on the board. Playing reverse, last chip taker looses. Clicking one chip removes it and the ones above it. The cheat button makes the best move for you.
Cite As
Apoio (2024). NIM game (https://www.mathworks.com/matlabcentral/fileexchange/36746-nim-game), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.