To use the editor follow these steps:
Open the Marlowe Playground.
You will see a window like this:
Contract: below we define the top-level constant
contractto be of that type.
Then click Send to Simulator in the top right-hand corner.
You can also find more details about simulation in the Marlowe tutorial.