Skip to content

BorysDudnyk/Tic-Tac-Toe-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Console-based Tic-Tac-Toe game in C++ with 3x3 and 4x4 modes against a computer opponent.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages