Coder Social home page Coder Social logo

adebiasi / tictactoestrategy Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.97 MB

The project enable to play Tic-Tac-Toe with some statistics about the possible ends of the game.

Home Page: https://adebiasi.github.io/TicTacToeStrategy/

License: GNU General Public License v3.0

Python 18.90% HTML 2.72% JavaScript 78.38%
decision-making p5js tic-tac-toe python

tictactoestrategy's Introduction

TicTacToeStrategy

The project enable to play Tic-Tac-Toe with some statistics about the possible ends of the game. The information of all the possible ends were computed using python script extractStats.py. The generated actions.json file is parsed and used to visualize the statistics during the game in p5js.

It's possible to see statistics of win and tie based on the following assumptions:

  • No assumptions about the opponents strategy
  • The opponents will choose the best move to WIN
  • The opponents will choose the best move not to LOSE (WIN or TIE)

Try it

You can try the game with statistics here: https://adebiasi.github.io/TicTacToeStrategy/

Screenshots

A game situation with the statistics about different assumptions.

No assumptions Win assumption Win or tie assumption

ToDo next

tictactoestrategy's People

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.