Skip to content

lance-374/Connect4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Connect4

Simple two player connect 4 game. Uses a 2D array to organize each square in the grid. Uses for loops to check for a win. Uses only one class aside from Main. Int numClicks is used to decide which color to use, even numbers mean to use red and odd numbers mean to use yellow. Game can be launched by creating a new Connect4(boolean debug) object, pass false as an argument unless debugging. Each button contains an actionListener. When a button is clicked, the lowest button in that column that is still blue will be changed to the appropriate color, and it will run the checkForWin method. The coordinate, color, and debug will be passed as an argument so the method can access this.

About

Two player Connect 4 in Java (Eclipse project)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages