Skip to content

This is a simple Tic Tac Toe game written in C using the SDL2 library.

Notifications You must be signed in to change notification settings

jiaweing/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Game Build Status

This is a simple Tic Tac Toe game written in C using the SDL2 library.

Features

  • Online/Offline Multiplayer Mode
  • Versus AI

Builds

Mac

We only have prebuilt binaries for Macs running on Apple Intel, as it is not possible to build the Apple Silicon binary on a Linux system. You have to compile yourself.

Dependencies

  • SDL2
  • SDL2_ttf
  • SDL2_image
  • GNU make

Windows

  1. Install MYS2
  2. Install Chocalatey
  3. Install GNU make using Chocolatey
    • choco install make

Mac

  1. Install Homebrew
  2. Install dependencies
    • brew install sdl2 sdl2_ttf sdl2_image make

Linux

  1. Install dependencies
    • sudo apt-get install libsdl2-dev libsdl2-ttf-dev make

Compilation

  1. Navigate to the project directory
  2. Compile the game and the server
    • make client -j4
    • make server -j4
  3. Run the game
    • .out/ttt_client
  4. Run the server
    • .out/ttt_server [port number (optional)]

About

This is a simple Tic Tac Toe game written in C using the SDL2 library.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published