Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/critter-mj/akochan
Artificial Intelligence for Japanese mahjong
https://github.com/critter-mj/akochan
Last synced: 39 minutes ago
JSON representation
Artificial Intelligence for Japanese mahjong
- Host: GitHub
- URL: https://github.com/critter-mj/akochan
- Owner: critter-mj
- License: other
- Created: 2019-08-26T02:08:32.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-05T08:41:12.000Z (over 2 years ago)
- Last Synced: 2024-08-03T23:16:26.406Z (3 months ago)
- Language: C++
- Size: 456 KB
- Stars: 240
- Watchers: 11
- Forks: 36
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## Build with Linux
Check you can use lboost_system.
If not, probably you can install it with```$ sudo apt-get install libboost-all-dev```
Run following in "ai_src" directory.
```$ make -f Makefile_Linux```
You will see libai.so in root directory.
Then run following in root directory
```$ make -f Makefile_Linux```
Then you will see system.exe in root directory.
## Build with Windows
Check you can link lboost_system, and rewrite LIBS of Makefile(both in ai_src and root directory).
In the environment of the author, "-lboost_system-mgw62-mt-x64-1_70" is valid.Check the number of logical processors of your machine and rewrite NPROCS value of ai_src/Makefile.
You can check the number by```> $cs = Get-WmiObject -class Win32_ComputerSystem; $cs.numberoflogicalprocessors```
Then run following in "ai_src" directory.
```> make```
You will see ai.dll in root directory.
Next, run following in root directory.
```> make```
Then you will see system.exe in root directory.
## Selfmatch
Selfmatch will be executed by following command```./system.exe test "begin(int)" "end(int)"```
Self-matches will be executed with random seed of begin to end - 1.
Game record will be saved in a directory specified by "result_dir" of setup_match.json.
Chicha of self-matches are those specified in "chicha" of setup_match.json.
For example, when begin=100, end=102 and "chicha" is [0, 1], following 4 mathces will be executed.random seed = 100, chicha = 0
random seed = 100, chicha = 1
random seed = 101, chicha = 0
random seed = 101, chicha = 1This is efficient when you want to update AI strategy and play against previous version.
Tactics of each player can be set with "tactics" of setup_match.json.