Tianshou/AlphaGo/utils.py

21 lines
294 B
Python
Raw Normal View History

2017-11-26 13:36:52 +08:00
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
# $File: utils.py
2017-11-28 17:00:10 +08:00
# $Date: Mon Nov 27 18:2755 2017 +0800
2017-11-26 13:36:52 +08:00
# $Author: renyong15 © <mails.tsinghua.edu.cn>
#
WHITE = -1
EMPTY = 0
2017-11-28 17:00:10 +08:00
BLACK = +1
FILL = +2
KO = +3
UNKNOWN = +4
2017-11-26 13:36:52 +08:00
2017-11-28 17:00:10 +08:00
PASS = (0,0)
2017-11-26 13:36:52 +08:00
RESIGN = "resign"
2017-11-28 14:53:20 +08:00
2017-11-28 17:00:10 +08:00
def another_color(color):
return color * -1