I found another way to do what I wanted. I just replaced let world: GridWorld = loadGridWorld(named: z) by: let world = GridWorld(columns: x, rows: y)
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags: