Four-in-a-Row is a console-based Java implementation of the classic Connect Four game. Two players take turns dropping their pieces into a 7x7 grid, aiming to get four in a row — horizontally, vertically, or diagonally.
- 7x7 game board displayed in the console
- Two-player turn-based gameplay
- Input validation to prevent invalid moves
- Automatic detection of win and tie conditions
- Error handling for non-integer inputs
- Java JDK installed (version 8 or higher)
- Git (optional, for cloning the repository)
- Clone the repository:
git clone https://github.com/louiswu0408/fourinarow.git
cd fourinarow/fourinarow- Compile the Java files
javac *.java- Run the game
cd ..
java fourinarow.Fourinarow