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
countries_aside_from
(a_country : str)
analysis/p1_make_longform_orders_data.py:332
↓ 1 callers
Function
createAnimateUnitsEvent
(phase: GamePhase, phaseIdx: number)
ai_animation/src/units/animate.ts:267
↓ 1 callers
Function
createArmy
(color: string)
ai_animation/src/units/create.ts:24
↓ 1 callers
Function
createBounceAnimation
(unitMesh: THREE.Group, attemptedDestination: ProvinceENUM)
ai_animation/src/units/animate.ts:182
↓ 1 callers
Function
createCameraPan
()
ai_animation/src/main.ts:71
↓ 1 callers
Function
createChatBubble
(message: MessageSchemaType)
ai_animation/src/components/chatBubble.ts:5
↓ 1 callers
Function
createChatWindows
()
ai_animation/src/domElements/chatWindows.ts:26
↓ 1 callers
Function
createCloseButton
* Creates a close button
ai_animation/src/components/momentModal.ts:412
↓ 1 callers
Function
createCloseButton
* Creates a close button
ai_animation/src/components/victoryModal.ts:270
↓ 1 callers
Method
createContainer
()
ai_animation/src/debug/eventQueueDisplay.ts:17
↓ 1 callers
Function
createConversationArea
* Creates the conversation display area
ai_animation/src/components/momentModal.ts:387
↓ 1 callers
Function
createDialogueContainer
* Creates the main dialogue container
ai_animation/src/components/momentModal.ts:213
↓ 1 callers
Function
createDialogueOverlay
* Creates the main overlay element
ai_animation/src/components/momentModal.ts:204
↓ 1 callers
Function
createFleet
(color: string)
ai_animation/src/units/create.ts:44
↓ 1 callers
Method
createGame
(parameters)
diplomacy/web/src/diplomacy/client/channel.js:83
↓ 1 callers
Function
createHoldAnimation
(unitMesh: THREE.Group)
ai_animation/src/units/animate.ts:238
↓ 1 callers
Function
createLabel
(font, provName: String, provinceData: Province)
ai_animation/src/map/labels.ts:4
↓ 1 callers
Function
createMessageEvents
(phase: GamePhase)
ai_animation/src/domElements/chatWindows.ts:160
↓ 1 callers
Function
createMomentEvent
(moment: Moment)
ai_animation/src/components/momentModal.ts:48
↓ 1 callers
Function
createNarratorAudioEvent
(phase: GamePhase)
ai_animation/src/speech.ts:65
↓ 1 callers
Method
createOnResetCallback
(component, onChangeCallback, resetState)
diplomacy/web/src/gui/components/forms.jsx:44
↓ 1 callers
Method
createOrdersTree
(possibleOrders, tree, locToTypes)
diplomacy/web/src/diplomacy/engine/game.js:148
↓ 1 callers
Method
createRadio
(name, value, title, currentValue, onChange)
diplomacy/web/src/gui/components/forms.jsx:81
↓ 1 callers
Method
createReset
(title, large, onReset)
diplomacy/web/src/gui/components/forms.jsx:58
↓ 1 callers
Function
createShield
()
ai_animation/src/units/animate.ts:47
↓ 1 callers
Function
createSpawnAnimation
(newUnitMesh: THREE.Group)
ai_animation/src/units/animate.ts:97
↓ 1 callers
Function
createStandingsBoardElements
* Create all DOM elements needed for the standings board
ai_animation/src/domElements/standingsBoard.ts:51
↓ 1 callers
Function
createStandingsElement
* Creates the final standings display
ai_animation/src/components/victoryModal.ts:212
↓ 1 callers
Function
createSupplyCenters
()
ai_animation/src/units/create.ts:74
↓ 1 callers
Function
createUpdateNewsBannerEvent
(phase: GamePhase)
ai_animation/src/components/newsBanner.ts:10
↓ 1 callers
Function
createUpdateUIEvent
(phase: GamePhase)
ai_animation/src/domElements.ts:34
↓ 1 callers
Function
createVictoryContainer
* Creates the main victory container
ai_animation/src/components/victoryModal.ts:98
↓ 1 callers
Function
createVictoryOverlay
* Creates the main overlay element
ai_animation/src/components/victoryModal.ts:61
↓ 1 callers
Function
create_active_order_percentage_charts
Create active order percentage chart (sorted by activity level)
diplomacy_unified_analysis_final.py:570
↓ 1 callers
Method
create_analysis_prompt
Create the analysis prompt for a single turn
analyze_game_moments.py:258
↓ 1 callers
Function
create_comparison_heatmap
Create comparison heatmap for top models
diplomacy_unified_analysis_final.py:946
↓ 1 callers
Function
create_comprehensive_charts
Create all visualization charts
diplomacy_unified_analysis_final.py:261
↓ 1 callers
Method
create_game_id
Create and return a game ID not already used by a game in server database.
diplomacy/server/server.py:827
↓ 1 callers
Function
create_high_quality_models_chart
Create focused visualization for models with substantial gameplay data
diplomacy_unified_analysis_final.py:397
↓ 1 callers
Function
create_model_evolution_chart
Create model evolution chart showing version improvements
diplomacy_unified_analysis_final.py:1202
↓ 1 callers
Function
create_order_distribution_charts
Create order distribution heatmap
diplomacy_unified_analysis_final.py:628
↓ 1 callers
Function
create_phase_game_counts
Create phase and game count comparison
diplomacy_unified_analysis_final.py:889
↓ 1 callers
Function
create_physical_dates_timeline
Create timeline showing model activity over actual dates
diplomacy_unified_analysis_final.py:817
↓ 1 callers
Function
create_power_distribution_analysis
Create power distribution analysis
diplomacy_unified_analysis_final.py:757
↓ 1 callers
Function
create_success_over_physical_time
Create success rate evolution over physical dates
diplomacy_unified_analysis_final.py:1116
↓ 1 callers
Function
create_success_rates_charts
Create success rate charts for all models
diplomacy_unified_analysis_final.py:492
↓ 1 callers
Function
create_summary_report
Create a comprehensive summary report
diplomacy_unified_analysis_final.py:1287
↓ 1 callers
Function
create_temporal_analysis
Create temporal analysis by decade
diplomacy_unified_analysis_final.py:680
↓ 1 callers
Method
create_token
Return a new token guaranteed to not exist in this Users object.
diplomacy/server/users.py:140
↓ 1 callers
Function
create_unit_control_analysis
Create unit control analysis showing performance vs unit count
diplomacy_unified_analysis_final.py:1001
↓ 1 callers
Method
defaultPage
()
diplomacy/web/src/gui/pages/page.jsx:72
↓ 1 callers
Method
demote_moderator
Remove given username from allowed moderators.
diplomacy/server/server_game.py:411
↓ 1 callers
Method
demote_omniscient
Remove given username from allowed omniscient observers.
diplomacy/server/server_game.py:416
↓ 1 callers
Function
deserialize_agent
Recreates an agent object from a dictionary. If *override_model_id* is provided (e.g. because the CLI argument ``--models`` was used whe
ai_diplomacy/game_logic.py:38
↓ 1 callers
Method
detect_lies_in_phase
Detect lies by comparing messages, diary entries, and actual orders
analyze_game_moments.py:403
↓ 1 callers
Method
disbandToString
(path)
diplomacy/web/src/gui/utils/order_building.js:124
↓ 1 callers
Method
disconnect_token
Remove given token.
diplomacy/server/users.py:238
↓ 1 callers
Method
displayFirstPastPhase
()
diplomacy/web/src/gui/pages/content_game.jsx:834
↓ 1 callers
Function
displayInitialPhase
()
ai_animation/src/phase.ts:234
↓ 1 callers
Method
displayLastPastPhase
()
diplomacy/web/src/gui/pages/content_game.jsx:838
↓ 1 callers
Method
element_type
Get values type.
diplomacy/utils/sorted_set.py:57
↓ 1 callers
Method
execute
Executes the communications between clients
diplomacy/daide/tests/test_daide_game.py:313
↓ 1 callers
Method
expand
* Expands the debug panel
ai_animation/src/debug/debugMenu.ts:91
↓ 1 callers
Function
extract_dom
Parse given node. :param node: (input) node to parse :param nb_indentation: (input) number of indentation to use for current node co
diplomacy/web/svg_to_react.py:270
↓ 1 callers
Function
extract_extra
Collect extra information from given node into output extra. :type extra: dict
diplomacy/web/svg_to_react.py:228
↓ 1 callers
Function
extract_models_from_csv
Extract ALL models from CSV file ONLY - this is the source of truth
diplomacy_unified_analysis_final.py:77
↓ 1 callers
Method
extract_promises_from_message
Extract specific promises from a message
analyze_game_moments.py:443
↓ 1 callers
Method
extract_relevant_diary_excerpt
Extract the most relevant part of diary related to the promise
analyze_game_moments.py:715
↓ 1 callers
Method
extract_turn_data
Extract relevant data from a single turn/phase
analyze_game_moments.py:242
↓ 1 callers
Function
findBestPowerPairForMoment
* Finds the best power pair for a given moment based on message count * @param moment - The moment to analyze * @returns Object with power1, power2,
ai_animation/src/debug/showRandomMoment.ts:116
↓ 1 callers
Function
findNextMoment
* Finds the next moment chronologically after the current phase * @param currentPhaseName - Current phase name * @returns Next moment or null if non
ai_animation/src/debug/nextMoment.ts:85
↓ 1 callers
Function
find_destination_info
Helper - finds information about the destination of a unit at a given phase. Operating on the `all_orders_ever` dataframe from overa
analysis/p1_make_longform_orders_data.py:231
↓ 1 callers
Function
find_support_recipient_info
Helper - finds information about the recipient of a support action at a given phase. Operating on the `all_orders_ever` dataframe fr
analysis/p1_make_longform_orders_data.py:262
↓ 1 callers
Function
find_supporting_country
Helper - finds which orders support a given unit and records the supporting powers. Operating on the `all_orders_ever` dataframe.
analysis/p1_make_longform_orders_data.py:184
↓ 1 callers
Function
fiterAndSortChatMessagesForPhase
(phase: GamePhase)
ai_animation/src/domElements/chatWindows.ts:147
↓ 1 callers
Method
flatten
Flattens a sublist
diplomacy/engine/game.py:3991
↓ 1 callers
Function
flipImageDataVertically
(imageData, width, height)
ai_animation/src/domElements/chatWindows.ts:471
↓ 1 callers
Method
for_observer
Return True if this message is sent to observers.
diplomacy/engine/message.py:119
↓ 1 callers
Method
from_bytes
Builds a request from DAIDE bytes :param daide_bytes: The bytes representation of a request :return: The DaideRequest built
diplomacy/daide/requests.py:28
↓ 1 callers
Method
from_string
Converts a string representation `str_repr` of MyStringable to an instance of MyStringable.
diplomacy/utils/tests/test_parsing.py:45
↓ 1 callers
Method
gameCreationButton
()
diplomacy/web/src/gui/pages/content_games.jsx:101
↓ 1 callers
Method
gameTitle
(game)
diplomacy/web/src/gui/pages/content_game.jsx:196
↓ 1 callers
Method
genSyncCallback
(game)
diplomacy/web/src/diplomacy/client/connection.js:38
↓ 1 callers
Function
generateFaceIcon
(power)
ai_animation/src/domElements/chatWindows.ts:340
↓ 1 callers
Method
generateTabAction
PROPERTIES * active: index of active menu (must be > menu.length). * highlights: dictionary mapping a menu indice to a highlight message
diplomacy/web/src/gui/components/tabs.jsx:28
↓ 1 callers
Function
generate_analysis_reports
(json_directory)
experiments/analyze_rl_json.py:406
↓ 1 callers
Method
generate_narrative
Generate a narrative story of the game using phase summaries and top moments
analyze_game_moments.py:831
↓ 1 callers
Method
generate_negotiation_diary_entry
Generates a diary entry summarizing negotiations and updates relationships. This method now includes comprehensive LLM interaction lo
ai_diplomacy/agent.py:466
↓ 1 callers
Method
generate_order_diary_entry
Generates a diary entry reflecting on the decided orders.
ai_diplomacy/agent.py:696
↓ 1 callers
Method
generate_phase_result_diary_entry
( self, game: "Game", game_history: "GameHistory", phase_summary: str, all_orders: Dict[str, List[str]
ai_diplomacy/agent.py:840
↓ 1 callers
Function
generate_rich_order_context
Dispatch to phase-specific builders and (optionally) append the condensed move summary. Args: include_full – emit the full ri
ai_diplomacy/possible_order_context.py:924
↓ 1 callers
Method
generate_sync_callback
Generate callback to call when response to sync request is received for given game. :param game: game :return: a callback. :
diplomacy/client/connection.py:452
↓ 1 callers
Method
get
(fieldName)
diplomacy/web/src/gui/components/table.jsx:28
↓ 1 callers
Method
getActionButtons
()
diplomacy/web/src/gui/utils/inline_game_view.jsx:88
↓ 1 callers
Method
getAvailableMaps
(parameters)
diplomacy/web/src/diplomacy/client/channel.js:87
↓ 1 callers
Function
getAvailableProvinces
()
ai_animation/src/debug/provinceHighlight.ts:130
↓ 1 callers
Method
getBodyLines
(header, data, wrapper)
diplomacy/web/src/gui/components/table.jsx:88
↓ 1 callers
Method
getBodyRow
(header, row, rowIndex, wrapper)
diplomacy/web/src/gui/components/table.jsx:80
↓ 1 callers
Method
getBuildsCount
(powerName)
diplomacy/web/src/diplomacy/engine/game.js:533
↓ 1 callers
Method
getClassName
()
diplomacy/web/src/gui/components/layouts.jsx:21
← previous
next →
901–1,000 of 2,689, ranked by callers