Getting ready for exams.

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

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Getting ready for exams.

Postby richmond62 » Thu Mar 23, 2017 7:24 pm

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

Re: Getting ready for exams.

Postby 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
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 5256
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles

Re: Getting ready for exams.

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

Re: Getting ready for exams.

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


Return to Teaching with LiveCode

Who is online

Users browsing this forum: No registered users and 1 guest