Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
enums.py
Go to the documentation of this file.
1"""
2Enums that are only used on the Python side of the app.
3"""
4
5from enum import Enum, auto
6
7
8class GameState(Enum):
9 """
10 Enum indicating state of game: is either unfinished, or a particular player has won.
11 """
12 UNFINISHED = auto()
13 RED_WON = auto()
14 BLACK_WON = auto()
15 DRAW = auto()
16
17
18class PlayerType(Enum):
19 """
20 Enum indicating type of player: Human, AI, or Scripted.
21 Scripted players are primarily used for testing specific move sequences.
22 """
23 HUMAN = auto()
24 AI = auto()
25 SCRIPTED = auto()
26
27
28class EvaluatorType(Enum):
29 """
30 Enum indicating type of core MoveEvaluator used for a Player.
31 """
32 NULL = auto()
33 MINIMAX = auto()
34 RANDOM = auto()
35
36class EvaluatorTypeNew(Enum):
37 """
38 Enum indicating type of core MoveEvaluator used for a Player.
39 """
40 HUMAN = auto()
41 MINIMAX = auto()
42 RANDOM = auto()
Enum indicating type of core MoveEvaluator used for a Player.
Definition: enums.py:36
Enum indicating type of core MoveEvaluator used for a Player.
Definition: enums.py:28
Enum indicating state of game: is either unfinished, or a particular player has won.
Definition: enums.py:8
Enum indicating type of player: Human, AI, or Scripted.
Definition: enums.py:18