Question: Game Specificafions: You will write a program for playing a Circle game between a player and a computer. The objective of the game is to

Game Specificafions:
You will write a program for playing a Circle game between a player and a computer. The objective of the game is to move around the board to complete a circle. The game will start with two boards of 1010 which means there will be ten rows and ten columns. The first index of the first board (0,0) will be the starting point for the player and initialized as 'P'. The last index of the second board (9,9) will be the starting point for the computer and initialized as 'C'. The boards below show an illustration of the initial boards.
Player Board
Computer Board
Computer Board
Then, the player and computer will choose a trap index. The trap index for the player should be entered by the user while it should be randomly generated for the computer. Then, a value between 1 and 5 will be randomly assigned to the trap index for both the player and the computer. The trap index can be only placed on the around of the board. For example for player it could be any of these indexes: (0,0),(0,1),(0,2),(0,3),(0,4),(0,5),(0,6),(0,7),(0,8),(0,9),(1,9),(2,9),(3,9),(4,9),(5,9),(6,9),(7,9),(8,9),(9,9),(9,8),(9,7),(9,6),(9,5),(9,4),(9,3),(9,2),(9,1),(9,0),(8,0),(7,0),(6,0),(5,0),(4,0),(3,0),(2,0),(1,0). See below example;
Page 1 of 12
 Game Specificafions: You will write a program for playing a Circle

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!