Hangman Game Updated
The hangman game that I had developed earlier is now updated .It includes the T20 players list as well now .
So there are three versions you can choose from Test,ODI,T20 .Have Fun !
http://crickethangman.50webs.com/index.html
---------------------------------------------------------------------------------------
I have maintained this game for over 2 years now and have studiously updated with list of new players now and then .Make no mistake this was a manual effort from my side,the only automation being the player value that was generated using some heuristics.A wise manager whom I had worked with earlier often referred to making repeatable tasks as an automation.So that is what I did .
The manual process is ,
a)Get the list of new players from Cricinfo
b)Add it to the list of players.
c)Upload to the Hangman site.
So I wrote a simple utility combining batch scripts and java to
a)Downloads the earlier list from hangman game site
b)A simple Cricinfo parser that first fetches the list of new players alone,then looks up the player page to extract the name.
c)Merges the new information with the old one
d)Upload the old one.
e)EMail the status of the above steps
f)Automate steps a)-e)
For steps a) and d) I had to use a FTP Java Library
For steps b) and c) used java HTML Parser Kit.
For step e) I used an an awesome utility available for windows called sendEmail
For step f) Tried and tested Windows Schedule task (that runs daily) which invokes a batch file that does the above steps.
So simple.? It has now saved all my manual effort and the site takes care of auto updating itself. Yay!
So there are three versions you can choose from Test,ODI,T20 .Have Fun !
http://crickethangman.50webs.com/index.html
---------------------------------------------------------------------------------------
I have maintained this game for over 2 years now and have studiously updated with list of new players now and then .Make no mistake this was a manual effort from my side,the only automation being the player value that was generated using some heuristics.A wise manager whom I had worked with earlier often referred to making repeatable tasks as an automation.So that is what I did .
The manual process is ,
a)Get the list of new players from Cricinfo
b)Add it to the list of players.
c)Upload to the Hangman site.
So I wrote a simple utility combining batch scripts and java to
a)Downloads the earlier list from hangman game site
b)A simple Cricinfo parser that first fetches the list of new players alone,then looks up the player page to extract the name.
c)Merges the new information with the old one
d)Upload the old one.
e)EMail the status of the above steps
f)Automate steps a)-e)
For steps a) and d) I had to use a FTP Java Library
For steps b) and c) used java HTML Parser Kit.
For step e) I used an an awesome utility available for windows called sendEmail
For step f) Tried and tested Windows Schedule task (that runs daily) which invokes a batch file that does the above steps.
So simple.? It has now saved all my manual effort and the site takes care of auto updating itself. Yay!