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

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

Toasted on a grid iron

Post by richmond62 » Fri Jul 12, 2019 8:28 pm

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.
-
RobotTest1.png
Attachments
Robot Test1.livecode.zip
Here's the stack.
(3.87 KiB) Downloaded 2 times

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

Re: Toasted on a grid iron

Post by dunbarx » Fri Jul 12, 2019 9:01 pm

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
Livecode Opensource Backer
Posts: 3340
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Toasted on a grid iron

Post by richmond62 » Fri Jul 12, 2019 9:13 pm

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. 8)

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

Re: Toasted on a grid iron

Post by dunbarx » Fri Jul 12, 2019 11:14 pm

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”