Esempio n. 1
0
 /// <summary>
 /// ゲームに勝利したか
 /// </summary>
 /// <param name="pyramid"></param>
 /// <returns></returns>
 public static bool IsWin(this Pyramid pyramid) => !pyramid.Any(pair => pair.Value is Field);
Esempio n. 2
0
 /// <summary>
 /// 山札の枚数
 /// </summary>
 /// <param name="pyramid"></param>
 /// <returns></returns>
 public static int DeckCount(this Pyramid pyramid) => pyramid.Count(pair => pair.Value is Deck);