def show_bot_player_hint(game_master): datastore = Datastore() picasso = get_picasso() if not datastore.has_entry('bot_player_hint'): hint_asset = assets.text.CentredTextAsset(INFO_PANEL_X, INFO_PANEL_Y, INFO_PANEL_WIDTH, INFO_PANEL_HEIGHT, "AI TAKING TURNS...", bold=True) datastore.add_entry('bot_player_hint', hint_asset) hint_asset = datastore.get_entry('bot_player_hint') if isinstance(game_master.current_player(), risk.ai.bots.BasicRiskBot): picasso.add_asset(UI_OVERLAY_LEVEL0, hint_asset) else: picasso.remove_asset(UI_OVERLAY_LEVEL0, hint_asset)