Skip to content

An implementation of the AlphaZero algorithm for Janggi (Korean chess, 장기)

License

Notifications You must be signed in to change notification settings

boardgame1/AlphaJanggi

Repository files navigation

AlphaJanggi

An implementation of the AlphaZero algorithm for Janggi (Korean chess)

'알파 장기'는 AlphaZero 알고리즘을 적용한 장기 인공지능 프로그램입니다.
사용 언어는 c++와 python이고 pytorch 라이브러리를 사용했습니다.

자가 대국 생성하기

Project1 -k self --cuda -t 3 -n 1

   --cuda: nvidia 그래픽 카드 사용시
   -t: 쓰레드 갯수 (디폴트=1)
   -n: 그래픽 카드 번호 (디폴트=1)

human_vs_ai는 텍스트 기반으로 인공지능과 대국할 수 있는 프로그램입니다.

Project1 -k human --cuda -m best_1.pt

   --cuda: nvidia 그래픽 카드 사용시
   -m (모델 파일 이름): 사용하고자 하는 모델 파일(디폴트 best_model.pt)

사용한 공개 소프트웨어

json : https://github.com/nlohmann/json
http : https://github.com/yhirose/cpp-httplib
dirichlet : https://github.com/gcant/dirichlet-cpp

About

An implementation of the AlphaZero algorithm for Janggi (Korean chess, 장기)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published