ShellTacToe is a flexible and interactive Tic-Tac-Toe game implemented in shell script, allowing two players to engage in the classic game directly from their command line. The game supports dynamic grid sizes and includes advanced gameplay features like mark removal, row and column exchanges, and strategic mark swapping.
- Dynamic Grid Sizes: Choose between 3x3, 4x4, or 5x5 grids.
- Interactive Gameplay: Play against another player in a turn-based system.
- Advanced Moves: Includes the ability to remove marks, swap rows or columns, and exchange marks with the opponent, adding depth to the traditional gameplay.
- Score Tracking: Each game move affects the players' scores differently, adding a competitive edge.
- Bash shell or any compatible shell environment.
- No external dependencies are required.
Clone the repository to your local machine:
git clone https://github.com/SaraEwaida/ShellTacToe.git
cd ShellTacToeTo start the game, run the main script:
bash xogame.shFollow the on-screen prompts to enter player names, choose the grid size, and make your moves according to the game rules described.
- Placing Marks: Players take turns to place their mark (X or O) in an unoccupied cell.
- Removing Marks: Players can remove their previously placed marks to alter the game's strategy.
- Exchanging Rows/Columns: Players may swap entire rows or columns to disrupt the opponent's strategy.
- Exchanging Marks: Swap one of your marks with an opponent's mark in another cell.
Contributions to improve ShellTacToe are welcome! Please feel free to fork the repository, make improvements, and submit a pull request.
Project Link: https://github.com/SaraEwaida/ShellTacToe