GithubHelp home page GithubHelp logo

klmanion / t3 Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 241 KB

Revolutionary Tic-Tac-Toe.

License: BSD 3-Clause "New" or "Revised" License

Shell 36.16% C 42.50% M4 21.35%
c tic-tac-toe tictactoe tictactoe-game

t3's Introduction

t3

A game of 3D Tic-Tac-Toe.

Summary

Inspired by Atari's 3D tic-tac-toe which I played as a kid, I started this project 6 years ago during a trip to Philly, and had left it unfinished until now.

It is now playable and winable.

The board's is programmatically drawn, so you can set the dimensions with the -d switch. Don't forget to check out this math in the code.

Historical note

I made as few changes as possible to the existing codebase, so there's some oddities in there which I was experimenting with at the time. This mainly refers to: (1) the use of the compiler attributes __attribute__((pure)) and __attribute__((const)) (in their macro forms __pure and __pure2 respectively; (2) the __P() macro, which really is only supposed to be used to make K&R prototypes portable, but for whatever reason I was using them when I started the codebase and didn't have the heart (or compunction) to remove them.

Building

This project is built using autotools, so to build just type:

./autogen.sh
./configure && make

Testing

Has been tested on FreeBSD and Debian.

t3's People

Contributors

klmanion avatar jimsvoboda avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar  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.