Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions

Question

What has been your desire for leadership in CVS Health?

Answered: 1 week ago

Question

Question 5) Let n = N and Y Answered: 1 week ago

Answered: 1 week ago

Question

Describe the options and trends in management education

Answered: 1 week ago