Fixed accidentally building the board from player2 perspective.
This commit is contained in:
30
Gameboard.ShogiUI.Domain/Entities/Match.cs
Normal file
30
Gameboard.ShogiUI.Domain/Entities/Match.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
namespace Gameboard.ShogiUI.Domain
|
||||
{
|
||||
public class Match
|
||||
{
|
||||
public string Name { get; }
|
||||
public string Player1 { get; }
|
||||
public string Player2 { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Initialize pre-existing Match.
|
||||
/// </summary>
|
||||
public Match(MatchMeta meta, Board board)
|
||||
{
|
||||
Name = meta.Name;
|
||||
Player1 = meta.Player1;
|
||||
Player2 = meta.Player2;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create a new Match.
|
||||
/// </summary>
|
||||
public Match(string name, string player1)
|
||||
{
|
||||
Name = name;
|
||||
Player1 = player1;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user