Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need some help with my Connect Four Game Java Assignment. Java Programming Connect Four Game Requirements : Board The board must be displayed after every

Need some help with my Connect Four Game Java Assignment.

Java Programming Connect Four Game Requirements:

Board The board must be displayed after every turn and represent the correct players positions.

2 Players The game must have two players, no more no less.

Scoring (File Based) A method must exist to read the scores. The scoring file needs to keep the following stats:

Who won the last game?

How many moves did it take for them to win?

Who did they beat?

Game Reset The game must be able to be played over and over. The game should not terminate at any point unless the user dictates that action to the game.

Winner The game must declare a winner when connect four is achieved.

Defining Rules The following rules must be enforced in the game:

Players must enter numerical locations to place their pieces

Players must alternate turns, no player should go twice in a row

The board must be printed every turn

The board must accurately update

The high scores must accurately update after each win

All exceptions must be caught, invalid input should prompt for new input

Forfeit A player must be prompted at the beginning of every turn to forfeit if they so choose to. This would lead to starting a new game.

Name Players Players must be named at the beginning of the game and their name must be output in a correct fashion for the duration of the game.

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

Step: 3

blur-text-image

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions