Re:Xkcd “Self-Description” solved with python+pygame
by snprbob86 on Thursday January 14, 2010 @08:00PM
(#1053977)
I considered expending effort to verify this and the units hobby one. However, I fully trust that Randall does his homework on each and every xkcd. Good netizens like yourself never fail to keep him honest for me. Thanks!
And you can see how quickly it converges. In the actual program it flips back and forth with the real one so you can compare. But that actually makes it harder to see how it progresses.
Re:Xkcd “Self-Description” solved with python+pygame
by philh on Thursday January 14, 2010 @04:56PM
(#1053684)
It doesn't describe the logo, that's just an arbitrary starting point for the iteration. You can begin with anything and after enough iterations it'll look pretty much exactly like the original.
Re:Xkcd “Self-Description” solved with python+pygame
by tmountain on Thursday January 14, 2010 @03:48PM
(#1053558)
It runs in an animated fashion, so it'd be difficult to upload. Those without pygame can rest knowing that the comic is very close to accurate (assuming the program is accurate).
http://yfrog.com/iyxkcd1p --- http://yfrog.com/iyxkcd2p --- http://yfrog.com/1sxkcd3p --- http://yfrog.com/jkxkcd4p --- http://yfrog.com/jkxkcd5p --- http://yfrog.com/jkxkcd6p --- http://yfrog.com/jqxkcd7p --- http://yfrog.com/jkxkcd8p --- http://yfrog.com/jqxkcd9p
And you can see how quickly it converges. In the actual program it flips back and forth with the real one so you can compare. But that actually makes it harder to see how it progresses.
And try this link: http://img710.imageshack.us/slideshow/webplayer.php?id=xkcd9... for a slideshow view.
I loved that one before, but I didn't realise that the panels also described the xkcd logo itself. It's beautiful.
[Disclaimer: I am not Phil Hassey.]
Pygame is a really nice library for 2d gaming, if a bit low-level. I like their approach to sprites and sprite-groups.