Esempio n. 1
0
 public Koma FindBoardKoma(BoardPosition fromPosition)
 {
     return(KomaList.FirstOrDefault(x => x.BoardPosition == fromPosition));
 }
Esempio n. 2
0
 public Koma FindHandKoma(PlayerType player, KomaType komaType)
 {
     return(KomaList.FirstOrDefault(x => x.Player == player && x.IsInHand && x.KomaType == komaType));
 }
Esempio n. 3
0
 public Koma FindKingOnBoard(PlayerType player)
 {
     // [MEMO:プレイヤーの王は盤上に1つのみあることを前提]
     return(KomaList.FirstOrDefault(x => x.Player == player && x.KomaType.IsKing && x.IsOnBoard));
 }