module tile(suite,value) { union() { difference(){ translate([0,0,0.4]) cube([50,50,4.6]); if (value == "ace") { translate([0,0,4]) linear_extrude(height=2) import(str("../graphics/",suite,".dxf")); } else if (value != "null") { translate([0,0,4]) linear_extrude(height=2) import(str("../graphics/",value,".dxf")); } translate([0,35,4]) linear_extrude(height=2) scale(0.3) import(str("../graphics/",suite,".dxf")); } cube([24.5,24.5,1]); translate([25.5,0,0]) cube([24.5,24.5,1]); translate([0,25.5,0]) cube([24.5,24.5,1]); translate([25.5,25.5,0]) cube([24.5,24.5,1]); } } module coin(suite,value) { difference() { cylinder(r=10, h=3); translate([0,0,2]) linear_extrude(height=1.5) scale(0.4) translate([-25,-25,0]) import(str("../graphics/",suite,".dxf"),center=true); if (value != "null") { translate([0,0,1]) rotate([0,180,0]) linear_extrude(height=1.5) scale(0.4) translate([-25,-25,0]) import(str("../graphics/",value,".dxf"),center=true); } translate([0,10,3]) rotate([90,0,0]) cylinder(r=0.8, h=2); translate([0,10,0]) rotate([90,0,0]) cylinder(r=0.8, h=2); } } module die(suite) { difference() { cube(12); translate([0,0,11]) linear_extrude(height=1.5) scale(0.24) import(str("../graphics/",suite,".dxf")); translate([1,0,0]) rotate([0,-90,0]) linear_extrude(height=1.5) scale(0.24) import("../graphics/2.dxf"); translate([11,0,12]) rotate([0,90,0]) linear_extrude(height=1.5) scale(0.24) import("../graphics/5.dxf"); translate([0,1,0]) rotate([90,0,0]) linear_extrude(height=1.5) scale(0.24) import("../graphics/3.dxf"); translate([0,11,12]) rotate([-90,0,0]) linear_extrude(height=1.5) scale(0.24) import("../graphics/4.dxf"); } } module suite_die(suites) { difference() { cube(12); translate([0,0,11]) linear_extrude(height=1.5) scale(0.24) import("../graphics/ace.dxf"); translate([1,0,0]) rotate([0,-90,0]) linear_extrude(height=1.5) scale(0.24) import(str("../graphics/",suites[0],".dxf")); translate([11,0,12]) rotate([0,90,0]) linear_extrude(height=1.5) scale(0.24) import(str("../graphics/",suites[1],".dxf")); translate([0,1,0]) rotate([90,0,0]) linear_extrude(height=1.5) scale(0.24) import(str("../graphics/",suites[2],".dxf")); translate([0,11,12]) rotate([-90,0,0]) linear_extrude(height=1.5) scale(0.24) import(str("../graphics/",suites[3],".dxf")); } } module pawn(suite) { difference() { cylinder(r=8, h=22); translate([-8,-8,21]) linear_extrude(height=1.5) scale(0.32) import(str("../graphics/",suite,".dxf"),center=true); } } module saucer(suite) { difference() { cylinder(r=12, h=5); translate([0,0,3]) cylinder(r=9, h=3); translate([0,12,-1]) cylinder(r=2, h=7); translate([-8,-8,2]) linear_extrude(height=1.5) scale(0.32) import(str("../graphics/",suite,".dxf"),center=true); } }