Coder Social home page Coder Social logo

tictactoe-ai-pygame's Introduction

Tic-Tac-Toe undefeated AI

Tic-Tac-Toe is one of the very popular game which I enjoyed playing with my friends during my childhood days. Tic-Tac-Toe might look like a simple game, but it involves lot of interesting factor.

This project focuses on creating an AI that would be unbeaten in the Tic-Tac-Toe game, I have decided to use Minimax decision rule which is commonly used in artificial intelligence and game theory concerning zero-sum games. The main idea is to minimise the possible loss in a worst case and thus one individual can gain maximum possible reward while the opponent will use the same process to minimise the reward gained by other.

There will be two main files in this project: board.py and tictactoe.py. ‘tictactoe.py’ contains all the logic for playing this game. ‘board.py’ contains the code to run the graphical user interface for the game. We can play this Tic�Tac-Toe game against the AI by running the ‘board.py’ python file.

Install Dependencies

pip install -r requirements.txt

Achieved Result

Home Page

Game Over

tictactoe-ai-pygame's People

Contributors

pr4besh avatar

Stargazers

 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.