Question: Your customer asks you to develop the software that allows a blue player to play the SOS game against a red player. Either player can

Your customer asks you to develop the software that allows a blue player to play the SOS game against a red player. Either player can be human or computer. The game board is a grid of nn (n>2) squares. The two players take turns to add either an "S" or an "O" to an unoccupied square, with no requirement to use the same letter each turn. Each player attempts to create the straight sequence S-O-S among connected squares (diagonally, horizontally, or vertically). To keep track of who made which SOSs, a line in the players color (i.e., blue or red) is drawn for each SOS sequence, as shown in the following figure.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!