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
getConnectionForm
()
diplomacy/web/src/gui/utils/dipStorage.jsx:60
↓ 1 callers
Method
getDefaultPowerName
()
diplomacy/web/src/gui/forms/join_form.jsx:42
↓ 1 callers
Method
getGamesFound
()
diplomacy/web/src/gui/pages/page.jsx:224
↓ 1 callers
Method
getHeader
(columns)
diplomacy/web/src/gui/components/table.jsx:53
↓ 1 callers
Method
getHeaderLine
(header)
diplomacy/web/src/gui/components/table.jsx:72
↓ 1 callers
Method
getJoinUI
()
diplomacy/web/src/gui/utils/inline_game_view.jsx:67
↓ 1 callers
Method
getLatestTimestamp
()
diplomacy/web/src/diplomacy/engine/game.js:276
↓ 1 callers
Method
getLocationNames
()
diplomacy/web/src/gui/utils/province.js:82
↓ 1 callers
Method
getMyGames
()
diplomacy/web/src/gui/pages/page.jsx:220
↓ 1 callers
Method
getName
()
diplomacy/web/src/gui/pages/page.jsx:134
↓ 1 callers
Method
getNeighbors
(extraLocation)
diplomacy/web/src/gui/maps/standard/SvgStandard.js:20
↓ 1 callers
Method
getNeighbors
(extraLocation)
diplomacy/web/src/gui/maps/pure/SvgPure.js:20
↓ 1 callers
Method
getNeighbors
(extraLocation)
diplomacy/web/src/gui/maps/ancmed/SvgAncMed.js:20
↓ 1 callers
Method
getNeighbors
(extraLocation)
diplomacy/web/src/gui/maps/modern/SvgModern.js:20
↓ 1 callers
Function
getNextPhaseName
(currentPhaseName: string)
ai_animation/src/types/moments.ts:175
↓ 1 callers
Method
getOrderBuilding
(powerName, orderType, orderPath)
diplomacy/web/src/gui/pages/content_game.jsx:217
↓ 1 callers
Method
getOrderTypeToLocs
(powerName)
diplomacy/web/src/diplomacy/engine/game.js:494
↓ 1 callers
Function
getRandomPower
* Return a random power from the PowerENUM for the player to control * Only returns powers that have more than 2 supply centers in the last phase
ai_animation/src/gameState.ts:33
↓ 1 callers
Method
getRelatedOrders
(name)
diplomacy/web/src/gui/maps/standard/SvgStandard.js:20
↓ 1 callers
Method
getRelatedOrders
(name)
diplomacy/web/src/gui/maps/pure/SvgPure.js:20
↓ 1 callers
Method
getRelatedOrders
(name)
diplomacy/web/src/gui/maps/ancmed/SvgAncMed.js:20
↓ 1 callers
Method
getRelatedOrders
(name)
diplomacy/web/src/gui/maps/modern/SvgModern.js:20
↓ 1 callers
Method
getServerWaitFlags
(engine)
diplomacy/web/src/gui/pages/content_game.jsx:208
↓ 1 callers
Method
getSpecial
()
diplomacy/web/src/diplomacy/client/game_instance_set.js:38
↓ 1 callers
Function
getSupplyCenterCounts
()
ai_animation/src/components/leaderboard.ts:45
↓ 1 callers
Function
getUnit
(unitOrder: UnitOrder, power: string)
ai_animation/src/units/animate.ts:75
↓ 1 callers
Method
getUrl
()
diplomacy/web/src/diplomacy/client/connection.js:232
↓ 1 callers
Method
getUserGameOrders
(username, gameID, gamePhase)
diplomacy/web/src/gui/utils/dipStorage.jsx:72
↓ 1 callers
Method
getUserGames
(username)
diplomacy/web/src/gui/utils/dipStorage.jsx:65
↓ 1 callers
Function
get_adjacent_territory_details
Generates a string describing adjacent territories and units that can interact with them.
ai_diplomacy/possible_order_context.py:274
↓ 1 callers
Method
get_colors
Parse and return power colors from extra field. :return: a dictionary mapping a power name to a HTML color. :rtype: dict
diplomacy/web/svg_to_react.py:133
↓ 1 callers
Method
get_controller_timestamp
(Network Method) Return timestamp when current controller took control of this power.
diplomacy/engine/power.py:380
↓ 1 callers
Method
get_conversation_reply
Generates a negotiation message, considering agent state.
ai_diplomacy/clients.py:537
↓ 1 callers
Function
get_convoy_paths_cache
Returns the current cache from disk
diplomacy/utils/convoy_paths.py:240
↓ 1 callers
Method
get_coordinates
Parse and return unit coordinates from extra field. :return: a dictionary mapping a province name to coordinates [x, y] (as string value
diplomacy/web/svg_to_react.py:96
↓ 1 callers
Function
get_decade_bin
Get decade bin for a year (e.g., 1903 -> '1900-1910')
diplomacy_unified_analysis_final.py:69
↓ 1 callers
Method
get_dummy_unordered_power_names
Return a sequence of playable dummy power names without orders but still orderable and with orderable locations.
diplomacy/engine/game.py:588
↓ 1 callers
Method
get_dummy_waiting_power_names
Return names of dummy powers waiting for orders for current loaded games. This query is allowed only for bot tokens. :param
diplomacy/server/server.py:581
↓ 1 callers
Function
get_future_game_done_fn
Return a callback to call when a power game is finished. Callback currently just prints a message to tell that power game is terminated.
diplomacy/tests/network/test_real_game.py:490
↓ 1 callers
Method
get_game_indices
Iterate over all game indices in server database. Convenient method to iterate over all server games (by calling load_game() on each game
diplomacy/server/server.py:512
↓ 1 callers
Method
get_global_messages
(self)
ai_diplomacy/game_history.py:47
↓ 1 callers
Method
get_info
Return info about scheduling for given data, or None if data is not found.
diplomacy/server/scheduler.py:165
↓ 1 callers
Method
get_latest_phase_diary_entries
Return all diary entries for the most-recent phase. Args: use_private_diary: If True look at self.private_diary, otherwi
ai_diplomacy/agent.py:378
↓ 1 callers
Method
get_name_variant
Return the address of the remote endpoint
diplomacy/daide/connection_handler.py:82
↓ 1 callers
Method
get_orders_history_for_phase
Return the orders for `phase_name` as: { "<POWER>": { "<order_type>": [
ai_diplomacy/game_history.py:256
↓ 1 callers
Method
get_plan
Generates a strategic plan for the given power based on the current state. This method is called by the agent's generate_plan method.
ai_diplomacy/clients.py:697
↓ 1 callers
Method
get_power_orders
Return expected orders for given power name.
diplomacy/tests/network/test_real_game.py:59
↓ 1 callers
Method
get_private_messages
(self, power: str)
ai_diplomacy/game_history.py:54
↓ 1 callers
Method
get_random_power_name
Return a random power name from remaining dummy power names. Raise an exception if there are no dummy power names.
diplomacy/engine/game.py:612
↓ 1 callers
Method
get_recent_messages_to_power
Gets the most recent messages sent TO this power, useful for tracking messages that need replies. Returns a list of dictionaries with
ai_diplomacy/game_history.py:429
↓ 1 callers
Method
get_reception_addresses
Generate addresses (couple [power name, token]) of all users implied in this game.
diplomacy/server/server_game.py:249
↓ 1 callers
Method
get_special
Return stored special game, or None if no special game found.
diplomacy/client/game_instances_set.py:51
↓ 1 callers
Method
get_symbol_sizes
Parse and return symbol sizes from extra field. :return: a dictionary mapping a symbol name to sizes ('width' and 'heigh
diplomacy/web/svg_to_react.py:118
↓ 1 callers
Function
get_user_game_fn
Return a coroutine procedure that loads and play a user game for given power name. :param case_data: case data :param power_name: st
diplomacy/tests/network/test_real_game.py:474
↓ 1 callers
Function
get_valid_orders
Generates orders with the LLM, validates them by round-tripping through the engine, and returns **both** the accepted and rejected orders so
ai_diplomacy/utils.py:135
↓ 1 callers
Function
get_year_from_phase_name
Extract year from phase name (e.g., 'S1901M' -> 1901)
diplomacy_unified_analysis_final.py:59
↓ 1 callers
Method
handleClickedID
(id)
diplomacy/web/src/gui/maps/standard/SvgStandard.js:20
↓ 1 callers
Method
handleClickedID
(id)
diplomacy/web/src/gui/maps/pure/SvgPure.js:20
↓ 1 callers
Method
handleClickedID
(id)
diplomacy/web/src/gui/maps/ancmed/SvgAncMed.js:20
↓ 1 callers
Method
handleClickedID
(id)
diplomacy/web/src/gui/maps/modern/SvgModern.js:20
↓ 1 callers
Method
handleHoverID
(id)
diplomacy/web/src/gui/maps/standard/SvgStandard.js:20
↓ 1 callers
Method
handleHoverID
(id)
diplomacy/web/src/gui/maps/pure/SvgPure.js:20
↓ 1 callers
Method
handleHoverID
(id)
diplomacy/web/src/gui/maps/ancmed/SvgAncMed.js:20
↓ 1 callers
Method
handleHoverID
(id)
diplomacy/web/src/gui/maps/modern/SvgModern.js:20
↓ 1 callers
Function
handle_response
Call appropriate handler for given response with given request context. :param context: request context. :param response: response r
diplomacy/client/response_managers.py:346
↓ 1 callers
Method
hasMyGame
(gameID)
diplomacy/web/src/gui/pages/page.jsx:337
↓ 1 callers
Method
hasPower
(powerName)
diplomacy/web/src/diplomacy/engine/game.js:292
↓ 1 callers
Method
has_messages_to_send
Return True if messages list still contains messages to send.
diplomacy/tests/network/test_real_game.py:86
↓ 1 callers
Method
has_player
(for server game) Return True if given username controls any map power.
diplomacy/server/server_game.py:294
↓ 1 callers
Method
has_token
(Server Method) Return True if this power has given token.
diplomacy/engine/power.py:393
↓ 1 callers
Method
has_user
Return True if users have given username with given password.
diplomacy/server/users.py:78
↓ 1 callers
Function
hash_password
Hash password. Accepts password longer than 72 characters. Public method. :param password: The password to hash :return: The hashed
diplomacy/utils/common.py:62
↓ 1 callers
Method
holdToString
(path)
diplomacy/web/src/gui/utils/order_building.js:92
↓ 1 callers
Function
idleAnimation
(img)
ai_animation/src/domElements/chatWindows.ts:451
↓ 1 callers
Method
ignores
Return True if given notification must be ignored. :param notification: :return: a boolean :type notification: n
diplomacy/server/notifier.py:58
↓ 1 callers
Function
initDebugProvinceHighlighting
()
ai_animation/src/debug/provinceHighlight.ts:136
↓ 1 callers
Method
initEventListeners
()
ai_animation/src/debug/debugMenu.ts:35
↓ 1 callers
Function
initEventQueueDisplayTool
(debugMenu: DebugMenu)
ai_animation/src/debug/eventQueueDisplay.ts:251
↓ 1 callers
Function
initMap
(scene)
ai_animation/src/map/create.ts:8
↓ 1 callers
Function
initNextMomentTool
(debugMenu: any)
ai_animation/src/debug/nextMoment.ts:13
↓ 1 callers
Function
initPhaseJumpTool
(debugMenu: DebugMenu)
ai_animation/src/debug/phaseJump.ts:13
↓ 1 callers
Function
initShowRandomMomentTool
(debugMenu: any)
ai_animation/src/debug/showRandomMoment.ts:16
↓ 1 callers
Function
initSpeechToggleTool
(debugMenu: DebugMenu)
ai_animation/src/debug/speechToggle.ts:13
↓ 1 callers
Method
initState
()
diplomacy/web/src/gui/forms/join_form.jsx:27
↓ 1 callers
Method
initState
()
diplomacy/web/src/gui/forms/find_form.jsx:28
↓ 1 callers
Method
initTools
()
ai_animation/src/debug/debugMenu.ts:178
↓ 1 callers
Method
initialize
Initialize the connection handler. :param server: a Server object. :type server: diplomacy.Server
diplomacy/daide/connection_handler.py:58
↓ 1 callers
Method
initialize
Initializes a game and resets home, centers and units :param game: The game to use for initialization :type game: diplomacy
diplomacy/engine/power.py:204
↓ 1 callers
Function
initializeBackgroundAudio
()
ai_animation/src/gameState.ts:89
↓ 1 callers
Function
initialize_agent_state_ext
Uses the LLM to set initial goals and relationships for the agent.
ai_diplomacy/initialization.py:21
↓ 1 callers
Function
initialize_new_game
Initializes agents for a new game (supports per-power prompt directories).
ai_diplomacy/game_logic.py:304
↓ 1 callers
Method
isCoast
()
diplomacy/web/src/gui/utils/province.js:110
↓ 1 callers
Method
isControlled
()
diplomacy/web/src/diplomacy/engine/power.js:39
↓ 1 callers
Method
isGlobal
()
diplomacy/web/src/diplomacy/engine/message.js:30
↓ 1 callers
Method
isNoCheck
()
diplomacy/web/src/diplomacy/engine/game.js:312
↓ 1 callers
Method
isWaiting
()
diplomacy/web/src/diplomacy/utils/future_event.js:42
↓ 1 callers
Function
is_ascii_token
Check if the token is an ascii token :param token: An instance of Token :return: True if `token` is an acsii token. False otherwise
diplomacy/daide/tokens.py:141
↓ 1 callers
Function
is_integer_token
Check if the token is an integer token :param token: An instance of Token :return: True if `token` is an integer token. False otherw
diplomacy/daide/tokens.py:150
↓ 1 callers
Function
is_valid_password
Check if password matches hashed. :param password: password to check. :param hashed: a password hashed with method hash_password().
diplomacy/utils/common.py:52
↓ 1 callers
Method
joinGame
(formData)
diplomacy/web/src/gui/utils/inline_game_view.jsx:34
← previous
next →
1,001–1,100 of 2,689, ranked by callers