Coder Social home page Coder Social logo

netcan / animalchess Goto Github PK

View Code? Open in Web Editor NEW
90.0 6.0 11.0 2.04 MB

Animal Fight Chess Game(斗兽棋) written in rust.

Home Page: https://netcan.github.io/2020/06/07/%E7%94%A8Rust%E5%86%99%E4%B8%80%E4%B8%AA%E6%96%97%E5%85%BD%E6%A3%8B%E6%B8%B8%E6%88%8F/

License: MIT License

Rust 73.25% Python 20.76% Jupyter Notebook 5.99%
rust ai chess board-game monte-carlo-tree-search alpha-beta-pruning minmax alphazero

animalchess's Introduction

 _   _      _                                                                                      _
| \ | | ___| |_ ___ __ _ _ __     ___  _ __    _ __  _ __ ___   __ _ _ __ __ _ _ __ ___  _ __ ___ (_)_ __   __ _
|  \| |/ _ \ __/ __/ _` | '_ \   / _ \| '_ \  | '_ \| '__/ _ \ / _` | '__/ _` | '_ ` _ \| '_ ` _ \| | '_ \ / _` |
| |\  |  __/ || (_| (_| | | | | | (_) | | | | | |_) | | | (_) | (_| | | | (_| | | | | | | | | | | | | | | | (_| |
|_| \_|\___|\__\___\__,_|_| |_|  \___/|_| |_| | .__/|_|  \___/ \__, |_|  \__,_|_| |_| |_|_| |_| |_|_|_| |_|\__, |
                                              |_|              |___/                                       |___/
* 1996, Summer, Senior Software Engineer
* Skills: C/C++/Rust, Haskell/Scheme, Bash/Python/Javascript/PHP
* Interests: CS, OO/FP, Design/Coding/Writing

Latest talks

Latest blog posts

>>> More blog posts

Statistics

Stats Lang

animalchess's People

Contributors

dependabot[bot] avatar netcan avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

animalchess's Issues

macos SDL2 error

 = note: ld: library not found for -lSDL2_image
          clang: error: linker command failed with exit code 1 (use -v to see invocation)


error: aborting due to previous error

error: could not compile `animal_chess`.

Caused by:
  process didn't exit successfully: `rustc --crate-name animal_chess --edition=2018 bin/src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -Cembed-bitcode=no -C debuginfo=2 -C metadata=a56ed9b374d3600b -C extra-filename=-a56ed9b374d3600b --out-dir /Users/token/Desktop/doushou/AnimalChess/target/debug/deps -C incremental=/Users/token/Desktop/doushou/AnimalChess/target/debug/incremental -L dependency=/Users/token/Desktop/doushou/AnimalChess/target/debug/deps --extern animal_chess_core=/Users/token/Desktop/doushou/AnimalChess/target/debug/deps/libanimal_chess_core-7acc0a00edd6c3e1.rlib --extern sdl2=/Users/token/Desktop/doushou/AnimalChess/target/debug/deps/libsdl2-9b81bb79cff21146.rlib` (exit code: 1)

我对于编程是个小白

这是我唯一一个找到使用深度学习的斗兽棋ai,但如何运行我还是不明白,能详细说说吗?

求教如何隐藏cmd命令窗口?

现在运行程序后在windows系统会有cmd的命令行窗口也显现出来,请问怎么打包才能让他没有这个窗口?我只想显示程序窗口,求指点,

关于规则

我从知乎看到大神的文章,慕名而来,里面提到的两条规则“老鼠若不在水里则能够吃大象,大象在任何情况下都不能吃老鼠”。我觉得需要细化修正一下。
先回忆一下其中的一条规则:任何棋子进入对方陷阱,则战斗力降为零(己方陷阱不对己方棋子施加影响)。通过这条规则,我们对上面的“老鼠若不在水里则能够吃大象,大象在任何情况下都不能吃老鼠”分析。则,我方老鼠不在水里,但在对方陷阱里时,不能吃对方的大象;同样,我方老鼠在对方陷阱时,对方大象是可以吃我方老鼠的。

不能编译问题

你好~
在 OSX 系统中,按照 readme 所说,先 clone 再 cargo run --release,过程中报错了:

note: ld: library not found for -lSDL2_image

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.