Welcome to Connect Four! This is a command-line implementation of the classic Connect Four game written in Ruby.
Connect Four is a two-player game where the players take turns dropping colored discs into a grid. The goal is to be the first to connect four of one's own discs horizontally, vertically, or diagonally. The game ends either when one player achieves four in a row, or when the grid is full and no player has achieved four in a row.
- Two players can play against each other.
- The game is played on a 6x7 grid.
- Players take turns dropping their discs into the grid.
- The game checks for a winner after each move.
- The game ends when a player wins or when the grid is full.
-
Clone this repository to your local machine.
git clone https://github.com/Ismat-Samadov/Connect_Four.git -
Navigate to the project directory.
cd Connect_Four -
Run the game.
ruby connect_four.rb -
Follow the on-screen instructions to play the game. Players take turns entering the column where they want to drop their disc.
-
Enjoy the game and have fun!
- Implement an AI opponent for single-player mode.
- Add a graphical user interface (GUI) for a more interactive experience.
- Allow customization of grid size and winning conditions.
Contributions are welcome! If you have any ideas for improvements or new features, feel free to open an issue or submit a pull request.