Question: the URL for the codes http://pages.cpsc.ucalgary.ca/~bdstephe/217_W17/Connect4.py Description In this assignment you are going to implement portions of the classic game Connect-4. While the game dates






the URL for the codes
http://pages.cpsc.ucalgary.ca/~bdstephe/217_W17/Connect4.py
Description In this assignment you are going to implement portions of the classic game Connect-4. While the game dates back to the 1970s, it can still be played today on a variety of websites and the physical game can still be purchased at many toy retailers. A brief description ofthe game appears in the following paragraph. A more complete description is available on Wikipedia Connect-4 is a two player game that is normally played on a board with 6 rows and 7 columns. Players alternate taking turns where the player drops a checker in one of the columns. The checker falls down to the bottom of the grid, sitting on top of any checkers that have been played in that column previously. The goal of the game is to be the first player to form a line of 4 checkers, either horizontally, vertically or diagonally. The possible outcomes for the game are a win for player 1, a win for player 2, or a tie By default, the game starts in "medium" difficulty mode with 6 rows and 7 columns. You can change the level of difficulty to easy or hard by adding the difficulty level after the name of your py file when you start your program. For example, running the command python Connect4 easy will start 4.py the game in easy mode with 6 rows and 7 columns. The number of rows and columns can be changed by including them after the difficulty level. For example python Connect4.py hard 8 10 will start the game in hard mode with 8 rows and 10 columns. Be sure to test your program with different board sizes I have written all of the user interface code (graphics and mouse) for the game, as well as most of the artificial intelligence for the computer player. Your task is to write the functions that implement different aspects of the game logic. These functions are described in the following sections. Note that you must follow the implementation instructions exactly. If your function has a different name, takes a different number of parameters, or returns a different value then my code will not be able to call it successfully, and the game wi I not work. Description In this assignment you are going to implement portions of the classic game Connect-4. While the game dates back to the 1970s, it can still be played today on a variety of websites and the physical game can still be purchased at many toy retailers. A brief description ofthe game appears in the following paragraph. A more complete description is available on Wikipedia Connect-4 is a two player game that is normally played on a board with 6 rows and 7 columns. Players alternate taking turns where the player drops a checker in one of the columns. The checker falls down to the bottom of the grid, sitting on top of any checkers that have been played in that column previously. The goal of the game is to be the first player to form a line of 4 checkers, either horizontally, vertically or diagonally. The possible outcomes for the game are a win for player 1, a win for player 2, or a tie By default, the game starts in "medium" difficulty mode with 6 rows and 7 columns. You can change the level of difficulty to easy or hard by adding the difficulty level after the name of your py file when you start your program. For example, running the command python Connect4 easy will start 4.py the game in easy mode with 6 rows and 7 columns. The number of rows and columns can be changed by including them after the difficulty level. For example python Connect4.py hard 8 10 will start the game in hard mode with 8 rows and 10 columns. Be sure to test your program with different board sizes I have written all of the user interface code (graphics and mouse) for the game, as well as most of the artificial intelligence for the computer player. Your task is to write the functions that implement different aspects of the game logic. These functions are described in the following sections. Note that you must follow the implementation instructions exactly. If your function has a different name, takes a different number of parameters, or returns a different value then my code will not be able to call it successfully, and the game wi I not workStep by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
