CS310 Team Lab #10
More MATLAB Programming Practice
Programming

OBJECTIVES

INTRODUCTION

The Game of Nim

Nim is a game involving piles of objects (often matches, sticks, or stones) and two players who take turns removing some of the objects from one of the piles. In some versions of the game, the player who takes the last object wins; in other versions, the winner is the player who avoids taking the last object.

In this problem you will write an interactive MATLAB version of the game of Nim. In the version that you will be writing

This team lab will give you experience writing code with more complicated control flow, writing and using functions, and handling user input. Your program will consist of several functions and a main script that runs everything. They are:

The problems will lead you through the implementation of the game of Nim.