Life In 19x19 http://www.lifein19x19.com/ |
|
Ideas for a simple Go programme http://www.lifein19x19.com/viewtopic.php?f=8&t=11416 |
Page 1 of 1 |
Author: | Stefany93 [ Fri Jan 30, 2015 4:05 am ] |
Post subject: | Ideas for a simple Go programme |
Howdy, I am currently pretty advanced with the programming language of Perl and I am looking for a project, for free of course, I will post the program in GitHub. Any ideas for a simple program to be made ? Maybe something needed with .sgf files or anything. Because I want to train my Perl skills and contribute to the wonderful Go community as well ![]() Many Thanks! |
Author: | macelee [ Fri Jan 30, 2015 12:15 pm ] |
Post subject: | Re: Ideas for a simple Go programme |
I have an idea on a small Go-related project. I want to keep track of games played at Kansai Kiin. Currently, they present game results at http://kansaikiin.jp/subpage/prokisen_a.php. They only keep three week's data and rotate three pages to keep record of ongoing games: prokisen_b.php, prokisen_a.php, and prokisen_c.php. Once new results are available old ones get overwritten. I always want to write a script to automatically check these pages, find and save newly available data so that historical results can be saved for future reference. This is not too difficult but not too easy to do either with a scripting language. |
Author: | Oberon [ Fri Jan 30, 2015 1:57 pm ] |
Post subject: | Re: Ideas for a simple Go programme |
Stefany93 wrote: Howdy, I am currently pretty advanced with the programming language of Perl and I am looking for a project, for free of course, I will post the program in GitHub. Any ideas for a simple program to be made ? Maybe something needed with .sgf files or anything. Because I want to train my Perl skills and contribute to the wonderful Go community as well ![]() Many Thanks! Why not a "guess next move" program that you could use to replay .sgf pro games, that would record statistics on your success rate... |
Author: | jeromie [ Fri Jan 30, 2015 2:39 pm ] |
Post subject: | Re: Ideas for a simple Go programme |
My other idea for a simple program (that I've thought about making) would be a "counting practice" application - display a diagram of a finished game with a known result, and use a timer to see how fast the user can count the score. You could also make it back the game up N moves and see if the user can still figure out the final score. It's easy to get lazy about counting when playing primarily online, and I take a lot of silly risks in the endgame just because I'm not confident about where the current score stands when the game is close. |
Author: | Stefany93 [ Sat Jan 31, 2015 5:14 am ] |
Post subject: | Re: Ideas for a simple Go programme |
macelee wrote: I have an idea on a small Go-related project. I want to keep track of games played at Kansai Kiin. Currently, they present game results at http://kansaikiin.jp/subpage/prokisen_a.php. They only keep three week's data and rotate three pages to keep record of ongoing games: prokisen_b.php, prokisen_a.php, and prokisen_c.php. Once new results are available old ones get overwritten. I always want to write a script to automatically check these pages, find and save newly available data so that historical results can be saved for future reference. This is not too difficult but not too easy to do either with a scripting language. This is a good idea - could update my skills with Perl scraping. Do you think the website owners might get mad if I upload my program to GitHub or share it here? Since we shall be scraping data, however they put that data there themselves, so... ![]() |
Author: | Stefany93 [ Sat Jan 31, 2015 5:15 am ] |
Post subject: | Re: Ideas for a simple Go programme |
Oberon wrote: Stefany93 wrote: Howdy, I am currently pretty advanced with the programming language of Perl and I am looking for a project, for free of course, I will post the program in GitHub. Any ideas for a simple program to be made ? Maybe something needed with .sgf files or anything. Because I want to train my Perl skills and contribute to the wonderful Go community as well ![]() Many Thanks! Why not a "guess next move" program that you could use to replay .sgf pro games, that would record statistics on your success rate... Could be, but too complicated for Perl, it is not C++ ![]() I am looking for programs that would be run from the CMD/Shell |
Author: | Stefany93 [ Sat Jan 31, 2015 5:17 am ] |
Post subject: | Re: Ideas for a simple Go programme |
jeromie wrote: My other idea for a simple program (that I've thought about making) would be a "counting practice" application - display a diagram of a finished game with a known result, and use a timer to see how fast the user can count the score. You could also make it back the game up N moves and see if the user can still figure out the final score. It's easy to get lazy about counting when playing primarily online, and I take a lot of silly risks in the endgame just because I'm not confident about where the current score stands when the game is close. Not a bad idea, thanks, I will think about it... |
Author: | macelee [ Sat Jan 31, 2015 2:00 pm ] |
Post subject: | Re: Ideas for a simple Go programme |
Stefany93 wrote: This is a good idea - could update my skills with Perl scraping. Do you think the website owners might get mad if I upload my program to GitHub or share it here? Since we shall be scraping data, however they put that data there themselves, so... ![]() That is unlikely. Game results are not sensitive data, and checking the pages a few times a week won't use much bandwidth. So I don't see any problem. |
Author: | Stefany93 [ Sat Jan 31, 2015 3:31 pm ] |
Post subject: | Re: Ideas for a simple Go programme |
macelee wrote: Stefany93 wrote: This is a good idea - could update my skills with Perl scraping. Do you think the website owners might get mad if I upload my program to GitHub or share it here? Since we shall be scraping data, however they put that data there themselves, so... ![]() That is unlikely. Game results are not sensitive data, and checking the pages a few times a week won't use much bandwidth. So I don't see any problem. Very nice, thank you. I might start working on it soon and I will keep you updated. In the meantime, all ideas are greatly appreciated ![]() |
Author: | anazawa [ Wed Feb 04, 2015 6:13 am ] |
Post subject: | Re: Ideas for a simple Go programme |
Stefany93 wrote: Howdy, I am currently pretty advanced with the programming language of Perl and I am looking for a project, for free of course, I will post the program in GitHub. Any ideas for a simple program to be made ? Maybe something needed with .sgf files or anything. Because I want to train my Perl skills and contribute to the wonderful Go community as well ![]() Many Thanks! Thanks for your comment on "Introducing MetaKGS.org" ![]() I introduce some useful modules on CPAN. Currently two SGF parsers are uploaded on CPAN: * Games::SGF (object-oriented) provides SGF data with object methods such as #next or #prev * Games::Go::SGF::Grove (procedural) provides SGF data as raw Perl data structure The above modules will help you parse SGF files. Go board modules: * Games::Goban - simple go board class While Games::Goban implements #as_text method which converts the board object to a plain string, it lacks methods that convert the object to graphics files like PNG. I believe you can extend the class to add those methods. Imager might be helpful to build graphics files. If you want to write a scraping script, a wrapper around libxml would be helpful: * Web::Query (object-oriented) provides jQuery-like interface * Web::Scraper (procedural) a little bit outdated but worth reading the source code As far as I know, CPAN lacks a SGF player with a go board object which receives SGF data and implements object methods such as #next_move that updates the board object. |
Author: | Stefany93 [ Fri Mar 06, 2015 6:23 am ] |
Post subject: | Re: Ideas for a simple Go programme |
anazawa wrote: Stefany93 wrote: Howdy, I am currently pretty advanced with the programming language of Perl and I am looking for a project, for free of course, I will post the program in GitHub. Any ideas for a simple program to be made ? Maybe something needed with .sgf files or anything. Because I want to train my Perl skills and contribute to the wonderful Go community as well ![]() Many Thanks! Thanks for your comment on "Introducing MetaKGS.org" ![]() I introduce some useful modules on CPAN. Currently two SGF parsers are uploaded on CPAN: * Games::SGF (object-oriented) provides SGF data with object methods such as #next or #prev * Games::Go::SGF::Grove (procedural) provides SGF data as raw Perl data structure The above modules will help you parse SGF files. Go board modules: * Games::Goban - simple go board class While Games::Goban implements #as_text method which converts the board object to a plain string, it lacks methods that convert the object to graphics files like PNG. I believe you can extend the class to add those methods. Imager might be helpful to build graphics files. If you want to write a scraping script, a wrapper around libxml would be helpful: * Web::Query (object-oriented) provides jQuery-like interface * Web::Scraper (procedural) a little bit outdated but worth reading the source code As far as I know, CPAN lacks a SGF player with a go board object which receives SGF data and implements object methods such as #next_move that updates the board object. No worries, and thank you for the useful information. Didn't know there were Go modules on CPAN, LOL ! |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |