-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPieces.cs
38 lines (32 loc) · 956 Bytes
/
Pieces.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
// Copyright © John & Katie Gietzen. All Rights Reserved. This source is subject to the MIT license. Please see license.md for more information.
namespace GameTheory.Games.Draughts
{
using System;
/// <summary>
/// Represents the state of a piece at a certain square.
/// </summary>
[Flags]
public enum Pieces : byte
{
/// <summary>
/// No piece is present.
/// </summary>
None = 0x00,
/// <summary>
/// The piece present belongs to the white player.
/// </summary>
White = 0x01,
/// <summary>
/// The piece present belongs to the black player.
/// </summary>
Black = 0x02,
/// <summary>
/// The piece has been crowned.
/// </summary>
Crowned = 0x04,
/// <summary>
/// The piece has been captured but not yet removed.
/// </summary>
Captured = 0x08,
}
}