<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/"/>

<title>Jeff Epler's blog</title>
<modified>2012-10-09T02:30:33Z</modified>
<tagline>Photos, electronics, cnc, and more</tagline>
<author><name>Jeff Epler</name><email>jepler@unpythonic.net</email></author>
<entry>
<title>FTL (un)packer for Linux</title>
<issued>2012-10-09T02:30:33Z</issued>
<modified>2012-10-09T02:30:33Z</modified>
<id>https://gamma.unpythonic.net/01349749833</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01349749833"/>
<content type="text/html" mode="escaped">
&lt;div style=&quot;float:right;clear:right&quot;&gt;&lt;!-- ftl-hacked.png--&gt;&lt;div class=albumouter style=width:306px id=&gt;&lt;div class=albumimage style=&quot;width:306px;margin-left:0.0px;&quot;&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01349749833/ftl-hacked-medium.jpg&quot; class=&quot;thickbox&quot; rel=&quot;album&quot; title=&quot;Really?  Twelve stuffs?  Now I can beat the rebels.&quot;&gt;&lt;img src=&quot;https://media.unpythonic.net/emergent-files/01349749833/ftl-hacked-small.jpg&quot; width=300 height=172&gt;&lt;/a&gt;&lt;div &gt;&lt;div style=&quot;float: right&quot; &gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01349749833/ftl-hacked-medium.jpg&quot;&gt;(M)&lt;/a&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01349749833/ftl-hacked.png&quot;&gt;(L)&lt;/a&gt;&lt;/div&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01349749833/ftl-hacked.png&quot;&gt;Really?  Twelve stuffs?  Now I can beat the rebels.&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; Added some notes about what is in the various files in data.dat

&lt;p&gt;Recently I bought &lt;a href=&quot;http://www.ftlgame.com&quot;&gt;Faster Than Light&lt;/a&gt; (FTL),
a game which runs on Linux (and also on Mac and Windows).

&lt;p&gt;I noticed that there was a lot of stuff in two &amp;quot;.dat&amp;quot; files; the format of the
&amp;quot;.dat&amp;quot; files turned out to be very simple, and so I wrote a packer and unpacker:
&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01349749833/ftlpack.py&quot;&gt;ftlpack.py&lt;/a&gt;.</content>
</entry>
<entry>
<title>Domino Sweeper</title>
<issued>2008-11-14T13:42:45Z</issued>
<modified>2008-11-14T13:42:45Z</modified>
<id>https://gamma.unpythonic.net/01226670165</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01226670165"/>
<content type="text/html" mode="escaped">
&lt;div style=&quot;float:right;clear:right&quot;&gt;&lt;!-- sweeper.png--&gt;&lt;div class=albumouter style=width:306px id=&gt;&lt;div class=albumimage style=&quot;width:292px;margin-left:7.0px;&quot;&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01226670165/sweeper-medium.png&quot; class=&quot;thickbox&quot; rel=&quot;album&quot; title=&quot;Oops, I died&quot;&gt;&lt;img src=&quot;https://media.unpythonic.net/emergent-files/01226670165/sweeper-small.png&quot; width=286 height=300&gt;&lt;/a&gt;&lt;div &gt;&lt;div style=&quot;float: right&quot; &gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01226670165/sweeper-medium.png&quot;&gt;(M)&lt;/a&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01226670165/sweeper.png&quot;&gt;(L)&lt;/a&gt;&lt;/div&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01226670165/sweeper.png&quot;&gt;Oops, I died&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
Many years ago--the fact that the original announcement has a note that Python
1.5.2 is required should give you some idea--I wrote this minesweeper variant
in which the board has a combination of square and domino-shaped cells.  It
also has a much more powerful middle-click than traditional minesweeper.

&lt;p&gt;I've made sure it runs with modern python (it did without modification) and
added a GPL notice.  It's not the greatest game, and it's not without a
few bugs, but it's still something to spend a few minutes playing.

&lt;p&gt;&lt;p&gt;&lt;b&gt;Files currently attached to this page:&lt;/b&gt;
&lt;table cellpadding=5 style=&quot;width:auto!important; clear:none!important&quot;&gt;&lt;col&gt;&lt;col style=&quot;text-align: right&quot;&gt;&lt;tr bgcolor=#eeeeee&gt;&lt;td&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01226670165/dominosweeper.py&quot;&gt;dominosweeper.py&lt;/a&gt;&lt;/td&gt;&lt;td&gt;14.1kB&lt;/td&gt;&lt;/tr&gt;&lt;tr bgcolor=#dddddd&gt;&lt;td&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01226670165/sweeper-medium.png&quot;&gt;sweeper-medium.png&lt;/a&gt;&lt;/td&gt;&lt;td&gt;236.9kB&lt;/td&gt;&lt;/tr&gt;&lt;tr bgcolor=#eeeeee&gt;&lt;td&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01226670165/sweeper-small.png&quot;&gt;sweeper-small.png&lt;/a&gt;&lt;/td&gt;&lt;td&gt;66.0kB&lt;/td&gt;&lt;/tr&gt;&lt;tr bgcolor=#dddddd&gt;&lt;td&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01226670165/sweeper.png&quot;&gt;sweeper.png&lt;/a&gt;&lt;/td&gt;&lt;td&gt;6.5kB&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p&gt;
</content>
</entry>
<entry>
<title>Tyler Wong's Possibly Optimal Hangman Strategy</title>
<issued>2008-05-08T02:28:17Z</issued>
<modified>2008-05-08T02:28:17Z</modified>
<id>https://gamma.unpythonic.net/01210213697</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01210213697"/>
<content type="text/html" mode="escaped">
I always like it when a computer is able to establish an optimal strategy for a
game; that forever frees human beings from spending their time playing it.

&lt;p&gt;Toward that end, here's an effort from 2001: &lt;a href=&quot;http://www.sharkfeeder.com/hangman/&quot;&gt;http://www.sharkfeeder.com/hangman/&lt;/a&gt;.  I wonder if a modern computer runs much
faster than the reported 15 hours on a P3/600 -- let's hope it does.  Perhaps
this can be used to push the search deeper than choosing one of the 4 most
likely letters at each junction, though for each one-letter increase I imagine
there's a pretty steep runtime increase.

&lt;p&gt;</content>
</entry>
</feed>
