Possible spoilers Continue reading “Screw USB”
Shipper’s Dilemma
Shipper’s Dilemma II
The following is a baseline of what I’m thinking, this is what I typed up last night in processing. It doesn’t have the best anything, but its quick and dirty. I need to start fleshing out how each function works, add test scenarios for each section, and then tie the tests together with a known good answer. Then it will be getting a baseline solution time frame (figure run until the seed maxes out a the biggest integer).
// initialize
// create seed start at 0
// function to iterate the rng seed
// function to initialize:
// array of space
// array of pieces
// array of shapes
// i might combine those last two
// probably not
// function to choose piece and orientation
// (despite cubes being cubes these will still have 3 orientations)
// function to fill in array if it can and fail if it can't
// start loop
// iterate
// init
// the inner loop (while fail = false, done != true)
// rng choose piece...
// place piece
// if piece goes out of bounds
// set fail to true
// decrement number of pieces available
// if number of pieces = 0
//set done = true
// loop
// if done = true
// output solution
// wait friggin ever
// loop
Future project
This may contain spoilers, so feel free to ignore this. Continue reading “Future project”
Shipper’s Dilemma
I finally got to prototyping (comments only so far) my sooner for this. I think it’s a good way to practice rusty skills, learn new ones, and finally solve that puzzle.
The first iteration still be entirely brute force and implemented in processing. I think I should upload the individual code stages add a way to document where my brain was going.
First stage, manually seeded pseudo-rng with a base good/bad check.
Next, I’m thinking of creating an unhappiness metric. The piece that’s least and has the most holes next to it will be the most unhappy and move to the top of an invisible tunnel. It’s need a big miss than that, but it has potential, especially size I’ll have the brute force to compare to.
Notes to self
Gelatin sheets
Pop out mini cookie cutters
Grow potatoes
France wifi yes
blast furnace pennies
Gingerbread
Graham cracker walls
Gingerbread roof
Icing glue
Sugar glass windows (must keep dry, put rice inside?)
Gumdrop path lights
Powdered sugar snow
Reese’s trees
All on an upside down glass pie dish, LEDs illuminating from below through the glass
Note to self
Becky Sterns(sp?) published a knitting class on Instructables. I should look into this.
Task II
Attach a nut, to a block of wood; move the wood using the servo.
Straightforward.
This is one of those days I consider rethinking my methods. I don’t know how big the nut is, but I think it’s bigger than my largest drill bit. I’m positive of this really. This means I’ll need to cut out a hexagonal shape from whatever wood that I have, just to see if it works. I don’t even know if I have a large enough bit for the bolt. Really me, this is all sorts of backwards.
Enough whining.
So I need to cut some holes in some wood, mount the nut, holding the servo steady and the wood in a static orientation, move the wood.
I wonder how much force this will exert. Should I prototype with balsa?
Whatever.
Nut bolt wood move.
Litter Box
We have two cats with four boxes.
Good.
We need to move one.
Bad.
I don’t mind one in my bathroom.
Good.
There’s no floor space.
Bad.
I don’t need anything under the sink…
Project this weekend:
Clear out under the sink.
Remove doors.
Add litter box.
Purrfect.