Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Chess miscellaneous topics > Re: Help Bot Ad...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 22 of 30 Topic 2978 of 3236
Post > Topic >>

Re: Help Bot Advice adopted.

by Patrick Volk <pjvolk@[EMAIL PROTECTED] > May 12, 2008 at 11:05 PM

On Mon, 12 May 2008 08:38:04 +0100, Martin Brown
<|||newspam|||@[EMAIL PROTECTED]
> wrote:

>Patrick Volk wrote:
>> On Fri, 9 May 2008 09:57:41 -0700 (PDT), Sanny <softtanks@[EMAIL PROTECTED]
>
>> wrote:
>>> Yes, I will see if that can be corrected. It is very difficult to
>>> modify the code as changing one line of code brings new Bugs and then
>>> a week is wasted in correcting the Bugs.
>> 
>> That statement tells me quite at least 2 things:
>> 
>> 1) There's a lot of copy and paste in your code (parts tend to look
>> alike, with minor modifications... some question as to whether making
>> a change is the right one).
>
>It would make sense to split the code into clean separate modules (even 
>if there was initially a slight performance penalty).
>
>It is probably well worth profiling it to see exactly where it spends 
>all its time. Getting the thing to run faster would help a lot. You will 
>probably find that it spends all its time in the terminal node eval.

C&P is a consequence generally of wandering design. You find some code
that could work, and instead of re-factoring it to fulfill all cases,
you copy and modify it for each.

One of the levels of programming hell (hell not only to maintain, but
to test)!

>
>> 2)  You're probably not using the benefits of Java. Your display might
>> be OO, but I doubt that your chess analysis part did. What I know
>> about some contem****ary chess engines (the company I work for built
>> the boards for Deep Blue) is that they evaluate each space. 
>
>That is a hardware accelerator tactic which can consider all the squares 
>using a local sub processor per square. I don't think it works so well 
>on a PC.

It used at least one processor per square. A PC could thread it, yeah,
not as fast, but it lends itself to replication.

>> 
>>   You can score the piece count, but you also can score position...
>> Simplistically by how many squares are controlled. You only have 3
>> different kind of squares.
>
>I get the impression it is already a bit better than that, but that 
>there is something horribly wrong with its quiessence search. Perhaps 
>because it thinks that pinned pieces can move or something... see the 
>game with the mobile phone.

Where A-B pruning comes in. At the level it's at, I don't think you're
going to find a queen sacrifice 4 plies down. Bail!

>
>>   Also I have to agree with what someone else said. For testing
>> purposes, you really should work on handling position notation. One of
>> the beauties of chess is the state of the game can store in so few
>> bytes (64 and be comfortable). If you have a position that is, say, a
>> mate in 5, you can try that position against different versions (and
>> load it against different opponents as well).
>
>Regression testing at least means that you can be sure the program still 
>gets right all the test cases you have tested and fixed so far as well 
>as any new ones.

Sanny's idea of regression testing is release, and saying how it's
improved 200%.

>
>>   Checks and draws should be some sort of function... I forget whether
>> you play a particular sound when the person is in check, but you can
>> use it for that, and also to put a '+' in the notation (or '#' for
>> checkmate). 
>
>Human readable output needs a couple more tweaks and it would be OK. 
>Like for example putting the players and dates in the right sort of 
>brackets and format for standard engines to read.
>> 
>>> Its like when we fly Kites. When the threads messup how difficult it
>>> is to correct the jumbeled threads.
>>>
>>> This Program is so large that if I have to read whole program line by
>>> line, it will take me full day. So its very difficult to go through
>>> all the codes and correct them.
>
>Bulk spagetti code is not a viable programming model. It is time to 
>restructure the code and separate the evaluation, move generation and 
>alpha-beta search into clearly separate modules. Ultimately the majority 
>of the changes should be in eval once the other components are stable.

   Exactly my point. His comments indicate he may not have painted
himself into the corner just yet, but there's probably no doorways or
windows  around.
  A program isn't philosophically a journey - it's more like a tour.
