1) Create 2 targets and give them random directions and have them move in that d
ID: 3546796 • Letter: 1
Question
1) Create 2 targets and give them random directions and have them move in that direction (hint: direction is a list of two numbers [x,y], in this case your direction could be such that x is randomly selected in the range -3, 3 and y is depenedent on x such that x+y = 1. You would ideally want to write a function that returns these two random numbers to you and call the function when required)
CODE:in this file
http://www.mediafire.com/?33toi43495mcwei
IMAGE:
http://www.mediafire.com/?33toi43495mcwei
Explanation / Answer
Use the random function of the programming language you are using.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.