using Shogi.Domain;
namespace Gameboard.ShogiUI.Sockets.Repositories.CouchModels
{
public class Move
{
///
/// A board coordinate, like A3 or G6. When null, look for PieceFromHand to exist.
///
public string? From { get; set; }
public bool IsPromotion { get; set; }
///
/// The piece placed from the player's hand.
///
public WhichPiece? PieceFromHand { get; set; }
///
/// A board coordinate, like A3 or G6.
///
public string To { get; set; }
///
/// Default constructor and setters are for deserialization.
///
public Move()
{
To = string.Empty;
}
}
}