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