Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetPosWords (Prepare phase)
- # Import the Python modules:
- import random
- from openexp.mouse import mouse
- from math import sqrt
- #Create random locations and word list
- coords= [[+184, +130], [-100, +172], [+271, -222], [+287, +39], [-87, -39] ]
- random.shuffle(coords)
- for i in range (1,6):
- xvar="x"+str(i)
- yvar="y"+str(i)
- c =coords.pop()
- x=c.pop(0)
- y=c.pop()
- exp.set(xvar,x)
- exp.set(yvar,y)
- Words= ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']
- random.shuffle(Words)
- for a in range (1,6):
- Wordvar="Word"+str(a)
- c =Words.pop()
- exp.set(Wordvar,c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement