Rockbox

Tasklist

FS#7718 - New Game/Plugin - Play Go and Pente (for 2 players)

Attached to Project: Rockbox
Opened by Alex dos Santos (nowayx) - Thursday, 06 September 2007, 01:39 GMT
Task Type Patches
Category Plugins
Status Unconfirmed
Assigned To No-one
Operating System iPod 5G
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Hello,

This plugin is a game to be played in two.
I like to play go and pente and so is my wife (at least she plays pente) so I wrote this plugin.

I think the code is clear enough. I also used all the #ifdef that I knew.. so, I believe it wouldn't break any compilation.

The plugin was tested on IPOD 5G (VIDEO) and works just fine. I also compiled it to a few more players without any problem.
I did not try to compile it for players that don't have the lcd_update() function. It won't work (at least this first version).

The board size in the LCD is based on WIDTH, since Sansa has width smaller than height you will lose part of the board (horizontally).
I just tested the code in sansa using the Simulator...

It is easy to fix and I will, but I'll be traveling for a week (that's why I wrote it, so I could play it while I wait in the airport/plane...) When I came back I will fix it.

Meanwhile, you guys can patch it or use it.
Feedbacks are also welcome.

Current Features:
- Save / Load games
- Pente / Go (Board 9x9, 13x13 and 19x19)
- Remove groups / stones automatically when they are dead

I attached the code and the "executable" for IPOD 5G (Video)

Enjoy!
Alex
This task depends upon

Comment by Jonathan Gordon (jdgordon) - Thursday, 06 September 2007, 03:25 GMT
code looks OK, excpet you should use the actions system for the buttons (to simplify adding new targets) and you have c++ style comments..
Comment by Alex dos Santos (nowayx) - Sunday, 30 December 2007, 17:40 GMT
Ok, version 0.2

- Works on black/white lcd players (tested on ipod mini)
- Playlist control added

Would be nice to know what I need to do to have it committed in the svn... Is it missing something on my code?

Thanks,

   rockgo.c (28.7 KiB)
Comment by eric (fugot) - Sunday, 27 January 2008, 19:21 GMT
i think that it is not in the svn because it is not a patch.

i want to put this on my ipod how do i add it?
Comment by Tibor Fekete (feka) - Saturday, 25 October 2008, 19:58 GMT
As I understand it, this is going ti need two human players, right? So after I have my move I need to hand the device to my opponent for him/her to make his/her move. Please correct me if I am wrong. Did you think about handling sgf files? (The standard ay to save go games.) Did you think about joining forces with this other task? http://www.rockbox.org/tracker/task/7369
Comment by Alex dos Santos (nowayx) - Tuesday, 28 October 2008, 14:26 GMT
Yes, you are right. This plugin I wrote in a couple of hours to play Pente and Go with my wife in the airplane/airports.
It ain't easy to travel with a go board (LOL)... so I decided to implement this as a "two players" game, just as an alternative to the board.
Comment by Yifu Huang (yhuang) - Saturday, 22 November 2008, 06:40 GMT
Alex, great stuff so far...

I synced rockgo to SVN 19176 and created a patch file. Enjoy
Comment by Joshua Simmons (mud) - Monday, 16 February 2009, 11:13 GMT
 FS#7369  was commited to svn somewhat recently, which allows playing Go on Rockbox. Is there much interest in Gomoku and/or Pente in addition to Go? If so, I could probably be persuaded to add them to the Goban plugin (I wrote  FS#7369 ).

The only difficulty is that I don't play either of those games, and barely know the rules of Pente. I could of course look them up, but I really would need someone to do quite a bit of testing for me as I wouldn't use either of those games extensively. If anyone is interested, let me know.

The advantage of adding the games to the Goban plugin instead of continuing this patch is that you'd get SGF file handling for basically free, and the graphics and other features are more advanced.

Loading...