|
@@ -1795,24 +1795,24 @@ def spiel():
|
1795
|
1795
|
|
1796
|
1796
|
def start():
|
1797
|
1797
|
|
1798
|
|
- t.reset() #zuruecksetzen vom Turtlefenster
|
1799
|
|
- t.pensize(3) #Stiftgroesse 3
|
1800
|
|
-
|
1801
|
|
- t.forward(100), #Zeichnung der Loesung
|
1802
|
|
- t.left(90),
|
1803
|
|
- t.forward(100),
|
1804
|
|
- t.right(45),
|
1805
|
|
- t.back(140),
|
1806
|
|
- t.right(90),
|
1807
|
|
- t.right(45+180),
|
1808
|
|
- t.forward(100),
|
1809
|
|
- t.right(90),
|
1810
|
|
- t.forward(100),
|
1811
|
|
- t.left(90+45),
|
1812
|
|
- t.forward(70),
|
1813
|
|
- t.left(90),
|
1814
|
|
- t.forward(70),
|
1815
|
|
- t.left(90),
|
|
1798
|
+ t.reset()
|
|
1799
|
+ t.pensize(3)
|
|
1800
|
+
|
|
1801
|
+ t.left(90)
|
|
1802
|
+ t.forward(100)
|
|
1803
|
+ t.right(90)
|
|
1804
|
+ t.forward(100)
|
|
1805
|
+ t.right(90)
|
|
1806
|
+ t.forward(100)
|
|
1807
|
+ t.right(90)
|
|
1808
|
+ t.forward(100)
|
|
1809
|
+ t.right(135)
|
|
1810
|
+ t.forward(140)
|
|
1811
|
+ t.left(90)
|
|
1812
|
+ t.forward(70)
|
|
1813
|
+ t.left(90)
|
|
1814
|
+ t.forward(70)
|
|
1815
|
+ t.left(90)
|
1816
|
1816
|
t.forward(140)
|
1817
|
1817
|
|
1818
|
1818
|
|
|
@@ -1845,25 +1845,25 @@ def spiel():
|
1845
|
1845
|
|
1846
|
1846
|
def start():
|
1847
|
1847
|
|
1848
|
|
- t.reset() #zuruecksetzen vom Turtlefenster
|
1849
|
|
- t.pensize(3) #Stiftgroesse 3
|
|
1848
|
+ t.reset()
|
|
1849
|
+ t.pensize(3)
|
1850
|
1850
|
|
1851
|
|
- t.forward(100), #Zeichnung der Loesung
|
1852
|
|
- t.left(90),
|
1853
|
|
- t.forward(100),
|
1854
|
|
- t.right(45),
|
1855
|
|
- t.back(140),
|
1856
|
|
- t.right(90),
|
1857
|
|
- t.right(45+180),
|
1858
|
|
- t.forward(100),
|
1859
|
|
- t.right(90),
|
1860
|
|
- t.forward(100),
|
1861
|
|
- t.left(90+45),
|
1862
|
|
- t.forward(70),
|
1863
|
|
- t.left(90),
|
1864
|
|
- t.forward(70),
|
1865
|
|
- t.left(90),
|
|
1851
|
+ t.left(90)
|
|
1852
|
+ t.forward(100)
|
|
1853
|
+ t.right(90)
|
|
1854
|
+ t.forward(100)
|
|
1855
|
+ t.right(90)
|
|
1856
|
+ t.forward(100)
|
|
1857
|
+ t.right(135)
|
|
1858
|
+ t.forward(140)
|
|
1859
|
+ t.right(90)
|
|
1860
|
+ t.forward(70)
|
|
1861
|
+ t.right(90)
|
|
1862
|
+ t.forward(70)
|
|
1863
|
+ t.right(90)
|
1866
|
1864
|
t.forward(140)
|
|
1865
|
+ t.left(135)
|
|
1866
|
+ t.forward(100)
|
1867
|
1867
|
|
1868
|
1868
|
|
1869
|
1869
|
def ende():
|
|
@@ -1895,25 +1895,25 @@ def spiel():
|
1895
|
1895
|
|
1896
|
1896
|
def start():
|
1897
|
1897
|
|
1898
|
|
- t.reset() #zuruecksetzen vom Turtlefenster
|
1899
|
|
- t.pensize(3) #Stiftgroesse 3
|
|
1898
|
+ t.reset()
|
|
1899
|
+ t.pensize(3)
|
1900
|
1900
|
|
1901
|
|
- t.forward(100), #Zeichnung der Loesung
|
1902
|
|
- t.left(90),
|
1903
|
|
- t.forward(100),
|
1904
|
|
- t.right(45),
|
1905
|
|
- t.back(140),
|
1906
|
|
- t.right(90),
|
1907
|
|
- t.right(45+180),
|
1908
|
|
- t.forward(100),
|
1909
|
|
- t.right(90),
|
1910
|
|
- t.forward(100),
|
1911
|
|
- t.left(90+45),
|
1912
|
|
- t.forward(70),
|
1913
|
|
- t.left(90),
|
1914
|
|
- t.forward(70),
|
1915
|
|
- t.left(90),
|
|
1901
|
+ t.left(90)
|
|
1902
|
+ t.forward(100)
|
|
1903
|
+ t.right(90)
|
|
1904
|
+ t.forward(100)
|
|
1905
|
+ t.left(135)
|
|
1906
|
+ t.forward(70)
|
|
1907
|
+ t.left(90)
|
|
1908
|
+ t.forward(70)
|
|
1909
|
+ t.left(90)
|
|
1910
|
+ t.forward(140)
|
|
1911
|
+ t.right(135)
|
|
1912
|
+ t.forward(100)
|
|
1913
|
+ t.right(135)
|
1916
|
1914
|
t.forward(140)
|
|
1915
|
+ t.right(135)
|
|
1916
|
+ t.forward(100)
|
1917
|
1917
|
|
1918
|
1918
|
|
1919
|
1919
|
def ende():
|
|
@@ -1945,25 +1945,25 @@ def spiel():
|
1945
|
1945
|
|
1946
|
1946
|
def start():
|
1947
|
1947
|
|
1948
|
|
- t.reset() #zuruecksetzen vom Turtlefenster
|
1949
|
|
- t.pensize(3) #Stiftgroesse 3
|
|
1948
|
+ t.reset()
|
|
1949
|
+ t.pensize(3)
|
1950
|
1950
|
|
1951
|
|
- t.forward(100), #Zeichnung der Loesung
|
1952
|
|
- t.left(90),
|
1953
|
|
- t.forward(100),
|
1954
|
|
- t.right(45),
|
1955
|
|
- t.back(140),
|
1956
|
|
- t.right(90),
|
1957
|
|
- t.right(45+180),
|
1958
|
|
- t.forward(100),
|
1959
|
|
- t.right(90),
|
1960
|
|
- t.forward(100),
|
1961
|
|
- t.left(90+45),
|
1962
|
|
- t.forward(70),
|
1963
|
|
- t.left(90),
|
1964
|
|
- t.forward(70),
|
1965
|
|
- t.left(90),
|
|
1951
|
+ t.left(90)
|
|
1952
|
+ t.forward(100)
|
|
1953
|
+ t.right(90)
|
|
1954
|
+ t.forward(100)
|
|
1955
|
+ t.left(135)
|
|
1956
|
+ t.forward(70)
|
|
1957
|
+ t.left(90)
|
|
1958
|
+ t.forward(70)
|
|
1959
|
+ t.left(90)
|
1966
|
1960
|
t.forward(140)
|
|
1961
|
+ t.left(135)
|
|
1962
|
+ t.forward(100)
|
|
1963
|
+ t.left(135)
|
|
1964
|
+ t.forward(140)
|
|
1965
|
+ t.left(135)
|
|
1966
|
+ t.forward(100)
|
1967
|
1967
|
|
1968
|
1968
|
|
1969
|
1969
|
def ende():
|
|
@@ -1995,24 +1995,24 @@ def spiel():
|
1995
|
1995
|
|
1996
|
1996
|
def start():
|
1997
|
1997
|
|
1998
|
|
- t.reset() #zuruecksetzen vom Turtlefenster
|
1999
|
|
- t.pensize(3) #Stiftgroesse 3
|
|
1998
|
+ t.reset()
|
|
1999
|
+ t.pensize(3)
|
2000
|
2000
|
|
2001
|
|
- t.forward(100), #Zeichnung der Loesung
|
2002
|
|
- t.left(90),
|
2003
|
|
- t.forward(100),
|
2004
|
|
- t.right(45),
|
2005
|
|
- t.back(140),
|
2006
|
|
- t.right(90),
|
2007
|
|
- t.right(45+180),
|
2008
|
|
- t.forward(100),
|
2009
|
|
- t.right(90),
|
2010
|
|
- t.forward(100),
|
2011
|
|
- t.left(90+45),
|
2012
|
|
- t.forward(70),
|
2013
|
|
- t.left(90),
|
2014
|
|
- t.forward(70),
|
2015
|
|
- t.left(90),
|
|
2001
|
+ t.left(90)
|
|
2002
|
+ t.forward(100)
|
|
2003
|
+ t.right(45)
|
|
2004
|
+ t.forward(70)
|
|
2005
|
+ t.right(90)
|
|
2006
|
+ t.forward(70)
|
|
2007
|
+ t.right(90)
|
|
2008
|
+ t.forward(140)
|
|
2009
|
+ t.left(135)
|
|
2010
|
+ t.forward(100)
|
|
2011
|
+ t.left(90)
|
|
2012
|
+ t.forward(100)
|
|
2013
|
+ t.left(90)
|
|
2014
|
+ t.forward(100)
|
|
2015
|
+ t.left(135)
|
2016
|
2016
|
t.forward(140)
|
2017
|
2017
|
|
2018
|
2018
|
|
|
@@ -2345,7 +2345,7 @@ def spiel():
|
2345
|
2345
|
w1 = Label(root,justify=LEFT,padx = 10,text="Hallo, hier kann eine manuelle Loesung gezeichnet werden:",underline=0,fg = "black", font = "Tahoma", background="white") #justify parameter um komplettes element zu positionieren #padx fuer horizontaler Richtung links oder rechts dem label zusaetzlicher raum #fg fuer farbe und font fuer schriftart
|
2346
|
2346
|
w1.pack(side="top") #wichtig fuer einbettung
|
2347
|
2347
|
|
2348
|
|
- canvas = tk.Canvas(root, width = 400, height = 400) #grosse des Turtlefensters
|
|
2348
|
+ canvas = tk.Canvas(root, width = 1000, height = 1000) #grosse des Turtlefensters
|
2349
|
2349
|
canvas.pack()
|
2350
|
2350
|
|
2351
|
2351
|
t = turtle.RawTurtle(canvas) #Fenster fuer die darstellung von Turtle und Tkinter in einem Fesnter
|