miron / NeonCore

Terminal based Cyberpunk Tabletop RPG with Nostr as database and openAI API compatible commands
3 stars 1 forks source link

consider dataclass for LifePath/Character #61

Open miron opened 1 year ago

miron commented 1 year ago

Given the heterogenous data, a dataclass could make it easier Another possibility is to put Lifepath into json file and put random logic into Character class Decision Flowchart:

                   ___ Homogenous ___ Homogenous or Heterogenous? ___ Heterogenous ___
                  |                                                                   |
      ___ Scalar or Collection? ___                                    ___ Do you have Invariants? ___
     |                             |                                  |                               |
     | Scalar                      | Collection                       | No                            | Yes
     |                             |                                  |                               |
Enumeration                    Dictionary                         Data class                        Class