Skip to content

This repo gives the source code for building a Connect Four game in Java.

Notifications You must be signed in to change notification settings

baranove16/ConnectFour-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ConnectFour-Game

I have built a connect four game in Java, the source file contains all classes for the game along with the runner class to show how the game is meant to be run.

The game follows the rules of a 7x6 two player connect four game, where getting four in a row diagonally, horizontally or vertically is a win.

How The Game Looks and Runs

Screen Shot 2022-03-22 at 10 14 59 AM

Insight Into the Design of the Game

This project implements object-oriented programming; each class pertains to a specific job in the overall structure. The Board class handles everything to do with creating, displaying, updating, resetting, and checking if the board contains a win or not. The ConnectFour class handles the aspect of collecting information from each player and sending it onto the board as the game progresses until someone wins. The HumanPlayer class handles the input of a player each time.

About

This repo gives the source code for building a Connect Four game in Java.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages