# petrviitman/wildheistshowdown architecture

> Architecture diagram of the GitHub repository petrviitman/wildheistshowdown, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/petrviitman/wildheistshowdown
- Repository: https://github.com/petrviitman/wildheistshowdown

## Overview

Wild Bounty Showdown is a browser slot-game remake. The main workflow initializes the game and presentation, accepts player actions through the GUI, requests game descriptions/bonuses/spins through GameLogic, and animates results in the reels, bank scene, and win presentations. The standalone entry point supplies a local fake service; production service wiring is not shown. README capabilities include adaptive layout, quality adjustment, turbo/skip, and pseudo-3D visuals. Links reflect explicit imports or excerpts; unsampled service and GUI behavior is not inferred beyond documented capabilities.

Main entry points: [`src/presentation/Presentation.js`](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/Presentation.js) (Presentation Runtime), [`src/EntryPointStandalone.js`](https://github.com/petrviitman/wildheistshowdown/blob/master/src/EntryPointStandalone.js) (Standalone Entry), [`src/presentation/views/GUI/GUIView.js`](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/GUI/GUIView.js) (Game GUI), [`src/busynessLogic/GameLogic.js`](https://github.com/petrviitman/wildheistshowdown/blob/master/src/busynessLogic/GameLogic.js) (Game Logic)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Game Runtime"]
  node_production["Production Entry"]
  node_standalone["Standalone Entry"]
end

subgraph group_logic["Game Logic"]
  node_game["Game Logic<br/>[GameLogic.js]"]
  node_webapi["Web API<br/>[WebAPI.js]"]
  node_fakeserver["Fake Server<br/>[FakeServer.js]"]
  node_slotmachine["Slot Machine<br/>[SlotMachine.js]"]
  node_probabilities["Demo Probabilities"]
  node_response["Service Response<br/>[RESPONSE.js]"]
end

subgraph group_presentation["Presentation"]
  node_presentation["Presentation Runtime<br/>[Presentation.js]"]
  node_assets["Assets<br/>[Assets.js]"]
  node_adaptive["Adaptive Design"]
  node_timeline["Animation Timeline<br/>[Timeline.js]"]
  node_audio["Audio<br/>[Audio.js]"]
  node_primitives["Graphic Primitives"]
  node_text["Text Rendering<br/>[TextField.js]"]
end

subgraph group_scene["Game Scene"]
  node_reels["Reels and Outcomes<br/>[ReelsView.js]"]
  node_bank["Bank Scene<br/>[ForegroundView.js]"]
  node_characters["Character Rig"]
  node_splash["Win Splash Screens"]
end

subgraph group_ui["Player Interface"]
  node_gui["Game GUI<br/>[GUIView.js]"]
  node_guiart["GUI Graphics<br/>[GUIGraphics.js]"]
  node_buyfeature["Buy Feature Button"]
end

node_player(("Player"))

node_player -->|"starts game"| node_standalone
node_player -->|"starts game"| node_production
node_standalone -->|"creates"| node_game
node_standalone -->|"creates"| node_presentation
node_standalone -->|"configures"| node_webapi
node_production -->|"creates"| node_game
node_production -->|"creates"| node_presentation
node_game -.->|"requests game data"| node_webapi
node_webapi -->|"delegates to"| node_fakeserver
node_fakeserver -->|"uses"| node_slotmachine
node_fakeserver -->|"loads"| node_probabilities
node_game -->|"presents outcomes"| node_presentation
node_presentation -->|"loads assets"| node_assets
node_presentation -->|"sets adaptive layout"| node_adaptive
node_presentation -->|"initializes"| node_reels
node_presentation -.->|"initializes"| node_gui
node_presentation -.->|"presents scene"| node_bank
node_presentation -->|"presents wins"| node_splash
node_presentation -->|"loads audio"| node_audio
node_reels -->|"animates with"| node_timeline
node_gui -->|"uses graphics"| node_guiart
node_gui -.->|"includes control"| node_buyfeature
node_gui -.->|"animates with"| node_timeline
node_buyfeature -->|"animates with"| node_timeline
node_buyfeature -->|"uses color utility"| node_primitives
node_bank -->|"uses characters"| node_characters
node_splash -->|"renders text"| node_text
node_guiart -->|"renders symbol icons"| node_reels

click node_production "https://github.com/petrviitman/wildheistshowdown/blob/master/src/EntryPointProduction.js"
click node_standalone "https://github.com/petrviitman/wildheistshowdown/blob/master/src/EntryPointStandalone.js"
click node_game "https://github.com/petrviitman/wildheistshowdown/blob/master/src/busynessLogic/GameLogic.js"
click node_webapi "https://github.com/petrviitman/wildheistshowdown/blob/master/src/busynessLogic/standaloneService/WebAPI.js"
click node_fakeserver "https://github.com/petrviitman/wildheistshowdown/blob/master/src/busynessLogic/standaloneService/service/FakeServer.js"
click node_slotmachine "https://github.com/petrviitman/wildheistshowdown/blob/master/src/busynessLogic/standaloneService/service/slotMachine/SlotMachine.js"
click node_probabilities "https://github.com/petrviitman/wildheistshowdown/blob/master/src/busynessLogic/standaloneService/service/slotMachine/PROBABILITIES_DEMO.js"
click node_response "https://github.com/petrviitman/wildheistshowdown/blob/master/src/busynessLogic/standaloneService/RESPONSE.js"
click node_presentation "https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/Presentation.js"
click node_assets "https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/Assets.js"
click node_adaptive "https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/adaptiveDesign/AdaptiveContainer.js"
click node_timeline "https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/timeline/Timeline.js"
click node_audio "https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/audio/Audio.js"
click node_reels "https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/reels/ReelsView.js"
click node_bank "https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/bank/ForegroundView.js"
click node_characters "https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/bank/characters/base/BaseCharacterView.js"
click node_gui "https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/GUI/GUIView.js"
click node_guiart "https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/GUI/GUIGraphics.js"
click node_buyfeature "https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/GUI/buttons/ButtonBuyFeatureView.js"
click node_primitives "https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/GraphicalPrimitives.js"
click node_text "https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/text/TextField.js"
click node_splash "https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/splashScreens/BigWinPayoutSplashScreen.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_production,node_standalone toneBlue
class node_game,node_webapi,node_fakeserver,node_slotmachine,node_probabilities,node_response toneAmber
class node_presentation,node_assets,node_adaptive,node_timeline,node_audio,node_primitives,node_text toneMint
class node_reels,node_bank,node_characters,node_splash toneRose
class node_gui,node_guiart,node_buyfeature,node_player toneIndigo
```

## Components

### Game Runtime

- [Production Entry](https://github.com/petrviitman/wildheistshowdown/blob/master/src/EntryPointProduction.js): `src/EntryPointProduction.js`
- [Standalone Entry](https://github.com/petrviitman/wildheistshowdown/blob/master/src/EntryPointStandalone.js): `src/EntryPointStandalone.js`

### Game Logic

- [Game Logic](https://github.com/petrviitman/wildheistshowdown/blob/master/src/busynessLogic/GameLogic.js): `src/busynessLogic/GameLogic.js`
- [Web API](https://github.com/petrviitman/wildheistshowdown/blob/master/src/busynessLogic/standaloneService/WebAPI.js): `src/busynessLogic/standaloneService/WebAPI.js`
- [Fake Server](https://github.com/petrviitman/wildheistshowdown/blob/master/src/busynessLogic/standaloneService/service/FakeServer.js): `src/busynessLogic/standaloneService/service/FakeServer.js`
- [Slot Machine](https://github.com/petrviitman/wildheistshowdown/blob/master/src/busynessLogic/standaloneService/service/slotMachine/SlotMachine.js): `src/busynessLogic/standaloneService/service/slotMachine/SlotMachine.js`
- [Demo Probabilities](https://github.com/petrviitman/wildheistshowdown/blob/master/src/busynessLogic/standaloneService/service/slotMachine/PROBABILITIES_DEMO.js): `src/busynessLogic/standaloneService/service/slotMachine/PROBABILITIES_DEMO.js`
- [Service Response](https://github.com/petrviitman/wildheistshowdown/blob/master/src/busynessLogic/standaloneService/RESPONSE.js): `src/busynessLogic/standaloneService/RESPONSE.js`

### Presentation

- [Presentation Runtime](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/Presentation.js): `src/presentation/Presentation.js`
- [Assets](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/Assets.js): `src/presentation/Assets.js`
- [Adaptive Design](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/adaptiveDesign/AdaptiveContainer.js): `src/presentation/views/adaptiveDesign/AdaptiveContainer.js`
- [Animation Timeline](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/timeline/Timeline.js): `src/presentation/timeline/Timeline.js`
- [Audio](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/audio/Audio.js): `src/presentation/audio/Audio.js`
- [Graphic Primitives](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/GraphicalPrimitives.js): `src/presentation/views/GraphicalPrimitives.js`
- [Text Rendering](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/text/TextField.js): `src/presentation/views/text/TextField.js`

### Game Scene

- [Reels and Outcomes](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/reels/ReelsView.js): `src/presentation/views/reels/ReelsView.js`
- [Bank Scene](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/bank/ForegroundView.js): `src/presentation/views/bank/ForegroundView.js`
- [Character Rig](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/bank/characters/base/BaseCharacterView.js): `src/presentation/views/bank/characters/base/BaseCharacterView.js`
- [Win Splash Screens](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/splashScreens/BigWinPayoutSplashScreen.js): `src/presentation/views/splashScreens/BigWinPayoutSplashScreen.js`

### Player Interface

- [Game GUI](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/GUI/GUIView.js): `src/presentation/views/GUI/GUIView.js`
- [GUI Graphics](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/GUI/GUIGraphics.js): `src/presentation/views/GUI/GUIGraphics.js`
- [Buy Feature Button](https://github.com/petrviitman/wildheistshowdown/blob/master/src/presentation/views/GUI/buttons/ButtonBuyFeatureView.js): `src/presentation/views/GUI/buttons/ButtonBuyFeatureView.js`

### Other components

- **Player**

## Connections

- Player → Standalone Entry: starts game
- Player → Production Entry: starts game
- Standalone Entry → Game Logic: creates (evidence: `src/EntryPointStandalone.js`)
- Standalone Entry → Presentation Runtime: creates (evidence: `src/EntryPointStandalone.js`)
- Standalone Entry → Web API: configures (evidence: `src/EntryPointStandalone.js`)
- Production Entry → Game Logic: creates (evidence: `src/EntryPointProduction.js`)
- Production Entry → Presentation Runtime: creates (evidence: `src/EntryPointProduction.js`)
- Game Logic → Web API: requests game data
- Web API → Fake Server: delegates to (evidence: `src/busynessLogic/standaloneService/WebAPI.js`)
- Fake Server → Slot Machine: uses (evidence: `src/busynessLogic/standaloneService/service/FakeServer.js`)
- Fake Server → Demo Probabilities: loads (evidence: `src/busynessLogic/standaloneService/service/FakeServer.js`)
- Game Logic → Presentation Runtime: presents outcomes (evidence: `src/busynessLogic/GameLogic.js`)
- Presentation Runtime → Assets: loads assets (evidence: `src/presentation/Presentation.js`)
- Presentation Runtime → Adaptive Design: sets adaptive layout (evidence: `src/presentation/Presentation.js`)
- Presentation Runtime → Reels and Outcomes: initializes (evidence: `src/presentation/Presentation.js`)
- Presentation Runtime → Game GUI: initializes (evidence: `src/presentation/Presentation.js`)
- Presentation Runtime → Bank Scene: presents scene
- Presentation Runtime → Win Splash Screens: presents wins (evidence: `src/presentation/Presentation.js`)
- Presentation Runtime → Audio: loads audio (evidence: `src/presentation/Presentation.js`)
- Reels and Outcomes → Animation Timeline: animates with (evidence: `src/presentation/views/reels/ReelsView.js`)
- Game GUI → GUI Graphics: uses graphics (evidence: `src/presentation/views/GUI/GUIView.js`)
- Game GUI → Buy Feature Button: includes control (evidence: `src/presentation/views/GUI/GUIView.js`)
- Game GUI → Animation Timeline: animates with (evidence: `src/presentation/views/GUI/GUIView.js`)
- Buy Feature Button → Animation Timeline: animates with (evidence: `src/presentation/views/GUI/buttons/ButtonBuyFeatureView.js`)
- Buy Feature Button → Graphic Primitives: uses color utility (evidence: `src/presentation/views/GUI/buttons/ButtonBuyFeatureView.js`)
- Bank Scene → Character Rig: uses characters (evidence: `src/presentation/views/bank/ForegroundView.js`)
- Win Splash Screens → Text Rendering: renders text (evidence: `src/presentation/views/splashScreens/BigWinPayoutSplashScreen.js`)
- GUI Graphics → Reels and Outcomes: renders symbol icons (evidence: `src/presentation/views/GUI/GUIGraphics.js`)
