Giter Club home page Giter Club logo

robertfromtx / tic-tac-toe-from-the-corner Goto Github PK

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

This program simulates a tic-tac-toe game between two bots. The bots prioritize winning if there are two of their tokens in a row. Then, they prioritize blocking if there are two of the opponent tokens in a row. This program was built in 2020 in my junior year of high school for a math class to calculate experimental probabilities.

C++ 100.00%

tic-tac-toe-from-the-corner's Introduction

Tic-Tac-Toe-From-The-Corner

This program simulates a tic-tac-toe game between two bots. The bots prioritize winning if there are two of their tokens in a row. Then, they prioritize blocking if there are two of the opponent tokens in a row.

The program was built in an attempt to calculate the best starting position in tic-tac-toe. The bots automatically win or block in order to simulate 2 humans who are completely aware but have no knowledge of strategies as they place the tokens randomly when there is no need for a win or block.

This program was built in 2020 in my junior year of high school for a math class to calculate experimental probabilities.

Legend for the boards: 0 = Empty Space 1 = Player 1(X) 2 = Player 2(O)

More Info: Amount of Ties = Gamesplayed - (Wins + Losses)

tic-tac-toe-from-the-corner's People

Contributors

robertfromtx 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.