Tianshou/GTP/utils.py

23 lines
296 B
Python
Raw Normal View History

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