namespace Game
{
///
/// Stores the result of a player's turn.
///
public record TurnResult
{
///
/// Gets the code guessed by the player.
///
public Code Guess { get; }
///
/// Gets the number of black pegs resulting from the guess.
///
public int Blacks { get; }
///
/// Gets the number of white pegs resulting from the guess.
///
public int Whites { get; }
///
/// Initializes a new instance of the TurnResult record.
///
///
/// The player's guess.
///
///
/// The number of black pegs.
///
///
/// The number of white pegs.
///
public TurnResult(Code guess, int blacks, int whites) =>
(Guess, Blacks, Whites) = (guess, blacks, whites);
}
}