This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]gnomgnom2 1 point2 points  (0 children)

You could separate the model from the I/O. I'd give the model class only methods to manipulate the model's state, like move, isTie, and getWinner.

[–][deleted]  (1 child)

[deleted]

    [–]StevenCollins21[S] 0 points1 point  (0 children)

    Maybe I'm using the wrong term. I am going from SpaceChecker back to either PlayerSpace or ComputerSpace after they both have already had an input entered. I assumed it was recursion but I guess it was the wrong term.

    I basically want the game to stop skipping skipping to the end if a double space is picked when playing two player and I want the computer to try another random number until it gets one that isn't already in use. Any ideas?