Chess programming Words of Wisdom

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Chess programming Words of Wisdom

Post by sje »

How about a "Words of Wisdom" list? Here's mine; feel free to add some of yours.

--------

In a typical chess playing program:

10% of the bugs are from typographical errors.

10% of the bugs are from algorithmic design and implementation errors.

80% of the bugs are due to cleverly coded optimization efforts.
Uri Blass
Posts: 10314
Joined: Thu Mar 09, 2006 12:37 am
Location: Tel-Aviv Israel

Re: Chess programming Words of Wisdom

Post by Uri Blass »

sje wrote:How about a "Words of Wisdom" list? Here's mine; feel free to add some of yours.

--------

In a typical chess playing program:

10% of the bugs are from typographical errors.

10% of the bugs are from algorithmic design and implementation errors.

80% of the bugs are due to cleverly coded optimization efforts.
Not correct for me.

most of the bugs are not because of optimization efforts and I simply do not care about speed except speed of the algorithm.

I have many parameters that the user can change and I have clearly not optimal code by things like
if (parameter==1)
{
}

Uri
jswaff

Re: Chess programming Words of Wisdom

Post by jswaff »

Uri Blass wrote: I have many parameters that the user can change and I have clearly not optimal code by things like
if (parameter==1)
{
}

What's non-optimal about that?

--
James
Uri Blass
Posts: 10314
Joined: Thu Mar 09, 2006 12:37 am
Location: Tel-Aviv Israel

Re: Chess programming Words of Wisdom

Post by Uri Blass »

jswaff wrote:
Uri Blass wrote: I have many parameters that the user can change and I have clearly not optimal code by things like
if (parameter==1)
{
}

What's non-optimal about that?

--
James
speed.

It is slightly faster to be without that parmater and not to have if.
Michael Sherwin
Posts: 3196
Joined: Fri May 26, 2006 3:00 am
Location: WY, USA
Full name: Michael Sherwin

Re: Chess programming Words of Wisdom

Post by Michael Sherwin »

sje wrote:How about a "Words of Wisdom" list? Here's mine; feel free to add some of yours.

--------

In a typical chess playing program:

10% of the bugs are from typographical errors.

10% of the bugs are from algorithmic design and implementation errors.

80% of the bugs are due to cleverly coded optimization efforts.
I was expecting, 'Don't start'! :lol:
If you are on a sidewalk and the covid goes beep beep
Just step aside or you might have a bit of heat
Covid covid runs through the town all day
Can the people ever change their ways
Sherwin the covid's after you
Sherwin if it catches you you're through
Guetti

Re: Chess programming Words of Wisdom

Post by Guetti »

Michael Sherwin wrote: I was expecting, 'Don't start'! :lol:
But if you start, don't stop! :roll:
jswaff

Re: Chess programming Words of Wisdom

Post by jswaff »

Uri Blass wrote:
jswaff wrote:
Uri Blass wrote: I have many parameters that the user can change and I have clearly not optimal code by things like
if (parameter==1)
{
}

What's non-optimal about that?

--
James
speed.

It is slightly faster to be without that parmater and not to have if.
Well, sure, no code is faster than some code. :) I thought you meant there was some faster way to do that conditional statement...

--
James