Coder Social home page Coder Social logo

kajallochab / ai-mindmasterchess Goto Github PK

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

It is a simple chess game which runs on a flask server. It is equipped with one built-in chess engine. It has an assistant which gives the user some introduction, instructions and credits.

License: Apache License 2.0

Python 93.97% Ruby 6.03%
alpha-beta-pruning artificial-intelligence chess chess-ai deep-learning machine-learning machine-learning-algorithms min-max-algorithm ml

ai-mindmasterchess's Introduction

AI-MindMasterChess

It is a simple chess game which runs on flask server. It is equipped with one built-in chess engine. It has an assistant which gives the user some introduction, instructions and credits. It also warns the user when it is check and also when it is a checkmate or stalemate. But as it is running on a flask server it doesn't have any restrictions means anyone can play any move, at anytime.

Requirements

You will have to manually executing the following commands to incorporate the requirements:

pip install python-chess
pip install flask
pip install pyttsx3
pip install webbrowser

Don't run the following as a command.

Install your stockfish engine from: https://stockfishchess.org/download/

Execution

Run the following code in your VS code:

python game-edit1.py

Path Change

  1. In the line 202: you will have to enter the path of you stockfish engine.
  2. For MacOS you will have to download the exec file and for Windows you can download the exc version.

In the line 164: you will have to enter the path of your human.bin file for the selection of the initial move. It is included in Chess-Game.zip.

The speak function

  1. For MacOS: Continue using it the way it is.
  2. For Windows: Comment out line 191 and uncomment the rest of the lines in the given function

Features

  1. Voice Assistant
  2. Follows all chess rules
  3. Two Compatible Chess Engines

A Bug

Stockfish engine stops working if used rapidly

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.