Four in a Line

by guberti, published May 7, 2013

Four in a Line by guberti May 7, 2013
0 Share

Thing Apps Enabled

Order This Printed View All Apps

View All

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

Print Thing Tag

Summary

Asle known as Connect Four, Four in a line is a game where you try to use your pieces to get a row of four. The rules can be found at http://en.wikipedia.org/wiki/Connect_Four. My thing also has two tubes on each side of the board for easy storage of pieces. I made this thing in OpenSCAD with the following code:

Board:

difference() {
cylinder(8,55,55);
translate([0,0,1])cylinder(7,53,53);
}
//cylinder(8,40,40); //Comment out this line before pressing F6
difference(){
translate([56,0,0])cylinder(100,6,6);
translate([56,0,0])cylinder(100,5,5);
translate([57,0,10])cylinder(3,6,6);
}
difference(){
translate([-56,0,0])cylinder(100,6,6);
translate([-56,0,0])cylinder(100,5,5);
translate([-57,0,10])cylinder(3,6,6);
}
translate([-57,0,9])cylinder(1,6,6);
translate([57,0,9])cylinder(1,6,6);
difference() {
translate([-52,-2,15])cube([104,4,85]); //Change 20 t0 10?
translate([-52,-1,20])cube([104,2,85]);
translate([45,6,65])rotate([90,0,0])cylinder(15,5,5);
translate([45,6,50])rotate([90,0,0])cylinder(15,5,5);
translate([45,6,35])rotate([90,0,0])cylinder(15,5,5);
translate([45,6,20])rotate([90,0,0])cylinder(15,5,5);
translate([45,6,80])rotate([90,0,0])cylinder(15,5,5);
translate([45,6,95])rotate([90,0,0])cylinder(15,5,5);

translate([30,6,65])rotate([90,0,0])cylinder(15,5,5);
translate([30,6,50])rotate([90,0,0])cylinder(15,5,5);
translate([30,6,35])rotate([90,0,0])cylinder(15,5,5);
translate([30,6,20])rotate([90,0,0])cylinder(15,5,5);
translate([30,6,80])rotate([90,0,0])cylinder(15,5,5);
translate([30,6,95])rotate([90,0,0])cylinder(15,5,5);

translate([15,6,65])rotate([90,0,0])cylinder(15,5,5);
translate([15,6,50])rotate([90,0,0])cylinder(15,5,5);
translate([15,6,35])rotate([90,0,0])cylinder(15,5,5);
translate([15,6,20])rotate([90,0,0])cylinder(15,5,5);
translate([15,6,80])rotate([90,0,0])cylinder(15,5,5);
translate([15,6,95])rotate([90,0,0])cylinder(15,5,5);

translate([0,6,65])rotate([90,0,0])cylinder(15,5,5);
translate([0,6,50])rotate([90,0,0])cylinder(15,5,5);
translate([0,6,35])rotate([90,0,0])cylinder(15,5,5);
translate([0,6,20])rotate([90,0,0])cylinder(15,5,5);
translate([0,6,80])rotate([90,0,0])cylinder(15,5,5);
translate([0,6,95])rotate([90,0,0])cylinder(15,5,5);

translate([-15,6,65])rotate([90,0,0])cylinder(15,5,5);
translate([-15,6,50])rotate([90,0,0])cylinder(15,5,5);
translate([-15,6,35])rotate([90,0,0])cylinder(15,5,5);
translate([-15,6,20])rotate([90,0,0])cylinder(15,5,5);
translate([-15,6,80])rotate([90,0,0])cylinder(15,5,5);
translate([-15,6,95])rotate([90,0,0])cylinder(15,5,5);

translate([-30,6,65])rotate([90,0,0])cylinder(15,5,5);
translate([-30,6,50])rotate([90,0,0])cylinder(15,5,5);
translate([-30,6,35])rotate([90,0,0])cylinder(15,5,5);
translate([-30,6,20])rotate([90,0,0])cylinder(15,5,5);
translate([-30,6,80])rotate([90,0,0])cylinder(15,5,5);
translate([-30,6,95])rotate([90,0,0])cylinder(15,5,5);

translate([-45,6,65])rotate([90,0,0])cylinder(15,5,5);
translate([-45,6,50])rotate([90,0,0])cylinder(15,5,5);
translate([-45,6,35])rotate([90,0,0])cylinder(15,5,5);
translate([-45,6,20])rotate([90,0,0])cylinder(15,5,5);
translate([-45,6,80])rotate([90,0,0])cylinder(15,5,5);
translate([-45,6,95])rotate([90,0,0])cylinder(15,5,5);
}

