Esempio n. 1
0
 public List <Koma> GetKomaList(PlayerType player)
 {
     return(KomaList.Where(x => x.Player == player).ToList());
 }
Esempio n. 2
0
 public List <Koma> GetBoardKomaList(PlayerType player)
 {
     return(KomaList.Where(x => x.Player == player && x.IsOnBoard).ToList());
 }
Esempio n. 3
0
 public BoardPositions BoardPositions(PlayerType player)
 {
     return(new BoardPositions(KomaList.Where(x => x.Player == player && x.IsOnBoard).Select(x => x.BoardPosition).ToList()));
 }