Skip to content

SaraEwaida/ShellTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ShellTacToe

Overview

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.

Features

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

Prerequisites

  • Bash shell or any compatible shell environment.
  • No external dependencies are required.

Installation

Clone the repository to your local machine:

git clone https://github.com/SaraEwaida/ShellTacToe.git
cd ShellTacToe

Usage

To start the game, run the main script:

bash xogame.sh

Follow the on-screen prompts to enter player names, choose the grid size, and make your moves according to the game rules described.

Game Rules

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

Contributing

Contributions to improve ShellTacToe are welcome! Please feel free to fork the repository, make improvements, and submit a pull request.

Contact

saraowida123456@gmail.com

Project Link: https://github.com/SaraEwaida/ShellTacToe

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors