You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
786 B
35 lines
786 B
|
1 year ago
|
namespace ConsoleApp1
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Класс карты игральной
|
||
|
|
/// </summary>
|
||
|
|
public class Card
|
||
|
|
{
|
||
|
|
#region consts
|
||
|
|
private const CardValue MinValue = CardValue._6;
|
||
|
|
private const CardValue MaxValue = CardValue.Туз;
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region Поля и свойства
|
||
|
|
/// <summary>
|
||
|
|
/// масть
|
||
|
|
/// </summary>
|
||
|
|
public CardSuit Suit; /* { get; set; } */
|
||
|
|
/// <summary>
|
||
|
|
/// величина
|
||
|
|
/// </summary>
|
||
|
|
public CardValue Value { get; set; }
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#region constructors
|
||
|
|
public Card(CardSuit suit, CardValue value)
|
||
|
|
{
|
||
|
|
Suit = suit;
|
||
|
|
Value = value;
|
||
|
|
}
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|