Poggle: Is this thing on?

Step 14: The routine, bool finishedTest(void) the Board will use to find that the user has completed the challenge is fairly straight forward.

- Is the Board instance valid? Actually this would be unneccessary as the routine is private and will not be call via the Singleton interface.
- Is the Board's states array valid?

Loop through the states array
- - (Note: I made an assumption here that I could have Assert'ed, that all states values are greater than or equal to 0.)
- - Is this element less than Board's cycle variable -1?
- - - If so then return false.

Return true.

No comments: