Author Topic: Spartak chess  (Read 19074 times)

djdron (OP)

  • *
  • Posts: 33
Re: Spartak chess
« Reply #20 on: September 06, 2010, 11:45:39 pm »
Version update (rev19).
1. menu added (by SELECT button);
2. select playing for black or white from menu;
3. difficulty levels added;
4. opening book changed (smaller size);
5. draw optimizations.

zear

  • * Moderator
  • Posts: 2379
Re: Spartak chess
« Reply #21 on: September 07, 2010, 07:14:51 am »
Unfortunatelly it uses libs available only for native os.

Hello, zear!

I wrote SDL binding for game.
You can try to build it for Dingux.
Makefiles placed in build/<platform> folder.

Hey djdron,
I recompiled Spartak-chess for dingux, it works, but is VERY unstable. The game crashes after just few moves. I will have to look more into it, maybe there's a memory leak somewhere.

djdron (OP)

  • *
  • Posts: 33
Re: Spartak chess
« Reply #22 on: September 07, 2010, 07:56:54 am »
I recompiled Spartak-chess for dingux, it works, but is VERY unstable. The game crashes after just few moves.
I think that this is because of size of stack for application.
This chess engine is recursive, so you can give ~1Mb of stack.

Look at Native OS binding, i created separate thread because of stack size is limited to 64K in main thread.

darfgarf

  • Guest
Re: Spartak chess
« Reply #23 on: September 07, 2010, 08:54:58 am »
I recompiled Spartak-chess for dingux, it works, but is
This chess engine is recursive, so you can give ~1Mb of stack.

why would you write something as recursive for something like chess? surely there's no way to know how much memory it'll need, and hence introduce an inherent instability in the code

a better way would be to do it non-recursive, might be slower at times, but it'll be a hell of a lot more stable

djdron (OP)

  • *
  • Posts: 33
Re: Spartak chess
« Reply #24 on: September 07, 2010, 10:02:41 am »
darfgarf, zear you can write a message to Stockfish authors about non-recursive algorithm :)

darfgarf

  • Guest
Re: Spartak chess
« Reply #25 on: September 07, 2010, 10:22:02 am »
 ;D cba, they probably didn't expect it to be running on such a small system, and working out non-recursive ways to do naturally recursive things is hell, jsut like the other way round

Dr Serious

  • Guest
Re: Spartak chess
« Reply #26 on: September 07, 2010, 02:16:47 pm »
Good work so far, I have a couple of suggestions.

Currently the UI just freezes when the computer is thinking, an indicator would be a nice addition. When moving the cursor it would be even more efficient if you could just hold down the d-pad and cycle through the squares quickly.

The 3 difficulty settings are a good start, it would be even better if the player could customize the parameters involved such as search depth and time limits. Thanks for the improvements so far, I played a quick game with Spartak on Hard difficulty against Shredder at 2338 Elo and the game was a draw. A definite improvement in playing strength!
« Last Edit: September 07, 2010, 02:18:21 pm by Dr Serious »

djdron (OP)

  • *
  • Posts: 33
Re: Spartak chess
« Reply #27 on: September 10, 2010, 12:13:03 am »
One more update (rev26):
1. Store state on exit;
2. Computer moves visualizing;
3. More status info.

Dr Serious

  • Guest
Re: Spartak chess
« Reply #28 on: September 10, 2010, 01:05:11 am »
Shaping up to be a fine chess game. :) Can we have an option to take back unlimited moves?

djdron (OP)

  • *
  • Posts: 33
Re: Spartak chess
« Reply #29 on: September 10, 2010, 10:51:28 am »
Dr Serious>Can we have an option to take back unlimited moves?
No, it's cheating! ;D

Dr Serious

  • Guest
Re: Spartak chess
« Reply #30 on: September 10, 2010, 02:00:44 pm »
Dr Serious>Can we have an option to take back unlimited moves?
No, it's cheating! ;D

Ok I'm a dirty cheater, sometimes!  :D Seriously though it would be a good idea to implement some kind of take back function because most serious chess programs include that for training purposes. It doesn't have to be mandatory, just an option in the menu to turn it on and off.
« Last Edit: September 10, 2010, 02:02:37 pm by Dr Serious »

djdron (OP)

  • *
  • Posts: 33
Re: Spartak chess
« Reply #31 on: September 13, 2010, 09:36:40 am »
I recompiled Spartak-chess for dingux, it works, but is VERY unstable. The game crashes after just few moves.
It is stack overflow problem. I got it also under Symbian 9. Stack size is limited to 64K by the OS. I will try to reduce stack usage.

djdron (OP)

  • *
  • Posts: 33
Re: Spartak chess
« Reply #32 on: September 13, 2010, 09:59:43 pm »
I reduced stack usage to ~24K.
zear, can you try to build & test version for Dingux?

djdron (OP)

  • *
  • Posts: 33
Re: Spartak chess
« Reply #33 on: September 21, 2010, 11:03:43 pm »
whats news:
1. stack usage reduced to less than 16K.
2. version for Symbian 9.1-9.3 released (version 0.0.1)
3. dingoo release (version 0.0.2)

zear, where are you?  ;)

djdron (OP)

  • *
  • Posts: 33
Re: Spartak chess
« Reply #34 on: October 29, 2010, 11:28:55 pm »
Many thanks to Zear & SiENcE for testing...there is test version for dingux (without icon)

samir

  • *
  • Posts: 344
Re: Spartak chess
« Reply #35 on: October 31, 2010, 05:55:20 pm »
Thanks!  ;D

 

Post a new topic
Post a new topic