Untitled
unknown
plain_text
16 days ago
1.8 kB
6
Indexable
Never
""" Author: Your Name, login@purdue.edu Assignment: mm.n - Assignment Name Date: MM/DD/YYYY Description: Describe your program here. Contributors: Name, login@purdue.edu [repeat for each] My contributor(s) helped me: [ ] understand the assignment expectations without telling me how they will approach it. [ ] understand different ways to think about a solution without helping me plan my solution. [ ] think through the meaning of a specific error or bug present in my code without looking at my code. Note that if you helped somebody else with their code, you have to list that person as a contributor. Academic Integrity Statement: I have not used source code obtained from any unauthorized source, either modified or unmodified; nor have I provided another student access to my code. The project I am submitting is my own original work. """ """Import additional modules below this line (starting with unit 6).""" from turtle import * from numpy import np """Write new functions below this line (starting with unit 4).""" def start(): """This function initializes the window and the turtle. Do not modify this function or any of the properties it sets. """ setup(564, 564) bgpic("maze.png") shape("turtle") color("green") width(5) def main(): """Write your mainline logic below this line (then delete this line).""" listen() onkey(lambda: forward(10), "Up") onkey(lambda:backward(10) , "Down") onkey(lambda:left(90), "Left") onkey(lambda:right(90), "Right") mainloop() """Do not change anything below this line.""" if __name__ == "__main__": start() main() done()
Leave a Comment