A complete 1200 lines of code engine (Dumb 1.4)

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

abulmo2
Posts: 469
Joined: Fri Dec 16, 2016 11:04 am
Location: France
Full name: Richard Delorme

Re: A complete 1200 lines of code engine (Dumb 1.9)

Post by abulmo2 »

Version 1.9 has been released on github. https://github.com/abulmo/Dumb/releases/tag/v1.9
A few bugs have been corrected (time loss using Fischer time control) and some enhancements.
Have fun with it...
Richard Delorme
User avatar
Gabor Szots
Posts: 1442
Joined: Sat Jul 21, 2018 7:43 am
Location: Budapest, Hungary
Full name: Gabor Szots

Re: A complete 1200 lines of code engine (Dumb 1.9)

Post by Gabor Szots »

abulmo2 wrote: Tue Mar 08, 2022 4:23 pm Version 1.9 has been released on github. https://github.com/abulmo/Dumb/releases/tag/v1.9
A few bugs have been corrected (time loss using Fischer time control) and some enhancements.
Have fun with it...
Thanks Richard.
Gabor Szots
CCRL testing group
User avatar
lithander
Posts: 915
Joined: Sun Dec 27, 2020 2:40 am
Location: Bremen, Germany
Full name: Thomas Jahn

Re: A complete 1200 lines of code engine (Dumb 1.4)

Post by lithander »

Dumber and Dumb have been sparring partners for my engine(s) since a long time now! Great ELO per line of code ratio! I have a lot of sympathy for that approach! :)
Minimal Chess (simple, open source, C#) - Youtube & Github
Leorik (competitive, in active development, C#) - Github & Lichess
User avatar
Gabor Szots
Posts: 1442
Joined: Sat Jul 21, 2018 7:43 am
Location: Budapest, Hungary
Full name: Gabor Szots

Re: A complete 1200 lines of code engine (Dumb 1.4)

Post by Gabor Szots »

lithander wrote: Tue Mar 08, 2022 10:11 pm Great ELO per line of code ratio!
Elo. Please.
Gabor Szots
CCRL testing group
dangi12012
Posts: 1062
Joined: Tue Apr 28, 2020 10:03 pm
Full name: Daniel Infuehr

Re: A complete 1200 lines of code engine (Dumb 1.4)

Post by dangi12012 »

Very cool!

I think if you replace AB by MCTS you could shave off a few hundred lines even. But if strength remains the same is unknown (probably weaker)
But you would not need a TT - because the tree stores its scores in each node.
So the whole of AB could be replaced by one struct + the core MCTS algorithm.
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
User avatar
hgm
Posts: 28354
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: A complete 1200 lines of code engine (Dumb 1.4)

Post by hgm »

An MCTS is a TT.
abulmo2
Posts: 469
Joined: Fri Dec 16, 2016 11:04 am
Location: France
Full name: Richard Delorme

Re: A complete 1200 lines of code engine (Dumb 2.0)

Post by abulmo2 »

I just release version 2.0 of Dumb on Github https://github.com/abulmo/Dumb/releases/tag/v2.0
Dumb 2.0 is about 70 Elo stronger than versions 1.9 - 1.11, but still simpler (1150 line of code instead of 1185) with more (but still too basic) comments.
Richard Delorme
User avatar
mclane
Posts: 18899
Joined: Thu Mar 09, 2006 6:40 pm
Location: US of Europe, germany
Full name: Thorsten Czub

Re: A complete 1200 lines of code engine (Dumb 1.4)

Post by mclane »

Can you compile it for commodore c64 ?!
What seems like a fairy tale today may be reality tomorrow.
Here we have a fairy tale of the day after tomorrow....
abulmo2
Posts: 469
Joined: Fri Dec 16, 2016 11:04 am
Location: France
Full name: Richard Delorme

Re: A complete 1200 lines of code engine (Dumb 1.4)

Post by abulmo2 »

mclane wrote: Wed Nov 29, 2023 6:27 pm Can you compile it for commodore c64 ?!
No. I do not think a D compiler can target this old computer.
Richard Delorme
JohnW
Posts: 402
Joined: Thu Nov 22, 2012 12:20 am
Location: New Hampshire

Re: A complete 1200 lines of code engine (Dumb 1.4)

Post by JohnW »

If you keep improving it and it keeps getting stronger will you change the name to Smart 1.0? :D