libscid 0.1.0
Chess applications made easy.
Loading...
Searching...
No Matches
game_result.h
1#pragma once
2
4
5namespace scid::core {
6
7const uint NUM_RESULT_TYPES = 4;
8typedef byte resultT;
9const resultT RESULT_None = 0, RESULT_White = 1, RESULT_Black = 2,
10 RESULT_Draw = 3;
11
12const uint RESULT_SCORE[4] = {1, 2, 0, 1};
13const char RESULT_CHAR[4] = {'*', '1', '0', '='};
14const char RESULT_STR[4][4] = {"*", "1-0", "0-1", "=-="};
15const char RESULT_LONGSTR[4][8] = {"*", "1-0", "0-1", "1/2-1/2"};
16const resultT RESULT_OPPOSITE[4] = {
17 RESULT_None, RESULT_Black, RESULT_White, RESULT_Draw};
18
19} // namespace scid::core
Constants and definitions of the chess board.