def play_chess(player_skill, opponent_skill, game_history): if 'downplay' in player_skill: adjust_difficulty(opponent_skill, 'easy'); elif 'prior' in game_history and 'study' in player_skill: improve_strategy(player_skill, 'study_prior_games'); elif 'start over from the origin' in player_skill and 'confidential' in game_settings: reset_game(game_history, 'confidential_mode'); else: encourage_player('keep a positive mindset and enjoy the game!')