Skip to content

Instantly share code, notes, and snippets.

@chischaschos
Last active January 19, 2023 21:19
Show Gist options
  • Save chischaschos/600745a574f1ca584ec44787f6f2d787 to your computer and use it in GitHub Desktop.
Save chischaschos/600745a574f1ca584ec44787f6f2d787 to your computer and use it in GitHub Desktop.
Writing the steps to play Bardsung from memory while learning Mermaid JS
flowchart TD
  subgraph theGame[The Game]
    openBox-->doSortingComponents
    doSortingComponents-->askFirstTime{First time playing?}
    askFirstTime -- Yes --> doFirstTimePlaying
    askFirstTime-->|No| doPrepareAdventure
  end
  
  subgraph doFirstTimePlaying [First time playing]
    direction LR
    readRulebook[Read the Rulebook, close to X pages]-->readAdventureBookSetup[Read first X pages of the Adventure Book]
    readAdventureBookSetup-->doCombatTutorial-->doExplorationTutorial
    doExplorationTutorial-->doPrepareAdventure
  end
 

  subgraph doPrepareAdventure[Prepare adventure]
    direction LR

    grabAdventure-->setupCharacters
    setupCharacters-->setupBoard
    setupBoard-->startGame
  end
  
  subgraph startGame
    shuffleMarchingOrder-->whoPlays{Who is next in the marching order?}
    whoPlays-->|enemy?| playEnemy
    whoPlays-->|character?| playCharacter
    
    playCharacter-->checkConditions
    checkConditions-->useApprentice
    useApprentice-->usePasives
    usePasives-->doTwoActions
    doTwoActions-->nextInMarchingOrder
    nextInMarchingOrder-->marchingOrderCompleted{Marching Order Completed?}
    marchingOrderCompleted -- no --> whoPlays
    marchingOrderCompleted -- yes --> checkEvents
    checkEvents --> shuffleMarchingOrder
  end
  
  subgraph playEnemy
    prepareBehaviorCard-->determineCombatantsModifiers
    determineCombatantsModifiers-->rollDefenseActionCheck[roll D20]
    applyAnyCombatantsModifiers-->compareTargetNumbers
    
  end
  
  subgraph checkEvents
    rollEventDie{Roll D6}
    rollEventDie -- 1,2 --> doEcho
    rollEventDie -- 6 --> doTerrainHazards
  end

Loading
mindmap
  root((Bardsung))
    id(1. Setup)
      1.1. Pick adventure
      1.2. Prepare adventure
      1.3. Setup Player characters
      1.4. Setup Board

    id(2. Game Flow)
      2.1. Determine the Marching order
        2.1.1. If Player character
          2.1.1.1. Play character
          2.1.1.2. Check conditions
          2.1.1.3. Use apprentice
          2.1.1.4. Use pasives
          2.1.1.5. Do two actions
          2.1.1.6. Go to next in Marching order
        2.1.2 If Enemy
          2.1.2.1. Prepare behavior card
          2.1.2.2. Determine combat modifiers
          2.1.2.3. Roll D20
          2.1.2.4. Apply combatants modifers
          2.1.2.5. Compare target numbers
      2.2. Check events
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment