subject

General Description You have been chosen to create a version of connect 4. In this version, there can be forbidden positions, or places that neither x nor o can play. However, connecting four together is still the way to win, and this can be done vertically, horizontally, diagonally (or anti-diagonally if you distinguish between the backward diagonal). Required Features 1. You must implement two new game options, one for two players, and one for x player vs computer. a. The player is always x and the computer is always o in that case. b. Player one and two alternate turns. c. Players cannot overwrite each other's moves. d. Players cannot play on forbidden places, and forbidden places do not count for victory. 2. At the start of each game:. a. Ask the player what game board they want to load. b. Then start with the x player, and alternate. c. Check for victory after each move, not after each pair of moves. d. Players may enter a move, two integers separated by a space, or the words "load game" or "save game" which will either load or save over the current game. 3. You must implement a load game feature. Ask for the file name and load that file. If a game is currently in progress, overwrite that game and immediately start on the loaded game. 4. You must implement a save game feature. Ask for the name that you wish to save to, and save the file to that name. 5. Detect when one or the other player has adjoined the spheres (connected four). a. Display a message with the winning player. b. End that game. c. Go back to the main menu. d. If the board is full, then that is a tie. Design Document There is no design document for this project. It has been replaced with a testing script. Any questions about design documents will be ignored. Required names and Interface Your project should be in proj2.py The design of project 2 is mostly up to you, but we will require that your project create a class: class Adjoin TheSpheres: This must have a method whose definition is: def main menu self):

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 14:00, GGerardi7552
What are procedures that keep a data base current
Answers: 1
image
Computers and Technology, 23.06.2019 01:30, shelley3135
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 2
image
Computers and Technology, 23.06.2019 12:00, kp2078
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
image
Computers and Technology, 24.06.2019 10:20, silviamgarcia
Write a program that keeps asking the user for new values to be added to a list until the user enters 'exit' ('exit' should not be added to the list). these values entered by the user are added to a list we call 'initial_list'. then write a function that takes this initial_list as input and returns another list with 3 copies of every value in the initial_list. finally, inside print out all of the values in the new list. for example: input: enter value to be added to list: a enter value to be added to list: b enter value to be added to list: c enter value to be added to list: exit output: a b c a b c a b c note how 'exit' is not added to the list. also, your program needs to be able to handle any variation of 'exit' such as 'exit', 'exit' etc. and treat them all as 'exit'.
Answers: 2
You know the right answer?
General Description You have been chosen to create a version of connect 4. In this version, there ca...

Questions in other subjects:

Konu
History, 02.10.2019 08:20
Konu
Mathematics, 02.10.2019 08:20
Konu
Mathematics, 02.10.2019 08:20