Skip to content

Latest commit

 

History

History
100 lines (65 loc) · 1.92 KB

File metadata and controls

100 lines (65 loc) · 1.92 KB

Tic-Tac-Toe-cpp

Description

Tic-Tac-Toe-cpp is a console-based Tic-Tac-Toe game written in C++ with support for 3x3 and 4x4 game modes against a computer opponent.


Development Tools

Code::Blocks C++


Technologies

C++ Console Application Dynamic Memory Game Logic


Features

  • 3x3 and 4x4 game modes
  • Single-player gameplay against computer
  • Random computer moves
  • Console menu navigation
  • Rules menu
  • Draw detection
  • Win condition checking
  • Dynamic game board allocation

Preview

Main menu

Main menu

Rules

Rules

Gameplay

3x3 mode

Gameplay3

4x4 mode

Gameplay4


Functionality

Game Modes

The project supports:

  • classic 3x3 mode
  • extended 4x4 mode

Computer Opponent

The computer makes random moves on available cells.

Game Logic

The game includes:

  • horizontal win detection
  • vertical win detection
  • diagonal win detection
  • draw detection

Purpose

This project was created for educational purposes to practice:

  • C++ basics
  • dynamic memory management
  • arrays and pointers
  • functions
  • console applications
  • game logic implementation

Possible Improvements

  • Add multiplayer mode
  • Add AI difficulty levels
  • Save high scores
  • Improve console interface
  • Add input validation
  • Optimize game logic