Fri, 20th Nov 2015, 02:35 Re: Programming Lab 4

A student writes:

> Hello Professor Patt,
> I had a question regarding the nim instructions. It looks like there is a space between the colon and the first character (Player 1, choose a row and number of rocks: D4; there is a space between : and D).

Indeed it looks that way to me, also.

> Should I also be sure to make sure that the space bar is also a valid input as well, in case something like this appears:
> Player 1, choose a row and number of rocks:#D4

The player can enter whatever he/she wants to enter.  What do the instructions
say a player MUST enter to make a legal move?  Read what the instructions say,
please.  ONLY what the instructions say is a legal move IS a legal move.

Once you see what is a legal move, you next should ask yourself: How can that
be possible when you saw a space after the ":" in the example?

> Thank you so much for taking the time to answer this question. I apologize if this is a stupid question.

> <<name withheld to protect the student who will not read what is written>>

It is not a stupid question.  But it does show you are not reading what is
clearly written in the instructions, and that concerns me.

Good luck figuring this out, finishing the program and then enjoying

Yale Patt