Getting ready for exams.

Teaching software development? Using LiveCode to build your curriculum? This is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

Getting ready for exams.

Post by richmond62 » Thu Mar 23, 2017 7:24 pm


FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Getting ready for exams.

Post by FourthWorld » Thu Mar 23, 2017 9:23 pm

Code: Select all

Put random(6)+random(6) into tNumSteps
put the CurrentPosition of button "Player1" into tPos
add tNumSteps to tPos
set the loc of btn "Player1" to the loc of grc tPos of group "grid"
set the CurrentPosition of btn "Player1" to tPos
I'll be Dick Kreisel could reduce that to a one-line using arrays. :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

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

Re: Getting ready for exams.

Post by richmond62 » Fri Mar 24, 2017 12:40 pm

I did it in a far cruder way . . .
Clark.png
Clark.livecode.zip
Here's the stack.
(31.56 KiB) Downloaded 331 times

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

Re: Getting ready for exams.

Post by richmond62 » Fri Mar 24, 2017 12:44 pm

Screen Shot 2017-03-24 at 1.41.55 pm.png
I have NOT implemented anything below the RED line.

Post Reply

Return to “Teaching with LiveCode”