Skip to content

Conversation

@Deepanshu-ui-dev
Copy link

Tic Tac Toe Game in C++

A classic Tic Tac Toe game built in C++, playable in the terminal. Two players (X and O) take turns to align three marks in a row and win the game. This project is simple, engaging, and perfect for beginners learning C++ and game logic.


🎮 Features

  • Turn-based 2-player gameplay
  • Dynamic 3x3 grid rendering in the console
  • Input validation for row and column entries
  • Win detection (rows, columns, diagonals)
  • Draw detection when the board is full
  • Engaging messages to enhance user experience

📂 What I Added

  • tic_tac_toe.cpp
    • Fully functional Tic Tac Toe game
    • Clean UI for terminal gameplay
    • Friendly prompts and notifications for players
  • Tested and works perfectly locally

⚡ How to Run

  1. Clone the repository:
    git clone https://github.com/YourUsername/Hackotberfest2025.git
  2. Navigate to the project folder:
    cd Hackotberfest2025/CPP
  3. Compile the code using g++:
    g++ tic_tac_toe.cpp -o TicTacToe
  4. Run the game:
    ./TicTacToe   # or TicTacToe.exe on Windows

🏆 Hacktoberfest 2025 Compliance

  • ✅ One PR per problem/project
  • ✅ File names follow conventions
  • ✅ Tested locally and fully functional
  • ✅ Open-source friendly and eligible for Hacktoberfest 2025

📋 Checklist

  • Added new feature/project
  • Code compiles and runs successfully
  • Followed naming and structural conventions
  • Ready for Hacktoberfest 2025 submission 🎉

@Deepanshu-ui-dev
Copy link
Author

@Open-Source-you pls check

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant