Swift Playgrounds GridWorld

Hello,

I would like to modify an existing exercise to understand how to create a new world and I can't find where are located (folder or code) the grid world's templates, as found as in file contents/modules/"name of module"/Sources/setup.swift for the code line: let world: GridWorld = loadGridWorld(named: "1.4")

(the name being the grid template of the world created). Where are located those templates 1.4, 1.5, 1.6,x.y etc... ?

Thank you very much

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)

Swift Playgrounds GridWorld
 
 
Q