Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoodStartLabs/AI_Diplomacy
/ functions
Functions
2,689 in github.com/GoodStartLabs/AI_Diplomacy
⨍
Functions
2,689
◇
Types & classes
474
↓ 1 callers
Method
remove_special_token
Remove given token from given special power name (either __OBSERVER__ or __OMNISCIENT__).
diplomacy/server/server_game.py:371
↓ 1 callers
Method
remove_user
Remove user related to given username.
diplomacy/server/users.py:159
↓ 1 callers
Method
renderCurrentMessages
(engine, role)
diplomacy/web/src/gui/pages/content_game.jsx:921
↓ 1 callers
Method
renderMapForCurrent
(gameEngine, powerName, orderType, orderPath)
diplomacy/web/src/gui/pages/content_game.jsx:1008
↓ 1 callers
Method
renderMapForMessages
(gameEngine, showOrders)
diplomacy/web/src/gui/pages/content_game.jsx:993
↓ 1 callers
Method
renderMapForResults
(gameEngine, showOrders)
diplomacy/web/src/gui/pages/content_game.jsx:978
↓ 1 callers
Method
renderOrders
(engine, currentPowerName)
diplomacy/web/src/gui/pages/content_game.jsx:874
↓ 1 callers
Method
renderPastMessages
(engine, role)
diplomacy/web/src/gui/pages/content_game.jsx:887
↓ 1 callers
Function
renderRelationshipHistoryChartView
* 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 callers
Function
renderSCHistoryChartView
* 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 callers
Method
renderTabCurrentPhase
(toDisplay, engine, powerName, orderType, orderPath, currentPowerName, currentTabOrderCreation)
diplomacy/web/src/gui/pages/content_game.jsx:1195
↓ 1 callers
Method
renderTabMessages
(toDisplay, initialEngine, currentPowerName)
diplomacy/web/src/gui/pages/content_game.jsx:1157
↓ 1 callers
Method
renderTabResults
(toDisplay, initialEngine)
diplomacy/web/src/gui/pages/content_game.jsx:1083
↓ 1 callers
Method
replace_user
Replaces user object with a new user
diplomacy/server/users.py:155
↓ 1 callers
Method
reset
* Reset the event queue, clearing all events * @param resetCallback Optional callback to run after reset (for cleanup)
ai_animation/src/events.ts:63
↓ 1 callers
Method
retreatToString
(path)
diplomacy/web/src/gui/utils/order_building.js:119
↓ 1 callers
Method
retrieve_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 callers
Function
rotateToNextDisplay
* Rotate to the next display type
ai_animation/src/components/rotatingDisplay.ts:79
↓ 1 callers
Function
run_diary_consolidation
Consolidate older diary entries while keeping recent ones. Parameters ---------- agent : DiplomacyAgent game : Game log_fil
ai_diplomacy/diary_logic.py:14
↓ 1 callers
Function
run_test
Run the SVG optimizer test and display results
experiments/test_svg_optimizer.py:15
↓ 1 callers
Function
safe_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 callers
Function
saveGameToDisk
(game, onError)
diplomacy/web/src/gui/utils/saveGameToDisk.js:17
↓ 1 callers
Function
save_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 callers
Method
scheduleMany
(events: ScheduledEvent[])
ai_animation/src/events.ts:81
↓ 1 callers
Function
scheduleMessageSequence
* Schedules all messages to be displayed sequentially using promises
ai_animation/src/components/momentModal.ts:107
↓ 1 callers
Function
scheduleSummarySpeech
()
ai_animation/src/phase.ts:125
↓ 1 callers
Method
sendGameMessage
(parameters, game)
diplomacy/web/src/diplomacy/client/channel.js:175
↓ 1 callers
Method
sendMessage
(networkGame, recipient, body)
diplomacy/web/src/gui/pages/content_game.jsx:495
↓ 1 callers
Function
send_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 callers
Function
send_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 callers
Function
serialize_agent
Converts an agent object to a JSON-serializable dictionary.
ai_diplomacy/game_logic.py:25
↓ 1 callers
Method
setCoasts
(provinces)
diplomacy/web/src/gui/utils/province.js:66
↓ 1 callers
Method
setConnectionshowServerFields
(showServerFields)
diplomacy/web/src/gui/utils/dipStorage.jsx:98
↓ 1 callers
Method
setDummy
()
diplomacy/web/src/diplomacy/engine/power.js:107
↓ 1 callers
Method
setNeighbors
(neighborProvinces)
diplomacy/web/src/gui/utils/province.js:77
↓ 1 callers
Method
setOrders
(powerName, orders)
diplomacy/web/src/diplomacy/engine/game.js:370
↓ 1 callers
Method
setSelectedLocation
(location, powerName, orderType, orderPath)
diplomacy/web/src/gui/pages/content_game.jsx:250
↓ 1 callers
Method
setSelectedVia
(moveType, powerName, orderPath, location)
diplomacy/web/src/gui/pages/content_game.jsx:259
↓ 1 callers
Method
setWait
(powerName, wait)
diplomacy/web/src/diplomacy/engine/game.js:375
↓ 1 callers
Method
setWaitFlag
(waitFlag)
diplomacy/web/src/gui/pages/content_game.jsx:780
↓ 1 callers
Method
set_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 callers
Method
set_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 callers
Method
set_tasks
Set server callbacks on given IO loop. Must be called once per server before starting IO loop.
diplomacy/server/server.py:465
↓ 1 callers
Function
setup
(app)
docs/conf.py:77
↓ 1 callers
Function
setupEventListeners
* Sets up event listeners for the victory modal
ai_animation/src/components/victoryModal.ts:311
↓ 1 callers
Function
setupPhaseJumpTool
* Sets up the phase jump tool functionality
ai_animation/src/debug/phaseJump.ts:59
↓ 1 callers
Method
show
* Shows the debug menu
ai_animation/src/debug/debugMenu.ts:58
↓ 1 callers
Function
showConversationModalSequence
* Shows the conversation modal and sequences all messages through the event queue
ai_animation/src/components/momentModal.ts:63
↓ 1 callers
Function
showVictoryModal
(options: VictoryModalOptions)
ai_animation/src/components/victoryModal.ts:18
↓ 1 callers
Method
size
()
diplomacy/web/src/diplomacy/client/game_instance_set.js:73
↓ 1 callers
Function
startRotationTimer
* Start or restart the rotation timer
ai_animation/src/components/rotatingDisplay.ts:64
↓ 1 callers
Function
state_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 callers
Method
stop
* Stop the event queue
ai_animation/src/events.ts:55
↓ 1 callers
Function
strip_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 callers
Method
sub_keys
Return list of keys between key_from and key_to (both bounds included).
diplomacy/utils/sorted_dict.py:158
↓ 1 callers
Method
success
(msg)
diplomacy/web/src/diplomacy/utils/diplog.js:31
↓ 1 callers
Method
supportToString
(path)
diplomacy/web/src/gui/utils/order_building.js:106
↓ 1 callers
Method
svgName
()
diplomacy/web/src/gui/wizards/gameCreation/mapList.js:43
↓ 1 callers
Method
synchronize
Send a :class:`.Synchronize` request to synchronize this game with associated server game.
diplomacy/client/network_game.py:122
↓ 1 callers
Method
synchronize
(parameters, game)
diplomacy/web/src/diplomacy/client/channel.js:211
↓ 1 callers
Method
terminate_game
Tell Tornado that a power game is finished.
diplomacy/tests/network/test_real_game.py:170
↓ 1 callers
Function
testElevenLabsKey
()
ai_animation/src/speech.ts:40
↓ 1 callers
Function
testWebhookUrl
()
ai_animation/src/webhooks/phaseNotifier.ts:7
↓ 1 callers
Function
test_ignored_messages_tracking
Test the ignored messages tracking functionality.
experiments/test_ignored_messages.py:10
↓ 1 callers
Function
test_single_phase
Test analysis on a single phase to verify everything works
experiments/test_analyzer.py:10
↓ 1 callers
Method
throw
Convert this error to an instance of a Diplomacy ResponseException class and raises it.
diplomacy/communication/responses.py:59
↓ 1 callers
Method
to_bytes
Returning the bytes representation of the response
diplomacy/daide/notifications.py:41
↓ 1 callers
Method
to_json
(self, raw_value)
diplomacy/utils/parsing.py:310
↓ 1 callers
Method
to_json
Dict is saved as a sequence.
diplomacy/utils/parsing.py:454
↓ 1 callers
Function
to_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 callers
Method
to_type
(self, json_value)
diplomacy/utils/parsing.py:382
↓ 1 callers
Method
to_type
JSON is parsed as a sequence and converted to a dict.
diplomacy/utils/parsing.py:458
↓ 1 callers
Method
toggle
()
ai_animation/src/debug/eventQueueDisplay.ts:225
↓ 1 callers
Method
token_is_admin
Return True if given token is associated to an administrator.
diplomacy/server/users.py:106
↓ 1 callers
Method
token_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 callers
Method
token_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 callers
Method
transfer_special_token
Move given token from a special case to another (observer -> omniscient or omniscient -> observer).
diplomacy/server/server_game.py:340
↓ 1 callers
Function
translate_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 callers
Method
translate_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 callers
Method
tryConnect
()
diplomacy/web/src/diplomacy/client/connection.js:169
↓ 1 callers
Method
update
(self, element)
diplomacy/utils/parsing.py:254
↓ 1 callers
Method
update
(self, element)
diplomacy/utils/parsing.py:301
↓ 1 callers
Method
update
(self, element)
diplomacy/utils/parsing.py:451
↓ 1 callers
Function
updateAnimations
()
ai_animation/src/main.ts:105
↓ 1 callers
Method
updateController
(controller, timestamp)
diplomacy/web/src/diplomacy/engine/power.js:98
↓ 1 callers
Function
updateEventQueueDebugDisplay
()
ai_animation/src/debug/eventQueueDisplay.ts:283
↓ 1 callers
Function
updatePhaseJumpOptions
()
ai_animation/src/debug/phaseJump.ts:205
↓ 1 callers
Method
updatePowersControllers
(controllers, timestamps)
diplomacy/web/src/diplomacy/engine/game.js:386
↓ 1 callers
Function
updateSortIndicators
* Update sort indicator classes on table headers
ai_animation/src/domElements/standingsBoard.ts:251
↓ 1 callers
Function
updateSupplyCenterOwnership
(centers)
ai_animation/src/map/state.ts:8
↓ 1 callers
Method
update_controller
(Network Method) Update controller with given username and timestamp.
diplomacy/engine/power.py:358
↓ 1 callers
Method
update_delay
Change deadline delay with given new delay.
diplomacy/server/scheduler.py:85
↓ 1 callers
Method
update_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 callers
Method
update_goals
Updates the agent's strategic goals.
ai_diplomacy/agent.py:1172
↓ 1 callers
Method
update_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 callers
Function
update_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 callers
Method
update_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 callers
Method
user_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 callers
Method
validate
(self, element)
diplomacy/utils/parsing.py:448
↓ 1 callers
Method
validate
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
← previous
next →
1,201–1,300 of 2,689, ranked by callers