Cartridges are nothing more than python files using the [finite-state-machine](https://github.com/alysivji/finite-state-machine#installation) library with the following stipulations:
- Have a `Cartridge` class.
- `Cartridge` has a `start` method defining the first prompt your cartridge will use.
- Each state method contains a return string with the prompt to be used at entry to that state.
So a good shell to start with is:
```python
from finite_state_machine import StateMachine, transition
class Cartridge(StateMachine):
def __init__(self):
self.state = "beginning"
super().__init__()
@transition(source=["beginning"], target="beginning")
def start(self):
return "Prompt: [Prompt for this state goes here]"
pass
```
For further information on how to create these files, you can refer to the [official documentation](https://github.com/alysivji/finite-state-machine#installation) for the library. Otherwise, all that is needed beyond this is to upload the file into [Flux Player](https://chat.openai.com/g/g-Mh8vbN6JM-flux-player).