GithubHelp home page GithubHelp logo

practice40hr / chess-bot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5 KB

This is a project to build a chess AI using a neural network and the Minimax algorithm. The neural network is trained on a dataset of historical chess games and then used as the evaluation function for the Minimax algorithm.

License: MIT License

Python 100.00%

chess-bot's Introduction

Chess AI

This is a project to build a chess AI using a neural network and the Minimax algorithm. The neural network is trained on a dataset of historical chess games and then used as the evaluation function for the Minimax algorithm.

Installation

  1. Clone this repository:
    git clone https://github.com/yourusername/chess-ai.git
    
  2. Navigate to the project directory:
    cd chess-ai
    
  3. Install the requirements:
    pip install -r requirements.txt
    

Usage

  1. Train the neural network:

    python train.py
    

    This will train the network and save the trained model to a file named 'chess_net.pth'.

  2. Run the chess AI:

    python chess_ai.py
    

    This will start a game of chess against the AI.

Contributing

Please feel free to fork this repository and submit pull requests. You can also open an issue if you find any bugs or have any suggestions for improvements.

License

MIT

chess-bot's People

Contributors

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