Skip to content

Instantly share code, notes, and snippets.

@andysolomon
Created January 25, 2023 01:36
Show Gist options
  • Select an option

  • Save andysolomon/3e0c3636da23e18986721e67c91d2fd4 to your computer and use it in GitHub Desktop.

Select an option

Save andysolomon/3e0c3636da23e18986721e67c91d2fd4 to your computer and use it in GitHub Desktop.
DraftMachine
classDiagram
    DraftApp <|-- User
    DraftApp <|-- Team
    DraftApp <|-- Prospect
    Team <-- Prospect

    DraftApp *--> TeamPick

    class TeamPick {
        -team: Team
        -propspect: Prospect
    }

    class DraftAppState{
        -[] teams
        -[] propspects
        -int currentRound
        -int currentPick
        -selections: TeamPick[]
    }

    class DraftApp {
        -appState: DraftAppState
        +setAppState(S~DraftAppState~)
    }

    class Team{
        -prospects: Prospect[]
    }
    class Prospect{
        -team: Team
    }
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment