Question: This function should be named is _ game _ over and it takes the board list as its only parameter, and should determine if the
This function should be named isgameover and it takes the board list as its only parameter, and should determine if the game is over or not. If the white king does not exist on the board, then the game is over, and black wins. In this case, the function should print Black wins! and return True. If the black king does not exist on the board, then the game is over, and white wins. In this case, the function should print White wins! and return True. If both kings are still in the board list, then the function should print nothing, and return False. Note you should print Black wins! or White wins! without adding a new line to the end of string.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
