GithubHelp home page GithubHelp logo

rpg-coder / tictactoe-game Goto Github PK

View Code? Open in Web Editor NEW
13.0 0.0 3.0 51.08 MB

Tic-Tac-Toe Game with an unbeatable AI using Minimax Algorithm

License: GNU General Public License v3.0

Python 100.00%
tic-tac-toe tictactoe tic-tac-toe-game tictactoe-python tictactoe-ai tic-tac-toe-ai tictactoe-game minimax-algorithm python opencv minmax-algorithm minimax-alpha-beta-pruning tic-tac-toe-python tic-toe-game tic-tac-toe-multiplayer tic-tac-toe-bot ai-games minmax-alpha-beta-pruning minmax tic-tac-toe-minmax

tictactoe-game's Introduction

๐Ÿ‘พ TicTacToe-Game ๐Ÿ‘พ

Using Minimax Algorithm and OpenCV + Python

Table of Content ๐Ÿค–

TicTacToe-Game

This repository contains the TicTacToe game files. TicTacToe Game (3x3) (9 Blocks)

This simple game comes with an elegant user interface and game options using mouse & keyboard stokes. Users can choose to play Player1 vs Player2 (Multiplayer) or Player vs Computer (Artificial Intelligence).

Structure of the application

  • Game.py with core functionality in Python and Frontend GUI is implemented OpenCV-Python

Features : ๐Ÿ’ฏ

  • Elegant UI
  • Play against your pals with Player vs Player
  • Switch to play against computer; At anytime during the gameplay
  • Unbeatable Artificial Intelligence player that will keep on suprising you
  • Wanna give a try?? Windows executable included in a dist folder

Demo: Wanna try and see how this game works??

Interested in working of the game? - Installation Procedure

Installation Dependency: Installing Miniconda

Setting up the Environment โ›บ ๐ŸŒ„ ๐ŸŒ ๐ŸŒŽ ๐ŸŒ

  • Open command prompt

  • Execute below command to setup a local environment:

    $ conda create -n puzzle -y # or environment name of your choice

  • Activate your environment:

    $ conda activate puzzle

  • Installing Application dependencies: Installing OpenCV-Python

    $ conda install opencv-python -y

Run the Game ๐Ÿ’ซ

$python Game.py

Like the repo?? ๐Ÿฅฐ ๐Ÿ’“ ๐Ÿ’œ

In case you have taken a like for this repository, please do star or fork my repo. Your support will not only help me in improving recognition for this repository but also encourage me in developing and sharing more interesting projects and contents.

Likewise, Thank you for showing your appreciation to this repo.


Under GNU GPLv3 License

tictactoe-game's People

Contributors

rpg-coder avatar rpg-rah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tictactoe-game's Issues

change code of line 40

on line 40, replace 400,400 with 500,500 because after that, when anyones runs the file the full page of the game will apper currently the below position isn't accessible and can be easily fixed

or

I have opened a pullrequest u may directly approve it and merge it

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.