Puissance4-Lite

My first object-oriented programming project! A CLI (Command Line Interface) version of Puissance4.

JAVA

Development of a Puissance4 game in Java offering an interactive experience for two players. This project implements several functionalities:

Player management: each player enters a nickname and a color ('R' for red, 'J' for yellow). Rounds alternate automatically.

Game grid: A 6x7 matrix models the grid. Players' tokens are stacked in the chosen columns, according to the rules of the game.

Alignment check: The program detects winning alignments (horizontal, vertical, diagonal) by analyzing the cells' direct neighbors. An EnumMap is used to simplify this management.

Saving and loading: Games can be saved to a text file, enabling the game to be resumed at a later date.

Exception handling: check entries to avoid errors (e.g. full columns or incorrect entries).

Dynamic display: The grid is updated and displayed after each move, making it easier to keep track of the game.