This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6509 - Plugin for playing reversi game
Attached to Project:
Rockbox
Opened by Alexander Levin (fml2) - Friday, 05 January 2007, 23:12 GMT+2
Last edited by Antoine Cellerier (dionoea) - Saturday, 30 June 2007, 22:05 GMT+2
Opened by Alexander Levin (fml2) - Friday, 05 January 2007, 23:12 GMT+2
Last edited by Antoine Cellerier (dionoea) - Saturday, 30 June 2007, 22:05 GMT+2
|
DetailsSince I like the game but mostly as an exercise in programming RB, I've coded up the plugin for reversi game. It should work on all targets with a bitmap display.
As moves are made, they are stored in the game history so that it's possible to save the track. It should be also possible to choose the playing strategy for each player. TODOs: - Really implement the automatic playing strategies (take them from hinversi?) - Implement loading/saving a game from/to a file - Implement robot players (provisions are made but the main loop should be adjusted) - Make nicer GUI - ... Anyone interested? The contents of the ZIP file should be placed to the 'plugins' directory, and the patch should also be applied. |
This task depends upon
Closed by Antoine Cellerier (dionoea)
Saturday, 30 June 2007, 22:05 GMT+2
Reason for closing: Accepted
Additional comments about closing: Applied. Thanks.
Saturday, 30 June 2007, 22:05 GMT+2
Reason for closing: Accepted
Additional comments about closing: Applied. Thanks.
No ideas on my side. I've only tested this on my H120 and with the simulator for ipod video (IIRC). Is it a problem with drawing (i.e. the internal game state is ok) or is the game itself is broken? In the former case I would blame gigabeat LCD driver or its graphics routines. Or maybe the GUI code of the plugin. In the latter case... I don't know, I hope it's not the latter case since the game logic is not platform specific.
BTW, there's a typo in this task's subject. It should read 'plugin', not 'pluging.'
The problem is the definition of struct reversi_board_t - it uses a plain "char" type, which on ARM platforms is unsigned (the C language allows "char" to be either signed or unsigned, depending on the platform). Changing this to an explicit "signed char" type fixes the bug.
But it's looking good so far.
Me being silly. Sure! Thanks Dave!
- implemented Dave's idea
- better graphics (now also works with vertical displays)
- removed unneeded #define's
- thicker cell lines on large displays