Skip to content

zizhang-qiu/doudizhu_learning_environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doudizhu_learning_environment is a research platform for a game named doudizhu (aka fighting the landlord) (wiki).

The library is written in C++. You can use Cmake to compile and run examples.

The moves in this library are encoded identically with RLCard.

The main usage of the library is very similar with hanabi_learning_environment and bridge_learning_environment.

Installation

You need to have CMake as well as python to install the library.

mkdir build && cd build
cmake ..
make -j10

If you are using python in a specific environment created by programs like Anaconda, you should specify your python executable path

cmake .. -DPython_EXECUTABLE=/path/to/python_executable

The library can also be used by other programs using cmake add_subdirectory() syntax.

Todo:

  • Doudizhu observation encoders(Douzero style).
  • Gym-like rl envs.
  • Doudizhu game examples.
  • Add a function to create moves from string.
  • Add a function to get move uid from move.
  • Add a program to allow human play with random agent through console.

About

An environment of Doudizhu in C++.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published