https://github.com/gayanukabulegoda/connect-4-game
A strategic two-player game where opponents stack colored discs to form four in a row and win.
https://github.com/gayanukabulegoda/connect-4-game
connect-4 connect-4-game connect-four connect-four-challenge connect-four-game game-algorithm game-development game-logic java java-game simple-game-java simple-game-project
Last synced: 3 months ago
JSON representation
A strategic two-player game where opponents stack colored discs to form four in a row and win.
- Host: GitHub
- URL: https://github.com/gayanukabulegoda/connect-4-game
- Owner: gayanukabulegoda
- License: mit
- Created: 2023-09-28T05:38:04.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-07T13:18:38.000Z (almost 2 years ago)
- Last Synced: 2025-04-30T05:29:53.960Z (7 months ago)
- Topics: connect-4, connect-4-game, connect-four, connect-four-challenge, connect-four-game, game-algorithm, game-development, game-logic, java, java-game, simple-game-java, simple-game-project
- Language: Java
- Homepage:
- Size: 105 KB
- Stars: 17
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
#
The Connect Four Game
The Connect 4 game is a classic strategy game in which 2 players go head-to-head in a battle to own the grid!
Players choose GREEN and BLUE discs. They drop the discs into the grid, starting in the middle or at the edge to stack their colored discs vertically or horizontally. Use strategy to block opponents while aiming to be the first player to get 4 in a row to win.
## Overview
Welcome to the Connect Four game repository, where players strategically drop GREEN or BLUE discs into the grid to form vertical or horizontal lines of four. In this classic battle, the game unfolds as opponents vie to outmaneuver each other.
What sets this implementation apart is the integration of the Monte Carlo Tree Search (MCTS) algorithm, bringing advanced artificial intelligence to the computer player. Whether challenging the intelligent computer opponent, every move counts in this quest to be the first to connect four in a row and claim victory. Immerse yourself in the thrill of strategic gameplay and enjoy a timeless duel of wits in Connect Four!
## How to use this repo
- Clone the repository: ```git clone https://github.com/gayanukabulegoda/connect-4-game.git```
- Open the pom.xml via IntelliJ IDEA
- Make sure to the open it as a project, if prompt
- Reload the pom.xml file via Maven Tool Window
- Create a run configuration for Maven via Run > Edit Configuration
- Add javafx:run as the Run command
- That's it.
## License
This project is licensed under the [MIT License](LICENSE).
##
© 2023 Gayanuka Bulegoda