Hi Kerry,

How about this

on test
  plist1 = [1,3,5,7,9]
  plist2 = [2,4,6,8,10]
  pBoard = [1,2,7,8,3,5,10,9,4,6]

  pCard1 = 1  -- This is a position reference into pBoard, NOT A CARD
NUMBER
  pCard2 = 2

  -- NEW CODE
  pBoard1 = pBoard[pCard1]
  pBoard2 = pBoard[pCard2]

  test1 = getPos(pList1, pBoard1)
  test2 = getPos(pList2, pBoard2)

  test5 = getPos(pList2, pBoard1)
  test6 = getPos(pList1, pBoard2)

  if ((test1 = test2) and (test1 + test2 ) ) or ((test5 = test6) and
(test5  + test6 )) then

    put "result is true!!!!"

  end if
end

It only uses 4 getpos, 4 getats and 2 ands, it could be rewritten as...

 if ((test1 = test2) and (test1 > 0 and test2 > 0) ) or (  (test5 =
test6) and (test5 > 0 and test6 > 0 )  ) then

I've added code before it so that i could test it, and it seems to work
acurately.

-- -- -- NoiseCrime 2000
------------------------------------------------------------------------------------

d-eight Delights: A collection of imaging lingo samples and demo's
http://www.simtek.dircon.co.uk/deight/

Sonic Rush Racers: 3D high speed racing game
http://upload.freeloader.com/browsergame/bsw0002/brow_popup.html


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to