Git Product home page Git Product logo

tic-tac-toe's Introduction

Tic-Tac-Toe

Graphical Tic Tac Toe in C++ using the Simple DirectMedia Layer library.

Screenshot of game in action Screenshot of win

Watch of short video of Tic-Tac-Toe in action at: https://www.youtube.com/watch?v=PUGUkTR6evg

Description and Background

This is a completed project with a tree-based AI, sounds and animations. I made it to learn about creating and structuring a project from scratch. SDL is a barebones cross-platform hardware managing library so it handled putting images on the screen and playing sounds. Everything else - the game loop, the rendering cycle, animation, timing and AI - was handled by me.

I chose Tic-Tac-Toe so I could concentrate on the project itself without thinking too hard about the game mechanics. Even so it was surprisingly difficult just figuring out where to start.

Go to http://www.josephcmontgomery.com/projects.html#tic-tac-toe for more info about the development process.

Build Instructions

I don't remember much about building this but I think you'd need the SDL2, SDL2 TTF, SDL2 Mixer and SDL2 Image libraries. It was made on Ubuntu but I imagine it'd work without much change on many other Linux systems. It should technically also work on Windows but I haven't tried it.

Typing make in the "make" folder should build it if it can find the libraries. Then ./Tic-Tac-Toe should run it and make clean should remove the executable.

tic-tac-toe's People

Contributors

gicwmu avatar grotke avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.