//translate([-55,-4,15])cube([110,8,85]); //Comment out this line before pressing F6
translate([-55,-1,14])cube([110,2,1]);
translate([5.75,-2,15])cube([3.5,4,88]);
translate([-8.75,-2,15])cube([3.5,4,88]);
translate([20.75,-2,15])cube([3.5,4,88]);
translate([-23.75,-2,15])cube([3.5,4,88]);
translate([35.75,-2,15])cube([3.5,4,88]);
translate([-38.75,-2,14])cube([3.5,4,88]);

Token:

difference(){
cylinder(1.8,4.8,4.8);
cylinder(0.5,4,4);
translate([0,0,1.3])cylinder(0.5,4,4);
}

Instructions

I included 3 files:
"Four in a line.stl" is the board
"Four ina line token.stl" is one token
"Four in a line tokens (17).stl" is 17 tokens (the number of tokens each player need"
The chips should be printed in two different colors.

view more

All Apps

Auto-magically prepare your 3D models for 3D printing. A cloud based 3D models Preparing and Healing solution for 3D Printing, MakePrintable provides features for model repairing, wall thickness...

Kiri:Moto is an integrated cloud-based slicer and tool-path generator for 3D Printing, CAM / CNC and Laser cutting. *** 3D printing mode provides model slicing and GCode output using built-in...

KiriMoto Thing App

With 3D Slash, you can edit 3d models like a stonecutter. A unique interface: as fun as a building game! The perfect tool for non-designers and children to create in 3D.

Print through a distributed network of 3D printing enthusiasts from across the US, at a fraction of the cost of the competitors. We want to change the world for the better through technology, an...

Quickly Scale, Mirror or Cut your 3D Models

3D Print a wide range of designs with Treatstock. Easy to use tools to get the perfect result. The global 3D printing network that connects you with high-quality and fast working print services nea...

I printed this and there are two problems. One minor and one major. First minor problem in the part that connects to the side tubes to the base needs to be stronger. This broke immediately upon removal and I had to make an abs/acetone slurry to glue it and reinforce it back together. However, the major problem is... it doesn't work. The tokens should be held in the visible slots by the bottom edge resting on the top edge if the one below. On this there is too much space between the slots for this to happen. For this to work you need to shorten the vertical distance between the holes so the entire height of the playing field is exactly 6x the diameter of the tokens. Also, I would make the holding tubes 1.5 the diameter of the tokens and make that joint with the base more robust or make it a two piece object where the top slides into slots on the base for setup.

awesome. You should really use for loops in your code though, it'd make it much more manageable:

translate([45,6,65])rotate([90,0,0])cylinder(15,5,5);
translate([45,6,50])rotate([90,0,0])cylinder(15,5,5);
translate([45,6,35])rotate([90,0,0])cylinder(15,5,5);
translate([45,6,20])rotate([90,0,0])cylinder(15,5,5);
translate([45,6,80])rotate([90,0,0])cylinder(15,5,5);
translate([45,6,95])rotate([90,0,0])cylinder(15,5,5);

becomes:

for (i=[20:15:95])
{
translate([45,6,i])rotate([90,0,0])cylinder(15,5,5);
}

You're right. Also, do you know if OpenSCAD has a foreach loop? I would like to use one for my next print.

have you printed this? if so, can you post a photo?

guberti - in reply to kwalus

No, sorry. I havn't printed it. Did I make a mistake? If so, please tell me so I can fix it.

Top