27 cube ([Kante*(Viertelfeld+0.5), Kante*(Viertelfeld+0.5), Kante*(Viertelfeld+0.5)]);
34 for (i = [1:Viertelfeld])
36 for (j = [1:Viertelfeld])
38 translate([(Kante+Abstand)*i+Abstand,(Kante+Abstand)*j,0])
41 if ((i==1) && (j==1)) { Feld("red"); Striche(3);}
42 if ((i==1) && (j==8)) { Feld("red"); Striche(3);}
43 if ((i==8) && (j==1)) { Feld("red"); Striche(3);}
46 if ((i==2) && (j==2)) { Feld("pink"); Striche(2);}
47 if ((i==3) && (j==3)) { Feld("pink"); Striche(2);}
48 if ((i==4) && (j==4)) { Feld("pink"); Striche(2);}
49 if ((i==5) && (j==5)) { Feld("pink"); Striche(2);}
50 if ((i==8) && (j==8)) { Feld("pink"); Striche(2);}
52 // Dreifacher Buchstabenwert
53 if ((i==2) && (j==6)) { Feld("blue"); Punkte(3);}
54 if ((i==6) && (j==2)) { Feld("blue"); Punkte(3);}
55 if ((i==6) && (j==6)) { Feld("blue"); Punkte(3);}
57 // Doppelter Buchstabenwert
58 if ((i==7) && (j==7)) { Feld("lightblue"); Punkte(2); }
59 if ((i==3) && (j==7)) { Feld("lightblue"); Punkte(2);}
60 if ((i==7) && (j==3)) { Feld("lightblue"); Punkte(2);}
61 if ((i==8) && (j==4)) { Feld("lightblue"); Punkte(2);}
62 if ((i==4) && (j==8)) { Feld("lightblue"); Punkte(2);}
63 if ((i==1) && (j==4)) { Feld("lightblue"); Punkte(2);}
64 if ((i==4) && (j==1)) { Feld("lightblue"); Punkte(2);}
66 // ansonsten normales Feld
75 // Basisfeld erstellen
80 cube([Kante, Kante, Hoehe+Randhoehe], center=false);
82 translate ([Kantenbreite,Kantenbreite,Hoehe-Randhoehe])
84 cube([Kante-Kantenbreite-Kantenbreite, Kante-Kantenbreite-Kantenbreite, Hoehe+Randhoehe], center=false);
90 module Punkte(AnzahlPunkte)
94 translate ([Kante/3, Kante/3, Hoehe-Randhoehe]) cylinder(Randhoehe/2,2,1, center=false);
95 translate ([Kante/3*2, Kante/3*2, Hoehe-Randhoehe]) cylinder(Randhoehe/2,2,1, center=false);
99 translate ([Kante/4, Kante/4, Hoehe-Randhoehe]) cylinder(Randhoehe/2,2,1, center=false);
100 translate ([Kante/4*2, Kante/4*2, Hoehe-Randhoehe]) cylinder(Randhoehe/2,2,1, center=false);
101 translate ([Kante/4*3, Kante/4*3, Hoehe-Randhoehe]) cylinder(Randhoehe/2,2,1, center=false);
107 module Striche(AnzahlStriche)
109 if (AnzahlStriche==2)
111 translate ([Kante/3-Kantenbreite/2, Kante/4, Hoehe-Randhoehe]) cube([Randhoehe/2,Kante/2,Randhoehe/2]);
112 translate ([Kante/3*2-Kantenbreite/2, Kante/4, Hoehe-Randhoehe]) cube([Randhoehe/2,Kante/2,Randhoehe/2]);
114 if (AnzahlStriche==3)
116 translate ([Kante/4, Kante/4, Hoehe-Randhoehe]) cube([Randhoehe/2,Kante/2,Randhoehe/2]);
117 translate ([Kante/4*2, Kante/4, Hoehe-Randhoehe]) cube([Randhoehe/2,Kante/2,Randhoehe/2]);
118 translate ([Kante/4*3, Kante/4, Hoehe-Randhoehe]) cube([Randhoehe/2,Kante/2,Randhoehe/2]);