Skip to content

Newsletter 11: AnimalChess #185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added content/posts/newsletter-011/animal-chess.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions content/posts/newsletter-011/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,36 @@ Web, Mac, Linux, Windows (untested) & possible even iOS & Android.
[sdl2]: https://github.com/Rust-SDL2/rust-sdl2
[quicksilver]: https://github.com/ryanisaacg/quicksilver

### [Animal Chess][AnimalChess]

![Part of the game map](animal-chess.jpeg)

^ _Part of the game map_

[Animal Fight Chess][AnimalChess] (斗兽棋, "Doe Show Chee") by [@netcan]
is a Rust implementation of a popular Chinese game.

To win the game, one player must successfully move any animal into
the Den(兽穴) of the opponent or eat all animals of the opponent.
The basic move is just one space either forward, backward, left, or right.
The pieces never move diagonally.
Each player has eight pieces,
[different animals with different degrees of power][animal-chess-pieces],
a larger power piece can eat a little power piece, but rat can eat elephant.
Here's a picture of the pieces, their English names,
and relative powers indicated by a number.
See full rules at [ancientchess.com][animal-chess-rules]
or [Wikipedia][animal-chess-wiki].

The project uses alpha beta pruning algorithm for AI and provides
a python module to use AlphaZero algorithm for training.

[AnimalChess]: https://github.com/netcan/AnimalChess
[@netcan]: https://github.com/netcan
[animal-chess-rules]: http://ancientchess.com/page/play-doushouqi.htm
[animal-chess-wiki]: https://en.wikipedia.org/wiki/Jungle_(board_game)
[animal-chess-pieces]: http://ancientchess.com/graphics-rules/dou_shou_qi_jungle_game-pieces-values.jpg

### [Guacamole Runner][guacamole]

![gif](guacamole.gif)
Expand Down