Code: Select all
on movePone
put (numdice1+sdice) into sdice
put setofLocations(sdice) into pMoveOneLoc
getTheLocation "plyrOne"
if sdice > 36 then
put (sdice-36) into sdice
put (36-sdice) into sdice
--put (sdice-numdice1) into sdice
put setofLocations(sdice) into pMoveOneLoc
move btn "plyrOne" from theCurrentLocation to pMoveOneLoc in 100 ticks
--answer "ksjdlkf"
else
move btn "plyrOne" from theCurrentLocation to pMoveOneLoc in 100 ticks
end if
put sdice into numdice1
pOneTrap
winnerPlayer
end movePone