jiaweing / TicTacToe

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:C 97.1%Language:C++ 1.4%Language:CMake 0.6%Language:Objective-C 0.4%Language:M4 0.3%Language:Makefile 0.1%Language:Shell 0.1%