You have a list of sights to see.

>> 
>> 200K isn't that large, even for a one-person project.
>
>It is large if there is no well defined overall structure.

Very true.


>
>Regards,
>Martin Brown
>** Posted from http://www.teranews.com
**
 




 30 Posts in Topic:
Zebediah win against the Advance Level, Please Analyze?
Sanny <softtanks@[EMAI  2008-05-02 22:56:16 
Re: Zebediah win against the Advance Level, Please Analyze?
help bot <nomorechess@  2008-05-03 12:04:42 
Re: Zebediah win against the Advance Level, Please Analyze?
Sanny <softtanks@[EMAI  2008-05-03 22:16:59 
Re: Zebediah win against the Advance Level, Please Analyze?
help bot <nomorechess@  2008-05-03 23:01:49 
Help Bot Advice adopted.
Sanny <softtanks@[EMAI  2008-05-03 23:48:47 
Re: Help Bot Advice adopted.
Sanny <softtanks@[EMAI  2008-05-04 00:23:46 
Re: Help Bot Advice adopted.
Martin Brown <|||newsp  2008-05-08 09:37:02 
Re: Zebediah win against the Advance Level, Please Analyze?
zzz <ik_ben_piet_snot@  2008-05-04 10:40:38 
Re: Zebediah win against the Advance Level, Please Analyze?
Sanny <softtanks@[EMAI  2008-05-04 10:50:26 
Re: Help Bot Advice adopted.
help bot <nomorechess@  2008-05-04 20:38:25 
Re: Zebediah win against the Advance Level, Please Analyze?
help bot <nomorechess@  2008-05-04 21:01:49 
Re: Zebediah win against the Advance Level, Please Analyze?
Martin Brown <|||newsp  2008-05-07 12:30:51 
Re: Zebediah win against the Advance Level, Please Analyze?
Sanny <softtanks@[EMAI  2008-05-07 09:38:44 
Re: Help Bot Advice adopted.
help bot <nomorechess@  2008-05-07 14:40:17 
Re: Help Bot Advice adopted.
Sanny <softtanks@[EMAI  2008-05-08 22:19:06 
Re: Help Bot Advice adopted.
Martin Brown <|||newsp  2008-05-09 10:14:25 
Re: Help Bot Advice adopted.
help bot <nomorechess@  2008-05-09 00:45:27 
Re: Help Bot Advice adopted.
"chipschap@[EMAIL PR  2008-05-09 08:18:00 
Re: Help Bot Advice adopted.
Sanny <softtanks@[EMAI  2008-05-09 09:57:41 
Re: Help Bot Advice adopted.
Patrick Volk <pjvolk@[  2008-05-11 18:15:36 
Re: Help Bot Advice adopted.
Martin Brown <|||newsp  2008-05-12 08:38:04 
Re: Help Bot Advice adopted.
Patrick Volk <pjvolk@[  2008-05-12 23:05:33 
Re: Help Bot Advice adopted.
help bot <nomorechess@  2008-05-09 13:48:13 
Re: Help Bot Advice adopted.
Sanny <softtanks@[EMAI  2008-05-09 21:54:34 
Re: Help Bot Advice adopted.
Martin Brown <|||newsp  2008-05-10 14:37:23 
Re: Help Bot Advice adopted.
help bot <nomorechess@  2008-05-09 23:27:06 
Re: Zebediah win against the Advance Level, Please Analyze?
"Wlodzimierz Holszty  2008-05-09 23:30:54 
Re: Zebediah win against the Advance Level, Please Analyze?
"Wlodzimierz Holszty  2008-05-10 01:15:32 
Re: Zebediah win against the Advance Level, Please Analyze?
help bot <nomorechess@  2008-05-10 03:05:32 
Re: Zebediah win against the Advance Level, Please Analyze?
Sanny <softtanks@[EMAI  2008-05-10 04:32:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Sep 5 1:00:31 CDT 2008.