-
Notifications
You must be signed in to change notification settings - Fork 2
/
emo_tractor.py
executable file
·46 lines (40 loc) · 1023 Bytes
/
emo_tractor.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 10 15:36:57 2018
@author: kurner
"""
from tractor_1 import Field, TractorWriter
import unicodedata
skull = unicodedata.lookup("skull")
ghost = unicodedata.lookup("ghost")
tiger = unicodedata.lookup("tiger")
octopus = unicodedata.lookup("octopus")
def emofield1():
f = Field(10,10)
f.add_tractor(TractorWriter)
f.add_tractor(TractorWriter)
t1 = f.Ts[0] # get the tractor
t2 = f.Ts[0] # get the tractor
t1.write(skull*100, (0,0))
for _ in range(100):
next(t1)
t2.write(ghost*5, (4,4))
for _ in range(100):
next(t2)
print(f)
def emofield2():
f = Field(10,10)
f.add_tractor(TractorWriter)
f.add_tractor(TractorWriter)
t1 = f.Ts[0] # get the tractor
t2 = f.Ts[0] # get the tractor
t1.write(octopus*100, (0,0))
for _ in range(100):
next(t1)
t2.write(tiger*5, (4,4))
for _ in range(100):
next(t2)
print(f)
emofield1()
emofield2()