Оценить:
 Рейтинг: 4

Справочник Жаркова по проектированию и программированию искусственного интеллекта. Том 8: Программирование на Visual C# искусственного интеллекта. Издание 2. Продолжение 1

Год написания книги
2023
Теги
<< 1 ... 21 22 23 24 25 26 27 28 29 ... 38 >>
На страницу:
25 из 38
Настройки чтения
Размер шрифта
Высота строк
Поля

/// <summary>

/// The attribute to be used when drawing the card

/// to implement transpancy

/// </summary>

static public System.Drawing.Imaging.ImageAttributes

cardAttributes;

/// <summary>

/// Used when loading card images prior to drawing

/// </summary>

static private System.Reflection.Assembly execAssem;

/// <summary>

/// Sets up the color and attribute values.

/// </summary>

static Card()

{

cardAttributes =

new System.Drawing.Imaging.ImageAttributes();

cardAttributes.SetColorKey(Color.Green, Color.Green);

execAssem =

System.Reflection.Assembly.GetExecutingAssembly();

}

/// <summary>

/// Scores for each of the cards in a suit

/// </summary>

static private byte[] scores =

new byte[] {       11,      //ace

2,3,4,5,6,7,8,9,10, //spot cards

10,10,10}; //jack, queen, king

/// <summary>

/// Picture information for each card in a suit

/// </summary>

static private bool[] isPicture =

new bool[] {       false,      //ace

false,false,false,false,false,false,

false,false,false, //spot cards

true,true,true}; //jack, queen, king

/// <summary>

/// Names of the suits, in the order that of the suits

/// in the number sequence

/// </summary>

static private string[] suitNames =

new string[] { "club", "diamond", "heart", "spade" };

/// <summary>

/// Names of individual cards, in the order of the cards

/// in a suit

/// </summary>

static private string[] valueNames =

new string[] {"Ace", "Deuce","Three","Four","Five","Six",

"Seven","Eight","Nine","Ten", "Jack","Queen","King" };

/// <summary>
<< 1 ... 21 22 23 24 25 26 27 28 29 ... 38 >>
На страницу:
25 из 38

Другие электронные книги автора Валерий Алексеевич Жарков