Skip to content

Conversation

@Devansh-Rawat-gamedev
Copy link

@Devansh-Rawat-gamedev Devansh-Rawat-gamedev commented Jan 2, 2026

  • Implements classic Tic Tac Toe for two players
  • Includes win detection, draw conditions, and input validation
  • Follows C++17 standard and repository coding conventions
  • Self-contained single file implementation

Description of Change

Adds a complete implementation of the classic Tic Tac Toe game to the games/ directory.

Features:

  • Two-player turn-based gameplay (X and O)
  • 3x3 game board with position references
  • Win condition detection (rows, columns, diagonals)
  • Draw/tie detection
  • Input validation and error handling
  • Option to play again
  • Cross-platform compatibility with proper sleep function

Technical Details:

  • Follows C++17 standard with no external dependencies
  • Uses object-oriented design with TicTacToeGame class
  • Implements repository coding conventions and documentation style
  • Self-contained single file implementation
  • Includes comprehensive Doxygen documentation

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes: This is an interactive console-based implementation of Tic Tac Toe designed for educational purposes. The game demonstrates basic game logic, state management, and user input handling in C++.

- Implements classic Tic Tac Toe for two players
- Includes win detection, draw conditions, and input validation
- Follows C++17 standard and repository coding conventions
- Self-contained single file implementation
Devansh-Rawat-gamedev

This comment was marked as duplicate.

Devansh-Rawat-gamedev

This comment was marked as duplicate.

Devansh-Rawat-gamedev

This comment was marked as off-topic.

Copy link
Author

@Devansh-Rawat-gamedev Devansh-Rawat-gamedev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am new to this whole open source thingy please help me out if you think i did something wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant