Is there a "Hello World" or MVP of chess programming?

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

Moderator: Ras

jaroslav.tavgen
Posts: 12
Joined: Fri Oct 25, 2019 2:51 pm
Full name: Jaroslav Tavgen

Is there a "Hello World" or MVP of chess programming?

Post by jaroslav.tavgen »

I would like to ask, is there something like a "Hello World" or "Minimum Viable Product" for a chess engine programming? Something like a required minimum in order to create a decent chess program? Some kind of "required minimum" which would help me understand the essence of chess engine without diving into non-important details. Something like a XOR problem for neural networks?

The closest I have found is the Bluefever Software tutorial .

Is this really an MVP or it could be something different?

Thank you!
User avatar
towforce
Posts: 12260
Joined: Thu Mar 09, 2006 12:57 am
Location: Birmingham UK
Full name: Graham Laight

Re: Is there a "Hello World" or MVP of chess programming?

Post by towforce »

How about...

1. Able to generate legal moves from given position

2. Have a mechanism for evaluating resulting positions

3. Either have a way of inputting and outputting moves, or a way to connect to a chess UI
Want to attract exceptional people? Be exceptional.
User avatar
Brunetti
Posts: 421
Joined: Tue Dec 08, 2009 1:37 pm
Location: Milan, Italy
Full name: Alex Brunetti

Re: Is there a "Hello World" or MVP of chess programming?

Post by Brunetti »

towforce wrote: Tue Dec 24, 2024 11:40 pm 1. Able to generate legal moves from given position
2. Have a mechanism for evaluating resulting positions
3. Either have a way of inputting and outputting moves, or a way to connect to a chess UI
0. Define your data structures, how to represent the chessboard (e.g., arrays or bitboards), encode moves (including special ones), and how to store game state details like castling rights, en passant, and move counters.

Alex
User avatar
hgm
Posts: 28321
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Is there a "Hello World" or MVP of chess programming?

Post by hgm »

smatovic
Posts: 3169
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: Is there a "Hello World" or MVP of chess programming?

Post by smatovic »

hgm wrote: Wed Dec 25, 2024 7:24 amMicro-Max?
Would like to add:

- MSCP
- TSCP
- VICE

These are all educational engines IIRC.

--
Srdja
User avatar
flok
Posts: 553
Joined: Tue Jul 03, 2018 10:19 am
Full name: Folkert van Heusden

Re: Is there a "Hello World" or MVP of chess programming?

Post by flok »

smatovic wrote: Wed Dec 25, 2024 7:26 am
hgm wrote: Wed Dec 25, 2024 7:24 amMicro-Max?
Would like to add:

- MSCP
- TSCP
- VICE

These are all educational engines IIRC.

--
Srdja
Could not find the sourcecode of MSCP. Does anyone still have it?
smatovic
Posts: 3169
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: Is there a "Hello World" or MVP of chess programming?

Post by smatovic »

flok wrote: Wed Dec 25, 2024 10:06 am [...]
Could not find the sourcecode of MSCP. Does anyone still have it?
archive.org helps:

https://web.archive.org/web/20201106235 ... .net/mscp/
https://web.archive.org/web/20130525161 ... /download/

There was once a 1.6? Jim Ablett version with time control, dunno where that one is gone.

--
Srdja
User avatar
flok
Posts: 553
Joined: Tue Jul 03, 2018 10:19 am
Full name: Folkert van Heusden

Re: Is there a "Hello World" or MVP of chess programming?

Post by flok »

smatovic wrote: Wed Dec 25, 2024 10:25 am
flok wrote: Wed Dec 25, 2024 10:06 am [...]
Could not find the sourcecode of MSCP. Does anyone still have it?
archive.org helps:

https://web.archive.org/web/20201106235 ... .net/mscp/
https://web.archive.org/web/20130525161 ... /download/

There was once a 1.6? Jim Ablett version with time control, dunno where that one is gone.

--
Srdja
thanks!
jaroslav.tavgen
Posts: 12
Joined: Fri Oct 25, 2019 2:51 pm
Full name: Jaroslav Tavgen

Re: Is there a "Hello World" or MVP of chess programming?

Post by jaroslav.tavgen »

smatovic wrote: Wed Dec 25, 2024 7:26 am
hgm wrote: Wed Dec 25, 2024 7:24 amMicro-Max?
Would like to add:

- MSCP
- TSCP
- VICE

These are all educational engines IIRC.

--
Srdja
Thank you! I will google what do all those names mean:)

By MVP or "Hello World!" I meant chess engine that plays decently (at least 1800-2000 ELO). As I understand, Minimax is not enough. I wonder is Alpha-Beta Pruning could be enough or you also need to complement that technology with stuff like Quiescence and other.

Bluefever also introduced such things as Killer Moves, Principle Variation, Beta Cut-offs, moves that were evaluated during lower search depth. Is that an overkill (for a newbie) or all of these technologies are essential in order to make sure that your engine does not blunder every second move?
smatovic
Posts: 3169
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: Is there a "Hello World" or MVP of chess programming?

Post by smatovic »

jaroslav.tavgen wrote: Wed Dec 25, 2024 11:44 am [...]
These engines are all listed on CPW, take a look:

https://www.chessprogramming.org/

MSCP is rated ~1600 TSCP ~1700 are and Vice (C engine by BlueFeverSoft) ~2000 Elo points on CCRL.

https://computerchess.org.uk/ccrl/402.a ... t_all.html

--
Srdja