@JimSkon/

LeafyPushyVirtualmachines

Python (with Turtle)

No description

fork
loading
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import turtle  
import random

def setupTurtle(tColor,x,y):
  t=turtle.Turtle()
  t.color(tColor)
  t.shape('turtle')
  t.up()
  t.goto(x,y)
  return t

def main():
  wn = turtle.Screen() 
  wn.bgcolor('lightblue')
  lance=setupTurtle('red',-200,20)
  andy=setupTurtle('blue',-200,-20)
  andy.forward(random.randrange(10,200))
  lance.forward(random.randrange(10,200))

  wn.exitonclick()
  print("Bye")

main()
result
console