MCPcopy Create free account

hub / github.com/GoodStartLabs/AI_Diplomacy / functions

Functions2,689 in github.com/GoodStartLabs/AI_Diplomacy

↓ 1 callersMethodgetConnectionForm
()
diplomacy/web/src/gui/utils/dipStorage.jsx:60
↓ 1 callersMethodgetDefaultPowerName
()
diplomacy/web/src/gui/forms/join_form.jsx:42
↓ 1 callersMethodgetGamesFound
()
diplomacy/web/src/gui/pages/page.jsx:224
↓ 1 callersMethodgetHeader
(columns)
diplomacy/web/src/gui/components/table.jsx:53
↓ 1 callersMethodgetHeaderLine
(header)
diplomacy/web/src/gui/components/table.jsx:72
↓ 1 callersMethodgetJoinUI
()
diplomacy/web/src/gui/utils/inline_game_view.jsx:67
↓ 1 callersMethodgetLatestTimestamp
()
diplomacy/web/src/diplomacy/engine/game.js:276
↓ 1 callersMethodgetLocationNames
()
diplomacy/web/src/gui/utils/province.js:82
↓ 1 callersMethodgetMyGames
()
diplomacy/web/src/gui/pages/page.jsx:220
↓ 1 callersMethodgetName
()
diplomacy/web/src/gui/pages/page.jsx:134
↓ 1 callersMethodgetNeighbors
(extraLocation)
diplomacy/web/src/gui/maps/standard/SvgStandard.js:20
↓ 1 callersMethodgetNeighbors
(extraLocation)
diplomacy/web/src/gui/maps/pure/SvgPure.js:20
↓ 1 callersMethodgetNeighbors
(extraLocation)
diplomacy/web/src/gui/maps/ancmed/SvgAncMed.js:20
↓ 1 callersMethodgetNeighbors
(extraLocation)
diplomacy/web/src/gui/maps/modern/SvgModern.js:20
↓ 1 callersFunctiongetNextPhaseName
(currentPhaseName: string)
ai_animation/src/types/moments.ts:175
↓ 1 callersMethodgetOrderBuilding
(powerName, orderType, orderPath)
diplomacy/web/src/gui/pages/content_game.jsx:217
↓ 1 callersMethodgetOrderTypeToLocs
(powerName)
diplomacy/web/src/diplomacy/engine/game.js:494
↓ 1 callersFunctiongetRandomPower
* 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 callersMethodgetRelatedOrders
(name)
diplomacy/web/src/gui/maps/standard/SvgStandard.js:20
↓ 1 callersMethodgetRelatedOrders
(name)
diplomacy/web/src/gui/maps/pure/SvgPure.js:20
↓ 1 callersMethodgetRelatedOrders
(name)
diplomacy/web/src/gui/maps/ancmed/SvgAncMed.js:20
↓ 1 callersMethodgetRelatedOrders
(name)
diplomacy/web/src/gui/maps/modern/SvgModern.js:20
↓ 1 callersMethodgetServerWaitFlags
(engine)
diplomacy/web/src/gui/pages/content_game.jsx:208
↓ 1 callersMethodgetSpecial
()
diplomacy/web/src/diplomacy/client/game_instance_set.js:38
↓ 1 callersFunctiongetSupplyCenterCounts
()
ai_animation/src/components/leaderboard.ts:45
↓ 1 callersFunctiongetUnit
(unitOrder: UnitOrder, power: string)
ai_animation/src/units/animate.ts:75
↓ 1 callersMethodgetUrl
()
diplomacy/web/src/diplomacy/client/connection.js:232
↓ 1 callersMethodgetUserGameOrders
(username, gameID, gamePhase)
diplomacy/web/src/gui/utils/dipStorage.jsx:72
↓ 1 callersMethodgetUserGames
(username)
diplomacy/web/src/gui/utils/dipStorage.jsx:65
↓ 1 callersFunctionget_adjacent_territory_details
Generates a string describing adjacent territories and units that can interact with them.
ai_diplomacy/possible_order_context.py:274
↓ 1 callersMethodget_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 callersMethodget_controller_timestamp
(Network Method) Return timestamp when current controller took control of this power.
diplomacy/engine/power.py:380
↓ 1 callersMethodget_conversation_reply
Generates a negotiation message, considering agent state.
ai_diplomacy/clients.py:537
↓ 1 callersFunctionget_convoy_paths_cache
Returns the current cache from disk
diplomacy/utils/convoy_paths.py:240
↓ 1 callersMethodget_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 callersFunctionget_decade_bin
Get decade bin for a year (e.g., 1903 -> '1900-1910')
diplomacy_unified_analysis_final.py:69
↓ 1 callersMethodget_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 callersMethodget_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 callersFunctionget_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 callersMethodget_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 callersMethodget_global_messages
(self)
ai_diplomacy/game_history.py:47
↓ 1 callersMethodget_info
Return info about scheduling for given data, or None if data is not found.
diplomacy/server/scheduler.py:165
↓ 1 callersMethodget_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 callersMethodget_name_variant
Return the address of the remote endpoint
diplomacy/daide/connection_handler.py:82
↓ 1 callersMethodget_orders_history_for_phase
Return the orders for `phase_name` as: { "<POWER>": { "<order_type>": [
ai_diplomacy/game_history.py:256
↓ 1 callersMethodget_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 callersMethodget_power_orders
Return expected orders for given power name.
diplomacy/tests/network/test_real_game.py:59
↓ 1 callersMethodget_private_messages
(self, power: str)
ai_diplomacy/game_history.py:54
↓ 1 callersMethodget_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 callersMethodget_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 callersMethodget_reception_addresses
Generate addresses (couple [power name, token]) of all users implied in this game.
diplomacy/server/server_game.py:249
↓ 1 callersMethodget_special
Return stored special game, or None if no special game found.
diplomacy/client/game_instances_set.py:51
↓ 1 callersMethodget_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 callersFunctionget_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 callersFunctionget_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 callersFunctionget_year_from_phase_name
Extract year from phase name (e.g., 'S1901M' -> 1901)
diplomacy_unified_analysis_final.py:59
↓ 1 callersMethodhandleClickedID
(id)
diplomacy/web/src/gui/maps/standard/SvgStandard.js:20
↓ 1 callersMethodhandleClickedID
(id)
diplomacy/web/src/gui/maps/pure/SvgPure.js:20
↓ 1 callersMethodhandleClickedID
(id)
diplomacy/web/src/gui/maps/ancmed/SvgAncMed.js:20
↓ 1 callersMethodhandleClickedID
(id)
diplomacy/web/src/gui/maps/modern/SvgModern.js:20
↓ 1 callersMethodhandleHoverID
(id)
diplomacy/web/src/gui/maps/standard/SvgStandard.js:20
↓ 1 callersMethodhandleHoverID
(id)
diplomacy/web/src/gui/maps/pure/SvgPure.js:20
↓ 1 callersMethodhandleHoverID
(id)
diplomacy/web/src/gui/maps/ancmed/SvgAncMed.js:20
↓ 1 callersMethodhandleHoverID
(id)
diplomacy/web/src/gui/maps/modern/SvgModern.js:20
↓ 1 callersFunctionhandle_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 callersMethodhasMyGame
(gameID)
diplomacy/web/src/gui/pages/page.jsx:337
↓ 1 callersMethodhasPower
(powerName)
diplomacy/web/src/diplomacy/engine/game.js:292
↓ 1 callersMethodhas_messages_to_send
Return True if messages list still contains messages to send.
diplomacy/tests/network/test_real_game.py:86
↓ 1 callersMethodhas_player
(for server game) Return True if given username controls any map power.
diplomacy/server/server_game.py:294
↓ 1 callersMethodhas_token
(Server Method) Return True if this power has given token.
diplomacy/engine/power.py:393
↓ 1 callersMethodhas_user
Return True if users have given username with given password.
diplomacy/server/users.py:78
↓ 1 callersFunctionhash_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 callersMethodholdToString
(path)
diplomacy/web/src/gui/utils/order_building.js:92
↓ 1 callersFunctionidleAnimation
(img)
ai_animation/src/domElements/chatWindows.ts:451
↓ 1 callersMethodignores
Return True if given notification must be ignored. :param notification: :return: a boolean :type notification: n
diplomacy/server/notifier.py:58
↓ 1 callersFunctioninitDebugProvinceHighlighting
()
ai_animation/src/debug/provinceHighlight.ts:136
↓ 1 callersMethodinitEventListeners
()
ai_animation/src/debug/debugMenu.ts:35
↓ 1 callersFunctioninitEventQueueDisplayTool
(debugMenu: DebugMenu)
ai_animation/src/debug/eventQueueDisplay.ts:251
↓ 1 callersFunctioninitMap
(scene)
ai_animation/src/map/create.ts:8
↓ 1 callersFunctioninitNextMomentTool
(debugMenu: any)
ai_animation/src/debug/nextMoment.ts:13
↓ 1 callersFunctioninitPhaseJumpTool
(debugMenu: DebugMenu)
ai_animation/src/debug/phaseJump.ts:13
↓ 1 callersFunctioninitShowRandomMomentTool
(debugMenu: any)
ai_animation/src/debug/showRandomMoment.ts:16
↓ 1 callersFunctioninitSpeechToggleTool
(debugMenu: DebugMenu)
ai_animation/src/debug/speechToggle.ts:13
↓ 1 callersMethodinitState
()
diplomacy/web/src/gui/forms/join_form.jsx:27
↓ 1 callersMethodinitState
()
diplomacy/web/src/gui/forms/find_form.jsx:28
↓ 1 callersMethodinitTools
()
ai_animation/src/debug/debugMenu.ts:178
↓ 1 callersMethodinitialize
Initialize the connection handler. :param server: a Server object. :type server: diplomacy.Server
diplomacy/daide/connection_handler.py:58
↓ 1 callersMethodinitialize
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 callersFunctioninitializeBackgroundAudio
()
ai_animation/src/gameState.ts:89
↓ 1 callersFunctioninitialize_agent_state_ext
Uses the LLM to set initial goals and relationships for the agent.
ai_diplomacy/initialization.py:21
↓ 1 callersFunctioninitialize_new_game
Initializes agents for a new game (supports per-power prompt directories).
ai_diplomacy/game_logic.py:304
↓ 1 callersMethodisCoast
()
diplomacy/web/src/gui/utils/province.js:110
↓ 1 callersMethodisControlled
()
diplomacy/web/src/diplomacy/engine/power.js:39
↓ 1 callersMethodisGlobal
()
diplomacy/web/src/diplomacy/engine/message.js:30
↓ 1 callersMethodisNoCheck
()
diplomacy/web/src/diplomacy/engine/game.js:312
↓ 1 callersMethodisWaiting
()
diplomacy/web/src/diplomacy/utils/future_event.js:42
↓ 1 callersFunctionis_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 callersFunctionis_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 callersFunctionis_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 callersMethodjoinGame
(formData)
diplomacy/web/src/gui/utils/inline_game_view.jsx:34
← previousnext →1,001–1,100 of 2,689, ranked by callers