Example #1
0
 def black_bench(self):
     return [
         piece_names_by_int.get(i)
         for i in range(EnumUtils.num_piece_names //
                        2, EnumUtils.num_piece_names)
         if not self._pieces[i].in_play
     ]
Example #2
0
 def black_hand(self):
     return [
         piece_names_by_int.get(i)
         for i in range(EnumUtils.num_piece_names //
                        2, EnumUtils.num_piece_names)
         if self._pieces[i] is not None and self._pieces[i].in_play
     ]