Aleo is a flexible Mahjong AI development toolkit written in C++. It was developed to facilate the design of high-level Mahjong algorithms. With Aleo, you can easily implement AI for Mahjong under GuoBiao(aka Chinese Official) rules, and deploy it to Botzone.
Aleo won the first place in the competition of 2018 Game AI course, with a remarkable margin over the second competitor. It has an average winning rate of 46.8%, as well as excellent winning scores.
Aleo can search over all possible combinations of 5 waiting tiles in 0.5s on a single i7-4720HQ CPU.
For Windows, open Aleo.sln
in Visual Studio. There are three main projects in Aleo:
It is recommended to compile each project in Release mode to achieve full speed.
Aleo has only tested with data generator and faan calculator on Linux.
For data generator, run make generator
. For faan calculator, run make fan_calculator
.
Note that make clean
is required between two different make
commands.
Aleo is authored by Zhaocheng Zhu and Fangyin Wei.
Licensed under an Apache-2.0 license.