Better HN
topnewbestaskshowjobs
Log inSign up

fogleman

3,899 karma · joined Apr 5, 2013 (13y ago) · 349 submissions

Submissions

comment 8y ago · link · parent

The core of Primitive is open source, written in Go.

https://github.com/fogleman/primitive

Only the UI is closed source. It's written in Objective-C and basically shells out to the Go code.

comment 8y ago · link · parent

Try running server.py locally.

Then check out builder.py which will send commands to your server to change blocks. You can rapidly build all sorts of shapes with a few function calls.

https://github.com/fogleman/Craft/blob/master/builder.py

comment 8y ago · link · parent

Fogleman here. Funny to see an old project in the #1 spot (again?).

I hesitate to comment about this being productive while having kids thing, but some people seem to be implying that I must never spend time with my kids. It's far from the truth. A week ago my son (age 5) and I went camping in the backyard. Coincidentally, he and I have just recently started playing the real Minecraft together on our own private server - every evening lately. (I had never actually really gotten into the real Minecraft before, believe it or not.) We've been playing lots of Thinkfun games like Rush Hour and Shape by Shape. I actually still lay with my son while he falls asleep every night. My daughter (age 7) and I walked to the playground and played for a while there yesterday. We go out and check my vegetable garden daily, and my daughter likes to play "baseball" (plastic bat and ball) in the backyard with me. I work from home currently which is nice because there's no commute and I can see my kids a lot. We have "dance parties" in my home office where there's lots of open floor space. I could go on of course.

I fully understand the sentiment that time is short when it comes to spending time with your kids before they are grown.

There are plenty of folks without kids who aren't super productive too - so the whole thing seems a false dichotomy to me.

Frankly I don't even feel like I work that hard. Maybe "hard" is the wrong word. A lot of people are constantly busy and have no free time. Yet they don't seem so productive? I'm the opposite of that, somehow.

I know I'm under no obligation to defend myself - but there you go.

comment 8y ago · link · parent

I can't believe people used to _douse their food crops_ with glyphosate!

https://en.wikipedia.org/wiki/Glyphosate

comment 8y ago · link · parent

Some of my work: https://www.michaelfogleman.com/

comment 8y ago · link · parent

Or, in my case, a small scratch from my toothbrush flares up into a super painful canker sore.

97.

Show HN: Image Background Removal(github.com ↗)

15 points · by fogleman · 8y ago · 1 comment

comment 8y ago · link · parent

Awesome find, thanks! Wonder if I can find this Mark Engelberg fellow...

comment 8y ago · link · parent

The exit is on the right, so there is no horizontal symmetry. For odd sized boards there is vertical symmetry, which I haven't addressed since I was mainly concerned with 6x6.

comment 8y ago · link · parent

I like Peter Norvig. You inspired me to email him about this.

comment 8y ago · link · parent

Thanks for calling me out on that. I hate it when online content is missing a date. There is a date on the "More" page that links to this, but it should be on the page itself too!

comment 8y ago · link · parent

Mentioned this in the Prior Art section and another comment here, but his "moves" are single-square steps.

Running my solve utility on his hardest puzzle yields:

$ go run cmd/solve/main.go BBBCDEFGGCDEF.AADEHHI....JI.KK.JLLMM {true [A-1 C+2 B+1 E+1 F-1 A-1 I-1 K-2 D+2 B+2 G+2 I-2 A+1 H+1 F+4 A-1 H-1 I+2 B-2 E-1 G-3 C-1 D-2 I-1 H+4 F-1 J-1 K+2 L-2 C+3 I+3 A+2 G+2 F-3 H-2 D+1 B+1 J-3 A-2 H-2 C-2 I-2 K-4 C+1 I+1 M-2 D+2 E+3 A+4] 49 93 49 12266 1494475}

93 steps, but just 49 moves.

That puzzle is on line 13 of my database:

49 BBBKLMHCCKLMH.AALMDDJ....IJEE..IFFGG 24132

https://www.michaelfogleman.com/static/rush/rush1000.txt

comment 8y ago · link · parent

Nice! I like how the piece directions are indicated in the GIF.

comment 8y ago · link · parent

I linked to this in the Prior Art section. This is the one I wasn't very impressed with. For one, his "moves" are unit-steps.

comment 8y ago · link · parent

I never actually looked for one! I considered implementing my own but haven't gotten around to it yet.

comment 8y ago · link · parent

Haha. Well, if you have ideas I'm all ears!

comment 8y ago · link · parent

My 5-year old son says "I can't figure it out, it's too hard!"

comment 8y ago · link · parent

One simple idea I had was NumMoves * log(ClusterSize) as a difficulty metric. But I'm not sure. I had my wife play several different puzzles to try to gauge difficulty based on that but it didn't seem so clear cut.

comment 8y ago · link · parent

There's code and data that people can "try out". Some of my past Show HNs have been of a similar format. But if a mod wants to edit the title, go ahead.

comment 8y ago · link · parent

Just finished this write up documenting my latest side project. I've been a bit obsessed with this problem for the past few weeks. Hope you like it! Be sure to check out the puzzle database and let me know if you do anything cool with it.

111.

Show HN: Solving Rush Hour, the 6x6 Sliding Block Puzzle(michaelfogleman.com ↗)

223 points · by fogleman · 8y ago · 46 comments

112.

Show HN: Primitive for macOS(primitive.lol ↗)

2 points · by fogleman · 8y ago · discuss

comment 8y ago · link · parent

Recently bought this puzzle game for my kids. Naturally, I had to write my own solver. My son loves that I wrote a program that can generate new puzzles. I even 3D printed some "traffic cones" that can be placed on the board as immovable obstacles.

This was a fun little side project - hope you like it!

114.

Show HN: Rush Hour(github.com ↗)

2 points · by fogleman · 8y ago · 1 comment

115.

Show HN: Rush Hour Puzzle Solver and Generator(github.com ↗)

1 points · by fogleman · 8y ago · discuss

comment 8y ago · link · parent

https://www.youtube.com/watch?v=JEpsKnWZrJ8

comment 8y ago · link · parent

Scroll zoom direction preference is basically a toss up, but the panning seems natural to me.

comment 8y ago · link · parent

Not just bishops, also rooks (and queens).

Magic bitboards are awesome. Here's my implementation:

https://github.com/fogleman/MisterQueen/blob/master/src/bb.c...

comment 8y ago · link · parent

Nice post. You should post some plotter stuff on Twitter. ;)

comment 8y ago · link · parent

See #plottertwitter for a peek at "our" world.

https://twitter.com/hashtag/plottertwitter

12345
12