-- Oct 11 In-Class Exercise
Each square -> an object
square letter: (B, G, P, S, W)
square confirmed: boolean
boolean visited
2-d List of squares
list(i, j) = square (i,j)
2. Tell would update the adjacent squares at player's current position,
square get's an updated letter, and its visited is set to true
3. if a query was for which square to take, we would look at neighbors of player's current spot, and ask(i,j) could be made to return whether to take the square, not, or unsure based on the knowledge we know about square i,j.
Each square -> an object
square letter: (B, G, P, S, W)
square confirmed: boolean
boolean visited
2-d List of squares
list(i, j) = square (i,j)
2. Tell would update the adjacent squares at player's current position,
square get's an updated letter, and its visited is set to true
3. if a query was for which square to take, we would look at neighbors of player's current spot, and ask(i,j) could be made to return whether to take the square, not, or unsure based on the knowledge we know about square i,j.