Giter Site home page Giter Site logo

tic-tac-toe's Introduction

Tic-Tac-Toe

 ○ │ ⨯ │
───┼───┼───
 ⨯ │ ○ │
───┼───┼───
 ⨯ │ ○ │ ○

It seems to me that writing a functioning tic-tac-toe game is the new interview fizzbuzz. This package contains an beautiful tic-tac-toe implementation written in a mere half an hour. If you're interviewing me and ask me to implement yet another tic-tac-toe game, I'll refer you to this repo and begin looking for companies who actually want good software engineers (jk 😉).

Installation

You'll need to have the Rust toolchain installed on your system. Then, compiling and running tictactoe is as simple as:

$ git clone https://github.com/slightknack/Tic-Tac-Toe.git
$ cd Tic-Tac-Toe
$ cargo run --release

Why run in release mode, you ask? Why not, I respond.

Challenges

Given that I only spent half an hour on this, It's pretty barebones follows a minimalist design ideology. Out of the box, Tic Tac Toe supports play between two human players. Tic Tac Toe is architected for easy extension. If you'd like, try implementing your own AI using the Agent trait.

Love,
Isaac Clayton (@slightknack)
Software Extraordinaire

tic-tac-toe's People

Contributors

slightknack avatar

Stargazers

 avatar

Watchers

 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.