Gesellschaftsspiel-Replikator/Scrabble: Unterschied zwischen den Versionen

Aus Stratum 0
Wechseln zu:Navigation, Suche
(Braille + Schwarzschrift (läuft noch nicht))
(Version 1.4 - Funktioniert)
Zeile 1: Zeile 1:
 
<pre>
 
<pre>
 
// Scrabble for blind and sighted players
 
// Scrabble for blind and sighted players
// Version 1.2
+
// Version 1.4
 
// Copyright: Stratum0 e.V.
 
// Copyright: Stratum0 e.V.
 
// License: WTFPL
 
// License: WTFPL
Zeile 23: Zeile 23:
 
}
 
}
  
color("white") difference()
+
// color("white")  
 +
difference()
 
{
 
{
color("red") writecube("S",font="braille.dxf",h=6, t=1,[Width/2,Length/2,Height],[0,0,0],face="top"); // Braille-Schrift-S
+
  writecube("S",font="braille.dxf",h=6, t=1,[Width/2,Length/2,Height],[0,0,0],face="top"); // Braille-Schrift-S
  
color("schwarz") writecube("S",h=6, t=1,[Width/2,Length/2,Height],[0,0,0],face="top"); // Schwarzschrift-S
+
writecube("S",h=6, t=1,[Width/2,Length/2,Height],[0,0,0],face="top"); // Schwarzschrift-S
  
 
}
 
}
  
  
color("green") writecube("S",h=6, t=1,[Width/2,Length/2,Height-0.5],[0,0,0],face="top"); // Schwarzschrift-S
+
color("black") writecube("S",h=6, t=1,[Width/2,Length/2,Height-0.5+0.1],[0,0,0],face="top");  
 +
// Schwarzschrift-S: Die 0.1 sind geschummelt, damit OpenSCAD die Farbe darstellt.
  
  
  
% color("yellow") cube([Width,Length,Height],center=false);
+
cube([Width,Length,Height],center=false);
 
    
 
    
  
Zeile 54: Zeile 56:
  
 
// ---
 
// ---
 
 
 
  
 
</pre>
 
</pre>

Version vom 15. April 2014, 21:58 Uhr

// Scrabble for blind and sighted players
// Version 1.4
// Copyright: Stratum0 e.V.
// License: WTFPL

// Zum Einfügen von Schrft
use <Write.scad>

Height=3;
Width=9;
Length=10;

//cube(size = [Length,Width,Height], center = false);
//color("red") write("MeinTestText", h=7, font="orbitron.dxf");

color("black") intersection()
{
	 color("red") writecube("S",font="braille.dxf",h=6, t=1,[Width/2,Length/2,Height],[0,0,0],face="top"); // Braille-Schrift-S

	color("schwarz") writecube("S",h=6, t=1,[Width/2,Length/2,Height],[0,0,0],face="top"); // Schwarzschrift-S

}

// color("white") 
difference()
{
	  writecube("S",font="braille.dxf",h=6, t=1,[Width/2,Length/2,Height],[0,0,0],face="top"); // Braille-Schrift-S

	 writecube("S",h=6, t=1,[Width/2,Length/2,Height],[0,0,0],face="top"); // Schwarzschrift-S

}


color("black") writecube("S",h=6, t=1,[Width/2,Length/2,Height-0.5+0.1],[0,0,0],face="top"); 
// Schwarzschrift-S: Die 0.1 sind geschummelt, damit OpenSCAD die Farbe darstellt.



cube([Width,Length,Height],center=false);
   


// Quelle dieses Textes: Wikipedia.de
// Aktuell ist die Buchstabenverteilung im deutschsprachigen Scrabble wie folgt (in Klammern jeweils die Häufigkeit). 
// Diese wird seit 1987 verwendet, seitdem wird mit sieben Spielsteinen gespielt.

//    1 Punkt: E (15), N (9), S (7), I (6), R (6), T (6), U (6), A (5), D (4)
//    2 Punkte: H (4), G (3), L (3), O (3)
//    3 Punkte: M (4), B (2), W (1), Z (1)
//    4 Punkte: C (2), F (2), K (2), P (1)
//    6 Punkte: Ä (1), J (1), Ü (1), V (1)
//    8 Punkte: Ö (1), X (1)
//    10 Punkte: Q (1), Y (1)
//    0 Punkte: Joker/Blanko (2)

// ---