Start with green flag, then move around using the cursor keys. Feel free to incorporate the algorithm into your games or to remix with different graphical styles. The maps don't need to have roads, they just need to be able to abut to tiles that have edges which fall into one of two classes. Here the classes are road/no road, but they could as easily be land/water or hill/grass... See https://scratch.mit.edu/projects/102170546/ for a version that limits the size of the map to a maximum number of non-empty tiles.