Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 2.24 KB

README.md

File metadata and controls

64 lines (45 loc) · 2.24 KB

OXO (Tic-Tac-Toe) 🎮❌⭕

Project created as part of my training for the BTS SIO.
--> Version : Français 📖

📖 Description

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.

🎲 How to play ?

  1. Start the game : After running the program, you will be prompted to enter the name of each player and the size of the board.
  2. Making a move : On each turn, input the coordinates of the cell where you want to place your mark.
  3. Progress : The board will display the game state after each move, with a visual representation to follow the progress.
  4. Victory : The first player to align X's or O's as per the board size wins the game !

🚀 Installation

Prerequisites

  • 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.

Installation steps

  1. Clone the repository

    git clone https://github.com/TolMen/OXO.git

    OR

    git clone [email protected]:TolMen/OXO.git
  2. Compile the project
    In a terminal, navigate to the src folder of the project and compile the code :

    javac morpion/Morpion.java
  3. Run the game
    Once compiled, run the game with :

    java morpion.Morpion

💡 Possible improvements

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 !

TolMen - LinkedIn

🔒 Have fun playing tic-tac-toe !