Code,. Urgent

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Code,. Urgent

Topics: Dynamic 2D arrays, classes and methods
In this assignment you are to create a connect-4 game. The standard game has 6 rows and 7 columns.
The interface will look like this (with the highlighted mumbers being user input).
012345 6
012 3 456
0123458
1|
21
3||
4|
2|
21
1.
It is Ks turn
It is 0 s turn:
It is Xs turn:
Column
Colunn
8
Column:
The requirements are as follows:
0it must follow the rules (gravity and such)
Omust check for winning conditions
ifa user wins, the game ends and the winner is declared
Othe program should check for illegal input (columns less than 0 and greater than number
வீeியmne)
O dhere needs to be a I player option with a basic Al that plays the gane. There is o
constraint on this, it can play poorly
The game and logic should be contained in a Connect4 class with the following methods
y void DrawBoard()
y bool GameOvert)
y char Winnert)
y bool MakeMove(char piece, int column)
N Connect4()/sets up standard game
Connect4(nt NumRows, int NumColumns)/custom gameboard size
y int GetAIMovel)
@The connect 4 class shoould be ina separate header file.
0 The main.cpp lile should contain the basic game loop and start up which asks the user
pow nany players and whetlher it is the standard game or a custom board.
Transcribed Image Text:Topics: Dynamic 2D arrays, classes and methods In this assignment you are to create a connect-4 game. The standard game has 6 rows and 7 columns. The interface will look like this (with the highlighted mumbers being user input). 012345 6 012 3 456 0123458 1| 21 3|| 4| 2| 21 1. It is Ks turn It is 0 s turn: It is Xs turn: Column Colunn 8 Column: The requirements are as follows: 0it must follow the rules (gravity and such) Omust check for winning conditions ifa user wins, the game ends and the winner is declared Othe program should check for illegal input (columns less than 0 and greater than number வீeியmne) O dhere needs to be a I player option with a basic Al that plays the gane. There is o constraint on this, it can play poorly The game and logic should be contained in a Connect4 class with the following methods y void DrawBoard() y bool GameOvert) y char Winnert) y bool MakeMove(char piece, int column) N Connect4()/sets up standard game Connect4(nt NumRows, int NumColumns)/custom gameboard size y int GetAIMovel) @The connect 4 class shoould be ina separate header file. 0 The main.cpp lile should contain the basic game loop and start up which asks the user pow nany players and whetlher it is the standard game or a custom board.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY