Giter Club home page Giter Club logo

chessgame's Introduction

Chinese Chess AI

I'm a chinese chess AI. I will become stronger and stronger.

Author

  • Yongfeng Li
  • Ruosi Wang
  • Bing Yu

main

  • please run python3 chess_main.py -f test.txt to run our Chinese Chess AI. You can find the results in chess_move directory.

spider

  • the chess data is from http://www.01xq.com/.
  • If you want more, just modify the range in chessspider/spiders/chessdataspider and run scrapy crawl chessspider -o new.json in chessspider directory

train

To train different networks:

  • cd train_code
  • Run gen_data_new.py to generate the data (may take dozens of minutes to several hours).
  • Run SL_predict_emb.py to train the network with attention along lines layers and improved feature map.
  • Run SL_predict_new.py to train the network with multi-head attention and unimproved feature map.
  • Run SL_predict_emb_simplified.py to train the baseline network
  • Run rollout.py to train the rollout network
  • Run QNET.py to train the value network (the network similar to the network in SL_predict_emb.py)
  • the RL_train.py is for the old version SL network and dataset, we only put it here.

the directory

  • search: contains all code about Monte Carlo Tree Search and the network interface.
  • chessspider: contains the code for spider
  • param: contains the checkpoint of all networks
  • chess_move: constains the input and output for chess_main.py
  • value: contains all the value network and trainning date
  • train_code: contains the code of train data

chessgame's People

Contributors

victory1128 avatar

Watchers

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