It is currently Thu May 15, 2025 9:28 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
Offline
 Post subject: Ideas for a simple Go programme
Post #1 Posted: Fri Jan 30, 2015 4:05 am 
Lives with ko
User avatar

Posts: 248
Location: Arkansas, USA
Liked others: 193
Was liked: 21
Rank: KGS 8k
KGS: Azumi93
Online playing schedule: When I am in a mood for Go :D
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!

_________________
Stefany, web programmer

Top
 Profile  
 
Offline
 Post subject: Re: Ideas for a simple Go programme
Post #2 Posted: Fri Jan 30, 2015 12:15 pm 
Lives in sente

Posts: 928
Location: UK
Liked others: 72
Was liked: 480
Rank: 5 dan
KGS: macelee
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 post by macelee was liked by 2 people: jeromie, Stefany93
Top
 Profile  
 
Offline
 Post subject: Re: Ideas for a simple Go programme
Post #3 Posted: Fri Jan 30, 2015 1:57 pm 
Beginner

Posts: 6
Liked others: 0
Was liked: 2
Rank: KGS 5 kyu
KGS: Oberon
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...


This post by Oberon was liked by: Stefany93
Top
 Profile  
 
Offline
 Post subject: Re: Ideas for a simple Go programme
Post #4 Posted: Fri Jan 30, 2015 2:39 pm 
Lives in sente

Posts: 902
Location: Fort Collins, CO
Liked others: 319
Was liked: 287
Rank: AGA 3k
Universal go server handle: jeromie
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.


This post by jeromie was liked by 2 people: goTony, Stefany93
Top
 Profile  
 
Offline
 Post subject: Re: Ideas for a simple Go programme
Post #5 Posted: Sat Jan 31, 2015 5:14 am 
Lives with ko
User avatar

Posts: 248
Location: Arkansas, USA
Liked others: 193
Was liked: 21
Rank: KGS 8k
KGS: Azumi93
Online playing schedule: When I am in a mood for Go :D
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... :study:

_________________
Stefany, web programmer

Top
 Profile  
 
Offline
 Post subject: Re: Ideas for a simple Go programme
Post #6 Posted: Sat Jan 31, 2015 5:15 am 
Lives with ko
User avatar

Posts: 248
Location: Arkansas, USA
Liked others: 193
Was liked: 21
Rank: KGS 8k
KGS: Azumi93
Online playing schedule: When I am in a mood for Go :D
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++ :D

I am looking for programs that would be run from the CMD/Shell

_________________
Stefany, web programmer

Top
 Profile  
 
Offline
 Post subject: Re: Ideas for a simple Go programme
Post #7 Posted: Sat Jan 31, 2015 5:17 am 
Lives with ko
User avatar

Posts: 248
Location: Arkansas, USA
Liked others: 193
Was liked: 21
Rank: KGS 8k
KGS: Azumi93
Online playing schedule: When I am in a mood for Go :D
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...

_________________
Stefany, web programmer

Top
 Profile  
 
Offline
 Post subject: Re: Ideas for a simple Go programme
Post #8 Posted: Sat Jan 31, 2015 2:00 pm 
Lives in sente

Posts: 928
Location: UK
Liked others: 72
Was liked: 480
Rank: 5 dan
KGS: macelee
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... :study:


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.

Top
 Profile  
 
Offline
 Post subject: Re: Ideas for a simple Go programme
Post #9 Posted: Sat Jan 31, 2015 3:31 pm 
Lives with ko
User avatar

Posts: 248
Location: Arkansas, USA
Liked others: 193
Was liked: 21
Rank: KGS 8k
KGS: Azumi93
Online playing schedule: When I am in a mood for Go :D
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... :study:


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 :bow:

_________________
Stefany, web programmer

Top
 Profile  
 
Offline
 Post subject: Re: Ideas for a simple Go programme
Post #10 Posted: Wed Feb 04, 2015 6:13 am 
Dies in gote
User avatar

Posts: 27
Liked others: 6
Was liked: 7
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.

Top
 Profile  
 
Offline
 Post subject: Re: Ideas for a simple Go programme
Post #11 Posted: Fri Mar 06, 2015 6:23 am 
Lives with ko
User avatar

Posts: 248
Location: Arkansas, USA
Liked others: 193
Was liked: 21
Rank: KGS 8k
KGS: Azumi93
Online playing schedule: When I am in a mood for Go :D
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 !

_________________
Stefany, web programmer

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group