forked from paviad/GoSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GameInfo.cs
64 lines (55 loc) · 1.81 KB
/
GameInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Go
{
/// <summary>
/// Provides information used to create the root node of a game tree.
/// </summary>
public class GameInfo
{
/// <summary>
/// Gets or sets the handicap value.
/// </summary>
public int Handicap { get; set; }
/// <summary>
/// Gets or sets a flag indicating whether handicap stones should be
/// placed in the standard positions, or whether they will be manually
/// placed using setup moves.
/// </summary>
public bool FreePlacedHandicap { get; set; }
/// <summary>
/// Gets or sets the komi value.
/// </summary>
public double Komi { get; set; }
/// <summary>
/// Gets or sets the horizontal board size.
/// </summary>
public int BoardSizeX { get; set; }
/// <summary>
/// Gets or sets the vertical board size.
/// </summary>
public int BoardSizeY { get; set; }
/// <summary>
/// Gets or sets the color of the starting player.
/// </summary>
public Content StartingPlayer { get; set; }
public string WhitePlayer { get; set; }
public string BlackPlayer { get; set; }
public string WhiteRank { get; set; }
public string BlackRank { get; set; }
public TimeSpan? MainTime { get; set; }
/// <summary>
/// Constructs a default GameInfo object, with 0 handicap, 5.5 komi 19x19 board and
/// black as the starting player.
/// </summary>
public GameInfo()
{
Komi = 5.5;
StartingPlayer = Content.Black;
Handicap = 0;
BoardSizeX = BoardSizeY = 19;
}
}
}