check if the game should end with a checkmate concode_field_sep Piece capturedPiece concode_elem_sep int prevr concode_elem_sep Derp[] derp concode_elem_sep Rook[] rook concode_elem_sep Pawn[] pawn concode_elem_sep King[] king concode_elem_sep Bishop[] bishop concode_elem_sep int numc concode_elem_sep int prevc concode_elem_sep Result result concode_elem_sep Queen[] queen concode_elem_sep boolean custom concode_elem_sep boolean turn concode_elem_sep Game instance concode_elem_sep Knight[] knight concode_elem_sep Sheep[] sheep concode_elem_sep Piece movedPiece concode_elem_sep Piece[][] board concode_elem_sep int numr concode_field_sep void loadState concode_elem_sep void printBoard concode_elem_sep void makeGame concode_elem_sep void destroy concode_elem_sep void startGame concode_elem_sep void startGame concode_elem_sep Game getInstance concode_elem_sep boolean findMove concode_elem_sep void staleMate
void function ( ) { King loc0 = turn ? king [ 0 ] : king [ 1 ] ; if ( ! loc0 . checked ) return ; if ( ! findMove ( loc0 . player ) ) { if ( loc0 . player ) result = Result . BLACK ; else result = Result . WHITE ; } }