-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCharacters.cs
42 lines (39 loc) · 2.48 KB
/
Characters.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
/*
* Characters.cs --
*
* Copyright (c) 2007-2024 by Joe Mistachkin. All rights reserved.
*
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* RCS: @(#) $Id: $
*/
namespace TicTacToe
{
internal static class Characters
{
//
// NOTE: Used to mark the play spaces of the board.
//
public const string None = " ";
public const string X = "X";
public const string O = "O";
//
// NOTE: Unicode characters for double line box (8):
//
// "╔" = U+2554, "╦" = U+2566, "╗" = U+2557
// "═" = U+2550, "║" = U+2551, "╠" = U+2560
// "╬" = U+256C, "╣" = U+2563, "╚" = U+255A
// "╩" = U+2569, "╝" = U+255D, " " = U+0020
//
public const string BoxCharacterSet = "╔╦╗═║╠╬╣╚╩╝ ";
//
// NOTE: These are the character indexes, within the
// box character set above, that correspond to
// the needed board space elements.
//
public const int Horizontal = 3;
public const int Vertical = 4;
public const int Cross = 6;
}
}