## Toasted on a grid iron

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

richmond62
Livecode Opensource Backer
Posts: 3340
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

### Toasted on a grid iron

I was fairly cheesed-off today when someone suggested that to generate a square, random map
would be long and difficult, if not impossible in LiveCode.
-
Attachments
Robot Test1.livecode.zip
Here's the stack.

dunbarx
VIP Livecode Opensource Backer
Posts: 6026
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

### Re: Toasted on a grid iron

Richmond.

I agree, LC eats this for lunch.

But for dinner, you need to make the finished product symmetrical about the diagonals, or you do not get a crossword blank slate.

Craig

richmond62
Livecode Opensource Backer
Posts: 3340
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

### Re: Toasted on a grid iron

Why does a crossword blank have to be symmetrical about a diagonal?

The story behind this stack is that, today, as I was leaving my school, having taught 2 classes about LiveCode my intern, who is halfway through her bachelor's degree at Plovdiv University in Computer Programming started making objections when I suggested one of the best ways to get to grips with LiveCode was to duplicate projects given to her by her lecturers at the Uni' for C++, C#, Java and so on in LiveCode.

She then told me about a machine-learning 'thing' where a "robot" has to traverse a square grid where 25% of the squares are 'traps', and the robot should 'learn' by its mistakes . . . and said she didn't think that was possible in LiveCode.

So this grid generator is the start of my attempt to go "nyah, nyah, nyah" to her.

dunbarx
VIP Livecode Opensource Backer
Posts: 6026
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

### Re: Toasted on a grid iron

Richmond.

Go get 'em.

It is not a law, but at least here crosswords are always so constructed. That is not to say that intentional oddities do not exist.

For your purposes, it is not pertinent.

Craig