Files
basic-computer-games/46_Hexapawn/csharp/Hexapawn/Pawn.cs
Chris Reuter d26dbf036a Removed spaces from top-level directory names.
Spaces tend to cause annoyances in a Unix-style shell environment.
This change fixes that.
2021-11-21 18:30:21 -05:00

20 lines
465 B
C#

namespace Hexapawn
{
// Represents the contents of a cell on the board
internal class Pawn
{
public static readonly Pawn Black = new('X');
public static readonly Pawn White = new('O');
public static readonly Pawn None = new('.');
private readonly char _symbol;
private Pawn(char symbol)
{
_symbol = symbol;
}
public override string ToString() => _symbol.ToString();
}
}