check if the games end condition is met : one color does not have any pieces left concode_field_sep int GAME_STATE_BLACK concode_elem_sep int GAME_STATE_WHITE concode_elem_sep MoveValidator moveValidator concode_elem_sep int GAME_STATE_END_BLACK_WON concode_elem_sep List<Piece> capturedPieces concode_elem_sep IPlayerHandler activePlayerHandler concode_elem_sep int GAME_STATE_END_WHITE_WON concode_elem_sep IPlayerHandler blackPlayerHandler concode_elem_sep int gameState concode_elem_sep List<Piece> pieces concode_elem_sep Map map concode_elem_sep IPlayerHandler whitePlayerHandler concode_field_sep void createAndAddPiece concode_elem_sep void updateMap concode_elem_sep void waitForMove concode_elem_sep Piece getNonCapturedPieceAtLocation concode_elem_sep boolean isNonCapturedPieceAtLocation concode_elem_sep boolean isNonCapturedPieceAtLocation concode_elem_sep void setPlayer concode_elem_sep void undoMove concode_elem_sep boolean movePiece concode_elem_sep void run concode_elem_sep MoveValidator getMoveValidator concode_elem_sep void changeGameState concode_elem_sep ch08.logic.Map getMap concode_elem_sep void swapActivePlayer concode_elem_sep List<Piece> getPieces concode_elem_sep int getGameState concode_elem_sep void startGame
boolean function ( ) { int loc0 = 0 ; int loc1 = 0 ; for ( Piece loc2 : pieces ) { if ( loc2 . getColor ( ) == Piece . COLOR_BLACK ) loc0 ++ ; else loc1 ++ ; } return loc0 == 0 || loc1 == 0 ; }