MCPcopy Create free account

hub / github.com/GoodStartLabs/AI_Diplomacy / functions

Functions2,689 in github.com/GoodStartLabs/AI_Diplomacy

↓ 1 callersMethodremove_special_token
Remove given token from given special power name (either __OBSERVER__ or __OMNISCIENT__).
diplomacy/server/server_game.py:371
↓ 1 callersMethodremove_user
Remove user related to given username.
diplomacy/server/users.py:159
↓ 1 callersMethodrenderCurrentMessages
(engine, role)
diplomacy/web/src/gui/pages/content_game.jsx:921
↓ 1 callersMethodrenderMapForCurrent
(gameEngine, powerName, orderType, orderPath)
diplomacy/web/src/gui/pages/content_game.jsx:1008
↓ 1 callersMethodrenderMapForMessages
(gameEngine, showOrders)
diplomacy/web/src/gui/pages/content_game.jsx:993
↓ 1 callersMethodrenderMapForResults
(gameEngine, showOrders)
diplomacy/web/src/gui/pages/content_game.jsx:978
↓ 1 callersMethodrenderOrders
(engine, currentPowerName)
diplomacy/web/src/gui/pages/content_game.jsx:874
↓ 1 callersMethodrenderPastMessages
(engine, role)
diplomacy/web/src/gui/pages/content_game.jsx:887
↓ 1 callersFunctionrenderRelationshipHistoryChartView
* Render the relationship history chart view * @param container The container element * @param gameData The current game data * @param currentPhase
ai_animation/src/components/rotatingDisplay.ts:364
↓ 1 callersFunctionrenderSCHistoryChartView
* Render the supply center history chart view * @param container The container element * @param gameData The current game data * @param currentPhas
ai_animation/src/components/rotatingDisplay.ts:154
↓ 1 callersMethodrenderTabCurrentPhase
(toDisplay, engine, powerName, orderType, orderPath, currentPowerName, currentTabOrderCreation)
diplomacy/web/src/gui/pages/content_game.jsx:1195
↓ 1 callersMethodrenderTabMessages
(toDisplay, initialEngine, currentPowerName)
diplomacy/web/src/gui/pages/content_game.jsx:1157
↓ 1 callersMethodrenderTabResults
(toDisplay, initialEngine)
diplomacy/web/src/gui/pages/content_game.jsx:1083
↓ 1 callersMethodreplace_user
Replaces user object with a new user
diplomacy/server/users.py:155
↓ 1 callersMethodreset
* Reset the event queue, clearing all events * @param resetCallback Optional callback to run after reset (for cleanup)
ai_animation/src/events.ts:63
↓ 1 callersMethodretreatToString
(path)
diplomacy/web/src/gui/utils/order_building.js:119
↓ 1 callersMethodretrieve_game_port
Retreive and store the game's port :param host: the host :param port: the port :param game_id: the game id
diplomacy/daide/tests/test_daide_game.py:301
↓ 1 callersFunctionrotateToNextDisplay
* Rotate to the next display type
ai_animation/src/components/rotatingDisplay.ts:79
↓ 1 callersFunctionrun_diary_consolidation
Consolidate older diary entries while keeping recent ones. Parameters ---------- agent : DiplomacyAgent game : Game log_fil
ai_diplomacy/diary_logic.py:14
↓ 1 callersFunctionrun_test
Run the SVG optimizer test and display results
experiments/test_svg_optimizer.py:15
↓ 1 callersFunctionsafe_react_attribute_name
Convert given raw attribute name into a valid React HTML tag attribute name. :param name: attribute to convert :return: valid attrib
diplomacy/web/svg_to_react.py:145
↓ 1 callersFunctionsaveGameToDisk
(game, onError)
diplomacy/web/src/gui/utils/saveGameToDisk.js:17
↓ 1 callersFunctionsave_game_state
Serialise the entire game to JSON, preserving per-phase custom metadata and adding `state_phase_summaries` for every completed phase.
ai_diplomacy/game_logic.py:86
↓ 1 callersMethodscheduleMany
(events: ScheduledEvent[])
ai_animation/src/events.ts:81
↓ 1 callersFunctionscheduleMessageSequence
* Schedules all messages to be displayed sequentially using promises
ai_animation/src/components/momentModal.ts:107
↓ 1 callersFunctionscheduleSummarySpeech
()
ai_animation/src/phase.ts:125
↓ 1 callersMethodsendGameMessage
(parameters, game)
diplomacy/web/src/diplomacy/client/channel.js:175
↓ 1 callersMethodsendMessage
(networkGame, recipient, body)
diplomacy/web/src/gui/pages/content_game.jsx:495
↓ 1 callersFunctionsend_current_orders
Send expected orders for current phase. :param game: a Network game object. :type game: NetworkGame
diplomacy/tests/network/test_real_game.py:231
↓ 1 callersFunctionsend_messages_if_needed
Take messages to send in top of given messages list and send them. :param game: a NetworkGame object. :param expected_messages: an i
diplomacy/tests/network/test_real_game.py:206
↓ 1 callersFunctionserialize_agent
Converts an agent object to a JSON-serializable dictionary.
ai_diplomacy/game_logic.py:25
↓ 1 callersMethodsetCoasts
(provinces)
diplomacy/web/src/gui/utils/province.js:66
↓ 1 callersMethodsetConnectionshowServerFields
(showServerFields)
diplomacy/web/src/gui/utils/dipStorage.jsx:98
↓ 1 callersMethodsetDummy
()
diplomacy/web/src/diplomacy/engine/power.js:107
↓ 1 callersMethodsetNeighbors
(neighborProvinces)
diplomacy/web/src/gui/utils/province.js:77
↓ 1 callersMethodsetOrders
(powerName, orders)
diplomacy/web/src/diplomacy/engine/game.js:370
↓ 1 callersMethodsetSelectedLocation
(location, powerName, orderType, orderPath)
diplomacy/web/src/gui/pages/content_game.jsx:250
↓ 1 callersMethodsetSelectedVia
(moveType, powerName, orderPath, location)
diplomacy/web/src/gui/pages/content_game.jsx:259
↓ 1 callersMethodsetWait
(powerName, wait)
diplomacy/web/src/diplomacy/engine/game.js:375
↓ 1 callersMethodsetWaitFlag
(waitFlag)
diplomacy/web/src/gui/pages/content_game.jsx:780
↓ 1 callersMethodset_comms
Set the client's communications. The client's comms will be sorted to have the requests of a phase preceding the responses /
diplomacy/daide/tests/test_daide_game.py:92
↓ 1 callersMethodset_state
Sets the game from a saved internal state :param state: The saved state (dict) :param clear_history: Boolean. If true, all g
diplomacy/engine/game.py:1679
↓ 1 callersMethodset_tasks
Set server callbacks on given IO loop. Must be called once per server before starting IO loop.
diplomacy/server/server.py:465
↓ 1 callersFunctionsetup
(app)
docs/conf.py:77
↓ 1 callersFunctionsetupEventListeners
* Sets up event listeners for the victory modal
ai_animation/src/components/victoryModal.ts:311
↓ 1 callersFunctionsetupPhaseJumpTool
* Sets up the phase jump tool functionality
ai_animation/src/debug/phaseJump.ts:59
↓ 1 callersMethodshow
* Shows the debug menu
ai_animation/src/debug/debugMenu.ts:58
↓ 1 callersFunctionshowConversationModalSequence
* Shows the conversation modal and sequences all messages through the event queue
ai_animation/src/components/momentModal.ts:63
↓ 1 callersFunctionshowVictoryModal
(options: VictoryModalOptions)
ai_animation/src/components/victoryModal.ts:18
↓ 1 callersMethodsize
()
diplomacy/web/src/diplomacy/client/game_instance_set.js:73
↓ 1 callersFunctionstartRotationTimer
* Start or restart the rotation timer
ai_animation/src/components/rotatingDisplay.ts:64
↓ 1 callersFunctionstate_dict_to_game_and_power
Converts a game state from the dictionary format to an actual diplomacy.Game object with the related power. :param state_dict: The game stat
diplomacy/integration/webdiplomacy_net/game.py:226
↓ 1 callersMethodstop
* Stop the event queue
ai_animation/src/events.ts:55
↓ 1 callersFunctionstrip_json_comments
Removes // style comments from a JSON string. Handles comments at the end of lines. Does not handle block comments or // within string li
experiments/analyze_rl_json.py:13
↓ 1 callersMethodsub_keys
Return list of keys between key_from and key_to (both bounds included).
diplomacy/utils/sorted_dict.py:158
↓ 1 callersMethodsuccess
(msg)
diplomacy/web/src/diplomacy/utils/diplog.js:31
↓ 1 callersMethodsupportToString
(path)
diplomacy/web/src/gui/utils/order_building.js:106
↓ 1 callersMethodsvgName
()
diplomacy/web/src/gui/wizards/gameCreation/mapList.js:43
↓ 1 callersMethodsynchronize
Send a :class:`.Synchronize` request to synchronize this game with associated server game.
diplomacy/client/network_game.py:122
↓ 1 callersMethodsynchronize
(parameters, game)
diplomacy/web/src/diplomacy/client/channel.js:211
↓ 1 callersMethodterminate_game
Tell Tornado that a power game is finished.
diplomacy/tests/network/test_real_game.py:170
↓ 1 callersFunctiontestElevenLabsKey
()
ai_animation/src/speech.ts:40
↓ 1 callersFunctiontestWebhookUrl
()
ai_animation/src/webhooks/phaseNotifier.ts:7
↓ 1 callersFunctiontest_ignored_messages_tracking
Test the ignored messages tracking functionality.
experiments/test_ignored_messages.py:10
↓ 1 callersFunctiontest_single_phase
Test analysis on a single phase to verify everything works
experiments/test_analyzer.py:10
↓ 1 callersMethodthrow
Convert this error to an instance of a Diplomacy ResponseException class and raises it.
diplomacy/communication/responses.py:59
↓ 1 callersMethodto_bytes
Returning the bytes representation of the response
diplomacy/daide/notifications.py:41
↓ 1 callersMethodto_json
(self, raw_value)
diplomacy/utils/parsing.py:310
↓ 1 callersMethodto_json
Dict is saved as a sequence.
diplomacy/utils/parsing.py:454
↓ 1 callersFunctionto_saved_game_format
Converts a game to a standardized JSON format :param game: game to convert. :param output_path: Optional path to file. If set, the j
diplomacy/utils/export.py:33
↓ 1 callersMethodto_type
(self, json_value)
diplomacy/utils/parsing.py:382
↓ 1 callersMethodto_type
JSON is parsed as a sequence and converted to a dict.
diplomacy/utils/parsing.py:458
↓ 1 callersMethodtoggle
()
ai_animation/src/debug/eventQueueDisplay.ts:225
↓ 1 callersMethodtoken_is_admin
Return True if given token is associated to an administrator.
diplomacy/server/users.py:106
↓ 1 callersMethodtoken_is_alive
Return True if given token is known and still alive. A token is alive if elapsed time since last token usage does not exceed token lifeti
diplomacy/server/users.py:90
↓ 1 callersMethodtoken_is_omniscient
Return True if given token is omniscient for given game data. :param token: token :param server_game: game data
diplomacy/server/server.py:815
↓ 1 callersMethodtransfer_special_token
Move given token from a special case to another (observer -> omniscient or omniscient -> observer).
diplomacy/server/server_game.py:340
↓ 1 callersFunctiontranslate_notification
Find notification handler function for associated notification, run it and return its result. :param server: a Server object to pass to hand
diplomacy/daide/notification_managers.py:179
↓ 1 callersMethodtranslate_notification
Translate a notification to an array of notifications. :param notification: a notification object to pass to handler function.
diplomacy/server/connection_handler.py:93
↓ 1 callersMethodtryConnect
()
diplomacy/web/src/diplomacy/client/connection.js:169
↓ 1 callersMethodupdate
(self, element)
diplomacy/utils/parsing.py:254
↓ 1 callersMethodupdate
(self, element)
diplomacy/utils/parsing.py:301
↓ 1 callersMethodupdate
(self, element)
diplomacy/utils/parsing.py:451
↓ 1 callersFunctionupdateAnimations
()
ai_animation/src/main.ts:105
↓ 1 callersMethodupdateController
(controller, timestamp)
diplomacy/web/src/diplomacy/engine/power.js:98
↓ 1 callersFunctionupdateEventQueueDebugDisplay
()
ai_animation/src/debug/eventQueueDisplay.ts:283
↓ 1 callersFunctionupdatePhaseJumpOptions
()
ai_animation/src/debug/phaseJump.ts:205
↓ 1 callersMethodupdatePowersControllers
(controllers, timestamps)
diplomacy/web/src/diplomacy/engine/game.js:386
↓ 1 callersFunctionupdateSortIndicators
* Update sort indicator classes on table headers
ai_animation/src/domElements/standingsBoard.ts:251
↓ 1 callersFunctionupdateSupplyCenterOwnership
(centers)
ai_animation/src/map/state.ts:8
↓ 1 callersMethodupdate_controller
(Network Method) Update controller with given username and timestamp.
diplomacy/engine/power.py:358
↓ 1 callersMethodupdate_delay
Change deadline delay with given new delay.
diplomacy/server/scheduler.py:85
↓ 1 callersMethodupdate_dummy_powers
Force all power associated to given dummy power names to be uncontrolled. :param dummy_power_names: Sequence of required dummy power nam
diplomacy/engine/game.py:810
↓ 1 callersMethodupdate_goals
Updates the agent's strategic goals.
ai_diplomacy/agent.py:1172
↓ 1 callersMethodupdate_json_dict
Update a JSON dictionary before being parsed with class model. JSON dictionary is passed by class method from_dict() (see below), and is
diplomacy/utils/jsonable.py:100
↓ 1 callersFunctionupdate_model
Return a copy of model updated with additional keys. :param model: (Dictionary). Model to extend :param additional_keys: (Dictionary
diplomacy/utils/parsing.py:45
↓ 1 callersMethodupdate_powers_controllers
Update powers controllers. :param powers_controllers: a dictionary mapping a power name to a controller name. :param timesta
diplomacy/engine/game.py:819
↓ 1 callersMethoduser_is_master
Return True if given username is a game master for given game data. :param username: username :param server_game: game data
diplomacy/server/server.py:779
↓ 1 callersMethodvalidate
(self, element)
diplomacy/utils/parsing.py:448
↓ 1 callersMethodvalidate
Validate that the configuration from a map file is correct :param force: Indicate that we want to force a validation, even if the map is
diplomacy/engine/map.py:181
← previousnext →1,201–1,300 of 2,689, ranked by callers