Skip to content

The classic Connect Four game as you know it, but then digitally, networked or offline, with friends or with an AI which never gets tired of the game

Notifications You must be signed in to change notification settings

Bash-/connect-four-game-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alt text

Connect Four Project

Run the following classes the use the program:

  • src/control/ConnectFour.java (To open a client)
  • src/server/control/ServerStarter.java (To start a server)

--Make sure the text file Leaderboard.txt and LeaderBoardTest.txt are present in the root directory of the project--

To play an offline game do the following:

  • Run ConnectFour.java
  • Fill in the username field for user 1
  • Fill in the playertype field for user 1
  • Fill in the username field for user 2
  • Fill in the playertype field for user 2
  • Press Offline Game

To play an online (networked) game do the following:

  • Run ServerStarter.java
  • Fill in a port to start the server on
  • Run ConnectFour.java
  • Fill in the username field for user 1
  • Fill in the playertype field for user 1
  • Fill in the IP address of the server (localhost if the server runs on the same machine)
  • Fill in the same port as filled in at the server
  • Press Online Game
  • Optionally a delay for moves can be filled in the delay field, the delay is in milliseconds
  • Repeat step 3 till the step before this step to open another client and start a game with two players (so fill in the fields for user 1 for both Clients)

Original repository URL: https://github.com/Bash-/connect-four-game-java

About

The classic Connect Four game as you know it, but then digitally, networked or offline, with friends or with an AI which never gets tired of the game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages