Skip to content

This project is a graphical Tic-Tac-Toe game built using C++ and the SFML library for rendering. The game offers various levels of AI difficulty, customizable board sizes, and win conditions, providing an engaging experience for players of all skill levels.

Notifications You must be signed in to change notification settings

Paperocean/Tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Game

This project is a graphical Tic-Tac-Toe game built using C++ and the SFML library for rendering. The game offers various levels of AI difficulty, customizable board sizes, and win conditions, providing an engaging experience for players of all skill levels.

Features

  • Graphical User Interface (GUI): The game uses SFML to create a simple and interactive interface.
  • Multiple AI Difficulty Levels: Players can choose between Easy, Medium, Hard, and Ultra levels of AI difficulty.
  • Customizable Board: You can adjust the board size and win condition length from the options panel.
  • Interactive Gameplay: Play against the AI or another player locally with full mouse support.
  • Win/Tie Detection: The game automatically detects wins and ties, displaying results with custom graphics.

Getting Started

Prerequisites

To build and run this project, you'll need:

  • C++ Compiler
  • SFML 2.5+ (Simple and Fast Multimedia Library)
  • CMake (optional, for building)

Controls

  • Start Game: Click the "Start Game" button to begin playing.
  • Board Size: Use the + and - buttons to adjust the board size.
  • Win Condition: Adjust the win length (number of marks in a row needed to win).
  • AI Difficulty: Choose AI difficulty from Easy, Medium, Hard, and Ultra.
  • Gameplay: Click on the board to make a move. The AI will respond automatically.

How to Play

  • Select the board size and difficulty level from the options.
  • Click "Start Game" to begin.
  • Take turns placing X's and O's on the board.
  • The game ends when a player gets the required number of marks in a row (win length) or when the board is full (tie).

Future Improvements

  • Multiplayer Mode: Add a local multiplayer option to allow two players to play on the same device.
  • Online Multiplayer: Implement an online multiplayer mode.
  • Improved AI: Make the AI more challenging and unpredictable.

About

This project is a graphical Tic-Tac-Toe game built using C++ and the SFML library for rendering. The game offers various levels of AI difficulty, customizable board sizes, and win conditions, providing an engaging experience for players of all skill levels.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages