Project created as part of my training for the BTS SIO.
--> Version : Français 📖
OXO (Tic-Tac-Toe) is a console game in Java where 2 players face off in a game of tic-tac-toe.
The goal is to align as many X's or O's as there are rows and columns on the board. Each player must input the coordinates of a cell to mark on each turn, with visual indicators to track the progress of the game.
- Start the game : After running the program, you will be prompted to enter the name of each player and the size of the board.
- Making a move : On each turn, input the coordinates of the cell where you want to place your mark.
- Progress : The board will display the game state after each move, with a visual representation to follow the progress.
- Victory : The first player to align X's or O's as per the board size wins the game !
- Java JDK 8+ : Make sure you have Java installed on your machine.
- IDE or Terminal : You can run the game in an IDE (NetBeans, IntelliJ, Eclipse) or directly via a terminal.
-
Clone the repository
git clone https://github.com/TolMen/OXO.git
OR
git clone [email protected]:TolMen/OXO.git
-
Compile the project
In a terminal, navigate to thesrc
folder of the project and compile the code :javac morpion/Morpion.java
-
Run the game
Once compiled, run the game with :java morpion.Morpion
This project serves as a base for a console game but can be improved with :
- ✅ Add a graphical interface for a better user experience.
- ✅ Implement a player-vs-computer mode.
- ✅ Add features for managing multiple games or a scoreboard.
Thank you for taking the time to explore this project !
Feel free to explore, improve, and propose your own ideas. 🚀
📩 For any questions or collaboration, contact me !
🔒 Have fun playing tic-tac-toe !