Git Product home page Git Product logo

ticky's Introduction

Ticky

A Tic Tac Toe game, implemented in python, pygame. It includes a unbeatable computer AI. Have a Fun!

If you like it, PLEASE give it a star, Thanks!

Require

You should have pygame module installed

Usage

git clone https://github.com/memoiry/Ticky
cd Ticky
python ticky.py

Demo

Minimax Algorithm

The minimax algorithm is a decision rule used for two-player game. The concept of minimax algorithm is to simulate all posible move of both players and then make the best decision.

Reference

Tic Tac Toe: Understanding The Minimax Algorithm

Minimax with Alpha Beta Pruning

ticky's People

Contributors

memoiry avatar andresoro avatar narimiran avatar

Stargazers

Ghayas avatar  avatar  avatar Daniel Duckworth avatar MiniApple avatar  avatar masih avatar  avatar  avatar John Letey avatar shalini avatar Moh avatar Omar Bakier avatar  avatar Agraynel avatar Kentaro Wada avatar  avatar io avatar Senthil Nayagam avatar  avatar Jonathan Egol avatar Murali Ravipudi avatar Shantanu Oak avatar Jamie Hall avatar Alfonso avatar Wing Kwok avatar ShuaiPeng Hou avatar  avatar Ian Gomez avatar  avatar Pushkar Dakle avatar  avatar  avatar

Watchers

 avatar ShuaiPeng Hou avatar  avatar  avatar

ticky's Issues

Not so sure about the 'Unbeatable' part

This isn't a complaint or issue with the overall functioning of the game -- as a matter of fact, I'll lead off with a 'thank you' for putting this out. I'm getting some useful stuff from going through your code. But I couldn't help noticing that I just beat the unbeatable AI. I admit that so far I haven't read through the reference links you included on the Minimax Algorithm, so I don't know if maybe it was called 'unbeatable AI' in order to say it was just highly unlikely to be beaten, or if it was supposed to be completely unbeatable...in all situations. If the latter was the case, I thought you'd want to know.

human is allowed to cheat

Human is allowed to play over bot's move (changing bot's already placed X to player's O) and win the game.

tricky_01
tricky_02
tricky_03

Window doesn't close

When I click the X button in the top right, the pygame window will not close.

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.