Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nugwxa/tic-tac-toe
https://github.com/nugwxa/tic-tac-toe
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/nugwxa/tic-tac-toe
- Owner: Nugwxa
- Created: 2023-03-29T21:28:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-03T14:01:12.000Z (almost 2 years ago)
- Last Synced: 2024-07-17T03:31:48.549Z (6 months ago)
- Language: C++
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic-Tac-Toe Game
This is a simple implementation of the classic Tic-Tac-Toe game in C++. It allows two players to take turns and play on a 4x4 game board until a winner is determined or the game ends in a draw.
## Getting Started
To get started, you will need to have a C++ compiler installed on your machine. Once you have the compiler set up, you can download or clone this repository to your local machine and compile the code using your preferred method.## How to Play
1. Run the complied executable
2. Enter the names of the two players when prompted.
3. The game board will be displayed with empty spaces for each cell.
4. Players will take turns entering the row and column number where they want to place their marker (either "x" or "o").
5. The game will continue until a player wins or the game ends in a draw.
6. The winner (if any) will be displayed at the end of the game.## Files Included
- main.cpp: This file contains the main logic of the game, including the game loop and user input/output.
- mainClasses.h: This file contains the class definitions for the Game and User classes.
- mainClasses.cpp: This file contains the implementations of the Game and User classes.