23 lines
767 B
C#
23 lines
767 B
C#
using Shogi.Domain;
|
|
using Shogi.Domain.ValueObjects;
|
|
using System.Collections.ObjectModel;
|
|
|
|
namespace Shogi.Api.Repositories.Dto;
|
|
|
|
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
|
public class BoardStateDto
|
|
{
|
|
public ReadOnlyDictionary<string, Piece?> State { get; set; }
|
|
|
|
public List<Piece> Player1Hand { get; set; }
|
|
|
|
public List<Piece> Player2Hand { get; set; }
|
|
|
|
public Move PreviousMove { get; }
|
|
|
|
public WhichPlayer WhoseTurn { get; set; }
|
|
public WhichPlayer? InCheck { get; set; }
|
|
public bool IsCheckmate { get; set; }
|
|
}
|
|
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|