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
Function
jumpToPhase
* Jumps to the specified phase by name
ai_animation/src/debug/phaseJump.ts:145
↓ 1 callers
Method
lastKey
()
diplomacy/web/src/diplomacy/utils/sorted_dict.js:90
↓ 1 callers
Method
last_item
Get the item (key-value pair) for the highest key in the dict.
diplomacy/utils/sorted_dict.py:134
↓ 1 callers
Function
launch_case
Launch a game case.
diplomacy/tests/network/run_real_game.py:49
↓ 1 callers
Method
leave
(parameters)
diplomacy/web/src/diplomacy/client/network_game.js:74
↓ 1 callers
Method
listGames
(parameters)
diplomacy/web/src/diplomacy/client/channel.js:99
↓ 1 callers
Function
loadGameBtnFunction
(file: File)
ai_animation/src/domElements.ts:61
↓ 1 callers
Function
loadGameFromDisk
()
diplomacy/web/src/gui/utils/load_game_from_disk.js:23
↓ 1 callers
Function
loadStandingsData
* Load standings data from CSV
ai_animation/src/domElements/standingsBoard.ts:98
↓ 1 callers
Function
load_game_state
Load and fully re-hydrate the game, agents and GameHistory – including `orders_by_power`, `results_by_power`, `submitted_orders_by_power`,
ai_diplomacy/game_logic.py:170
↓ 1 callers
Method
load_map
Load a map and process directives :param reinit_powers: Boolean. If true, empty powers dict. :return: Nothing, but stores th
diplomacy/engine/game.py:1406
↓ 1 callers
Function
load_power_game
Load and play a power game from admin game for given power name. :type case_data: CaseData
diplomacy/tests/network/test_real_game.py:505
↓ 1 callers
Function
main
()
lm_game.py:192
↓ 1 callers
Function
main
()
diplomacy_unified_analysis_final.py:1339
↓ 1 callers
Function
main
()
analyze_game_moments.py:1281
↓ 1 callers
Function
main
()
experiment_runner.py:470
↓ 1 callers
Function
main
()
experiments/analyze_sample.py:10
↓ 1 callers
Function
main
Main entry point for the Statistical Game Analysis tool.
analysis/statistical_game_analysis.py:1389
↓ 1 callers
Function
main
Test real game environment with one game and all power controlled (no dummy powers). This method may be called form a non-test code to run a
diplomacy/tests/network/test_real_game.py:536
↓ 1 callers
Function
main
Main function for this module. Load and run tests. Each test run a game and checks game messages and phases against an expected game data fil
diplomacy/tests/network/run_real_game.py:55
↓ 1 callers
Function
main
Main script function.
diplomacy/web/svg_to_react.py:395
↓ 1 callers
Method
markAllMessagesRead
()
diplomacy/web/src/diplomacy/engine/game.js:479
↓ 1 callers
Method
master_level
Create and return a game master level with given game data and power name.
diplomacy/server/request_manager_utils.py:109
↓ 1 callers
Method
moveViaToString
(path)
diplomacy/web/src/gui/utils/order_building.js:102
↓ 1 callers
Function
msToSeconds
(ms: number)
ai_animation/src/utils/timing.ts:37
↓ 1 callers
Method
newChannel
(username, token)
diplomacy/web/src/diplomacy/client/request_future_context.js:39
↓ 1 callers
Method
new_channel
Create, store (in associated connection), and return a new channel with given token.
diplomacy/client/response_managers.py:58
↓ 1 callers
Method
new_global_message
Create an undated (without timestamp) global message to be sent from a power via server. Server will answer with timestamp, and message w
diplomacy/engine/game.py:845
↓ 1 callers
Method
new_power_message
Create a undated (without timestamp) power message to be sent from a power to another via server. Server will answer with timestamp, and
diplomacy/engine/game.py:830
↓ 1 callers
Function
noPromise
()
diplomacy/web/src/gui/pages/content_game.jsx:98
↓ 1 callers
Method
noWait
(parameters)
diplomacy/web/src/diplomacy/client/network_game.js:102
↓ 1 callers
Method
no_wait
Add a data to be processed the sooner. :param data: data to add :param nb_units_to_wait: time to wait (in number of units) f
diplomacy/server/scheduler.py:196
↓ 1 callers
Function
normalize_recipient_name
Normalize recipient names to handle LLM typos and abbreviations.
ai_diplomacy/utils.py:518
↓ 1 callers
Method
notifiedGamePhaseUpdated
(networkGame, notification)
diplomacy/web/src/gui/pages/content_game.jsx:379
↓ 1 callers
Method
notifiedNewGameMessage
(networkGame, notification)
diplomacy/web/src/gui/pages/content_game.jsx:412
↓ 1 callers
Method
notifiedPowersControllers
(networkGame, notification)
diplomacy/web/src/gui/pages/content_game.jsx:361
↓ 1 callers
Method
notify
Notify game with given notification (call associated callbacks if defined).
diplomacy/client/network_game.py:199
↓ 1 callers
Method
notify
(notification)
diplomacy/web/src/diplomacy/client/network_game.js:50
↓ 1 callers
Function
notifyPhaseChange
(oldPhaseIndex: number, newPhaseIndex: number)
ai_animation/src/webhooks/phaseNotifier.ts:48
↓ 1 callers
Method
notify_account_deleted
Notify all tokens of given username about account deleted.
diplomacy/server/notifier.py:160
↓ 1 callers
Method
notify_cleared_centers
Notify all game tokens about game centers cleared for a given power name. :param server_game: game to notify :param power_na
diplomacy/server/notifier.py:313
↓ 1 callers
Method
notify_cleared_orders
Notify all game tokens about game orders cleared for a given power name. :param server_game: game to notify :param power_nam
diplomacy/server/notifier.py:291
↓ 1 callers
Method
notify_cleared_units
Notify all game tokens about game units cleared for a given power name. :param server_game: game to notify :param power_name
diplomacy/server/notifier.py:302
↓ 1 callers
Method
notify_game_deleted
Notify all game tokens about game deleted. :param server_game: game to notify :type server_game: diplomacy.server.server_gam
diplomacy/server/notifier.py:166
↓ 1 callers
Method
notify_game_message
Notify relevant users about a game message received. :param server_game: Game data who handles this game message. :param gam
diplomacy/server/notifier.py:324
↓ 1 callers
Method
notify_game_phase_data
Notify all game tokens about current game state. :param server_game: game to notify :type server_game: diplomacy.server.serv
diplomacy/server/notifier.py:195
↓ 1 callers
Method
notify_game_vote_updated
Notify all game tokens about current game vote. Send relevant notifications to each type of tokens. :param server_game: game
diplomacy/server/notifier.py:227
↓ 1 callers
Method
notify_power_orders_update
Notify all power tokens and all observers about new orders for given power. :param server_game: game to notify :param power:
diplomacy/server/notifier.py:256
↓ 1 callers
Method
observer_level
Create and return a game observer level with given game data and power name.
diplomacy/server/request_manager_utils.py:99
↓ 1 callers
Method
occupied
(province, powerName)
diplomacy/web/src/gui/utils/order_building.js:48
↓ 1 callers
Method
omniscient_level
Create and return a game omniscient level with given game data and power name.
diplomacy/server/request_manager_utils.py:104
↓ 1 callers
Method
onClick
(event)
diplomacy/web/src/gui/components/button.jsx:39
↓ 1 callers
Method
onCreate
(form)
diplomacy/web/src/gui/pages/content_games.jsx:72
↓ 1 callers
Method
onDecrementPastPhase
(event)
diplomacy/web/src/gui/pages/content_game.jsx:828
↓ 1 callers
Method
onHover
(event)
diplomacy/web/src/gui/maps/standard/SvgStandard.js:20
↓ 1 callers
Method
onHover
(event)
diplomacy/web/src/gui/maps/pure/SvgPure.js:20
↓ 1 callers
Method
onHover
(event)
diplomacy/web/src/gui/maps/ancmed/SvgAncMed.js:20
↓ 1 callers
Method
onHover
(event)
diplomacy/web/src/gui/maps/modern/SvgModern.js:20
↓ 1 callers
Method
onIncrementPastPhase
(event)
diplomacy/web/src/gui/pages/content_game.jsx:822
↓ 1 callers
Method
onReconnectionError
(error)
diplomacy/web/src/gui/pages/page.jsx:80
↓ 1 callers
Method
onSetEmptyOrdersSet
* Set an empty local orders set for given power name. * @param {string} powerName - power name
diplomacy/web/src/gui/pages/content_game.jsx:657
↓ 1 callers
Method
onSubmit
(data)
diplomacy/web/src/gui/pages/content_connection.jsx:32
↓ 1 callers
Function
on_admin_game_phase_update
Admin game notification callback for game phase update. :param admin_game: admin game :param notification: notification :typ
diplomacy/tests/network/test_real_game.py:297
↓ 1 callers
Method
on_power_phase_update
User game notification callback for game phase updated. :param game: game :param notification: notification :typ
diplomacy/tests/network/test_real_game.py:175
↓ 1 callers
Function
optimize_standard_svg
Optimize the standard.svg file and save the result
experiments/optimize_standard_svg.py:16
↓ 1 callers
Function
oscillate
(frequency: number, elapsedTime: number)
ai_animation/src/utils/timing.ts:11
↓ 1 callers
Function
parseCSV
* Parse CSV data into our StandingsData format
ai_animation/src/domElements/standingsBoard.ts:119
↓ 1 callers
Function
parse_arguments
()
lm_game.py:61
↓ 1 callers
Method
parse_invalid_moves_from_csv
Parse the CSV file to count invalid moves by model
analyze_game_moments.py:186
↓ 1 callers
Method
parse_llm_responses_csv
Parse the CSV file to extract diary entries by phase and power
analyze_game_moments.py:109
↓ 1 callers
Function
parse_prompts_dir_arg
Resolve --prompts_dir into a mapping {power: Path}. Accepts either a single path or 7 comma-separated paths. Every path is normalised to
ai_diplomacy/utils.py:551
↓ 1 callers
Function
parse_success_value
Converts success string to boolean or keeps as is if not clearly boolean.
experiments/csv_to_rl_json.py:7
↓ 1 callers
Method
phase_history_from_timestamp
Return list of game phase data from game history for which state timestamp >= given timestamp.
diplomacy/engine/game.py:726
↓ 1 callers
Function
planning_phase
Lets each power generate a strategic plan using their DiplomacyAgent.
ai_diplomacy/planning.py:11
↓ 1 callers
Function
playRandomSoundEffect
()
ai_animation/src/domElements/chatWindows.ts:484
↓ 1 callers
Method
power_level
Create and return a game power level with given game data and power name.
diplomacy/server/request_manager_utils.py:94
↓ 1 callers
Function
prepend_css_selectors
Prepend all CSS selector with given prefix (e.g. ID selector) followed by a space. :param prefix: prefix to prepend :param css_text:
diplomacy/web/svg_to_react.py:62
↓ 1 callers
Method
prettyRole
(role)
diplomacy/web/src/gui/pages/content_game.jsx:190
↓ 1 callers
Function
previousPhase
()
ai_animation/src/phase.ts:156
↓ 1 callers
Method
printMessages
(messages)
diplomacy/web/src/diplomacy/utils/diplog.js:35
↓ 1 callers
Method
process
()
diplomacy/web/src/diplomacy/client/connection.js:181
↓ 1 callers
Method
process
(parameters, game)
diplomacy/web/src/diplomacy/client/channel.js:229
↓ 1 callers
Function
process_game_data_from_folders
Reads log data from folder and makes analytic data sets
analysis/make_all_analysis_data.py:37
↓ 1 callers
Function
process_game_inputs_in_zip
Read in a game folder and return the overview, lmvs_data, and all_responses Args: zip_path: Path to the zip file selecte
analysis/analysis_helpers.py:78
↓ 1 callers
Function
process_phase_dict
Converts a phase dict to its string representation
diplomacy/integration/webdiplomacy_net/game.py:175
↓ 1 callers
Method
promote_omniscient
Allow given username to be an omniscient observer of this game.
diplomacy/server/server_game.py:407
↓ 1 callers
Method
querySchedule
(parameters, game)
diplomacy/web/src/diplomacy/client/channel.js:233
↓ 1 callers
Method
read_stream
Read the next message from the stream
diplomacy/daide/connection_handler.py:116
↓ 1 callers
Method
rearrange
This function is used to parse commands :param word: The list of words to vet (e.g. ['ENGLAND', 'F', 'WES', 'TYS', '|']) :re
diplomacy/engine/map.py:987
↓ 1 callers
Method
reconnect
Perform concrete reconnection work.
diplomacy/client/connection.py:416
↓ 1 callers
Method
reconnect
()
diplomacy/web/src/diplomacy/client/connection.js:48
↓ 1 callers
Method
reinit
Performs a reinitialization of some of the parameters :param include_flags: Bit mask to indicate which params to reset
diplomacy/engine/power.py:148
↓ 1 callers
Method
relaunch_token
Update timestamp of given token with current timestamp.
diplomacy/server/users.py:101
↓ 1 callers
Method
release_name_variant
Return the next available user name variant
diplomacy/daide/connection_handler.py:90
↓ 1 callers
Method
reloadServerOrders
* Reset local orders and replace them with current server orders for current selected power.
diplomacy/web/src/gui/pages/content_game.jsx:607
↓ 1 callers
Method
removeFromMyGames
(gameID)
diplomacy/web/src/gui/pages/page.jsx:332
↓ 1 callers
Method
removeGame
(gameID)
diplomacy/web/src/gui/pages/page.jsx:264
↓ 1 callers
Method
removeUserGame
(username, gameID)
diplomacy/web/src/gui/utils/dipStorage.jsx:122
↓ 1 callers
Method
remove_data
Remove a data (and all associated tasks) from scheduler.
diplomacy/server/scheduler.py:220
↓ 1 callers
Method
remove_special
Remove special gme.
diplomacy/client/game_instances_set.py:59
← previous
next →
1,101–1,200 of 2,689, ranked by callers