There are three piles of marbles. You take against the computer. You may take away as many marbles as you want from one pile each turn. Whoever gets the last marble wins. The rules are very simple, but there are many interesting underlying mathematical patterns. See if you can figure these out and try to win a game or two.
Chris Riederer (2021). The Take Away Game (https://www.mathworks.com/matlabcentral/fileexchange/8172-the-take-away-game), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!