Chess Features

27 views
Skip to first unread message

Michael

unread,
Jun 15, 2011, 7:24:50 AM6/15/11
to PRS+ support
Hi Guys,

Great work on all this.

I'd like to request the ability to flip the board, so that the Black
player is on the bottom.

Additional useful features would be a save/load game option, though
this would be harder to work on.

Thanks,

Mike

Mark...@gentlemansclub.de

unread,
Jun 18, 2011, 5:25:37 AM6/18/11
to PRS+ support
Hello Mike,

Save/Load Game is already implemented in the last version in apps-
repository.
Ben also added Chess-Puzzle-Database

Mikheil Sukhiashvili

unread,
Jun 18, 2011, 11:18:31 AM6/18/11
to prsp-s...@googlegroups.com
Hi Mark,

If it works on actual readers push it to the main repository please.

PS
Where does it save it to? If you have time, please define new config variable so that it is easy to change the location later.

Mark...@gentlemansclub.de

unread,
Jun 19, 2011, 6:07:37 AM6/19/11
to PRS+ support
On 18 Jun., 17:18, Mikheil Sukhiashvili <msukhiashv...@gmail.com>
wrote:
> Hi Mark,
>
> If it works on actual readers push it to the main repository please.

Would have to push "AppAssets" too.
BTW: my custom buildPRS+ for both 505 and 650 is working well with all
apps from apps-repository.
Same for Ben's 600 and TJ27's 350.

> PS
> Where does it save it to? If you have time, please define new config
> variable so that it is easy to change the location later.

Path for savegame and configuration files is set to \Data\
using code like this
if (kbook.simEnviro) {datPath = target.chessRoot + 'chess.dat';}
else {datPath = '/Data/chess.dat';}
puzPath = target.chessRoot + 'puzzles/';
if (kbook.simEnviro) {puzDatPath = target.chessRoot +
'chess2.dat';}
else {puzDatPath = '/Data/chess2.dat';}

Mikheil Sukhiashvili

unread,
Jun 19, 2011, 6:44:46 AM6/19/11
to prsp-s...@googlegroups.com
Hi,

Great if it works. Push it then.
Regarding save path, root of IM (and hardcoded path) is not good. I'd prefer, unless there are better ideas:

config {
.....
gameSaveFolder: System.applyEnvironment("[prspPublicPath]")+ "gamesaves/" // don't remember if slash is needed in front of gamesaves
}

and when saving...
var savePath =   Core.config gameSaveFolder  + "Chess/";
var saveFile1 = savePath + "something.txt";
...
var saveFileN = savePath + "somethingelse.txt";  
FileSystem.ensureDirectory(savePath);
Core.io.setFileContent(....

Then there also would be no need to check for kbook.simEnviro when saving as you can change the config value for sim globally.
Reply all
Reply to author
Forward
0 new messages