{"id":495,"date":"2006-06-25T23:51:24","date_gmt":"2006-06-25T23:51:24","guid":{"rendered":"http:\/\/www.hamzy.net\/blog2\/?p=495"},"modified":"2006-06-25T23:51:24","modified_gmt":"2006-06-25T23:51:24","slug":"python_and_tichu_goodness","status":"publish","type":"post","link":"http:\/\/www.hamzy.net\/blog2\/?p=495","title":{"rendered":"Python and Tichu goodness"},"content":{"rendered":"<blockquote>\n<p>\nThe beginnings of Perl were directly inspired by running into a problem I<br \/>\ncouldn&#8217;t solve with the tools I had.  Or rather, that I couldn&#8217;t easily<br \/>\nsolve.  As the Apostle Paul so succinctly put it, &#8220;All things are<br \/>\npossible, but not all things are expedient.&#8221; I could have solved my<br \/>\nproblem with awk and shell eventually, but I possess a fortuitous surplus<br \/>\nof the three chief virtues of a programmer: Laziness, Impatience and<br \/>\nHubris.  I was too lazy to do it in awk because it would have been hard to<br \/>\nget awk to jump through the hoops I was wanting it to jump through.  I was<br \/>\ntoo impatient to wait for awk to finish because it was so slow.  And<br \/>\nfinally, I had the hubris to think I could do better.<br \/>\n<br \/>\n&nbsp;&nbsp;&#8212; Larry Wall\n<\/p>\n<\/blockquote>\n<p>\nI wrote my second Python script for Tichu game data this weekend.  My first script was recording a game&#8217;s score and any GrandTichu or Tichu calls made.  It would take that data and generate an HTML table.  Which I would then paste into my game reports.  It works well enough for me.  So I stopped improving on it.  Although certain others would disagree and argue that the data is not presentented effectively.\n<\/p>\n<p>\nHowever, I still have an urge for more data shown about a game.  So I wrote a program that would take <a href=\"\/blog\/archives\/files\/rawCardsPlayed\">this<\/a> and output <a href=\"\/blog\/archives\/files\/cardsPlayed.xml\">this<\/a>.  Last Thursday, Adam and I tried to enter hand data during our game of Tichu.  And I have learned that it is slow, takes thought power away from playing the game, and other people are not so understanding about this process.  So, I am going to set up a camera to take a picture during evey hand played.  Hopefully, this will finally allow me to finally record every hand played during the game.  Of course, data entry will be a bitch!\n<\/p>\n<p>\nAnd what do I intend to do with this data?  Who knows&#8230; if you build it, they will come!  Perhaps a cute flash app to present the game.  Perhaps a data-mining application.  Or perhaps an ugly HTML table that others can complain about.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The beginnings of Perl were directly inspired by running into a problem I couldn&#8217;t solve with the tools I had. Or rather, that I couldn&#8217;t easily solve. As the Apostle Paul so succinctly put it, &#8220;All things are possible, but not all things are expedient.&#8221; I could have solved my problem with awk and shell [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-495","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"http:\/\/www.hamzy.net\/blog2\/index.php?rest_route=\/wp\/v2\/posts\/495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hamzy.net\/blog2\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hamzy.net\/blog2\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hamzy.net\/blog2\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hamzy.net\/blog2\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=495"}],"version-history":[{"count":0,"href":"http:\/\/www.hamzy.net\/blog2\/index.php?rest_route=\/wp\/v2\/posts\/495\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.hamzy.net\/blog2\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hamzy.net\/blog2\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=495"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hamzy.net\/blog2\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}