print(' !' print( print('would you like to view the instructions(yes/no)' if input(lower(startswith(' ') showinstructions(the expression input(lower(startswith(' 'asks the player if they want to see the instructionsand evaluates to true if the player typed in string that began with 'yor 'yif soshowinstructions(is called otherwisethe game begins while true game setup sonardevices theboard getnewboard( thechests getrandomchests( drawboard(theboard previousmoves [line ' while loop is the main loop for the program several variables are set up on lines to and are described in table - sonardevices table - variables used in the main game loop description the number of sonar devices (and turnsthe player has left theboard the board data structure used for this game thechests the list of chest data structures getrandomchests(will return list of three treasure chests at random places on the board previousmoves list of all the xy moves that the player has made in the game variable displaying the game status for the player while sonardevices start of turnshow sonar device/chest status post questions to