create, read, playercount

This commit is contained in:
2022-11-09 16:08:04 -06:00
parent a1f996e508
commit da76917490
37 changed files with 999 additions and 814 deletions

View File

@@ -6,12 +6,11 @@ public class Session
{
public Session(
string name,
string player1Name,
ShogiBoard board)
string player1Name)
{
Name = name;
Player1 = player1Name;
Board = board;
Board = new(BoardState.StandardStarting);
}
public string Name { get; }

View File

@@ -9,7 +9,7 @@ public class BoardState
/// <summary>
/// Board state before any moves have been made, using standard setup and rules.
/// </summary>
public static readonly BoardState StandardStarting = new(
public static BoardState StandardStarting => new(
state: BuildStandardStartingBoardState(),
player1Hand: new(),
player2Hand: new(),