BASIC Chess (UCI engine based on Dean Menezes QBASIC chess program)

User projects written in or related to FreeBASIC.
grindstone
Posts: 862
Joined: May 05, 2015 5:35
Location: Germany

Re: BASIC Chess (UCI engine based on Dean Menezes QBASIC chess program)

Post by grindstone »

Roland Chastain wrote:For the conversion to FEN strings, and things like that, I think it is the job of a chess program.
Are you sure? Correct me if I'm wrong, but AFAIK the UCI protocol doesn't support the PGN moveslist format.

And converting is not that trivial: To convert something like "e4" or "Qf3" you need
  • - A list of legal moves from the current board setup
    - look which of that moves end up at the listed field
    - if it's ambiguous (more than one move): look which of the source fieldes contains the listed kind of piece
For a complete moves list you have to traverse the whole match.
Roland Chastain
Posts: 993
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Re: BASIC Chess (UCI engine based on Dean Menezes QBASIC chess program)

Post by Roland Chastain »

@grindstone

We are saying the same thing. :)

The PGN parser won't be used by the chess engine, but by the GUI, to load and save games. The GUI will be able to translate "e4" to "e2e4".

When I say "PGN parser", I don't think of an application, but of a library used by an application.
grindstone
Posts: 862
Joined: May 05, 2015 5:35
Location: Germany

Re: BASIC Chess (UCI engine based on Dean Menezes QBASIC chess program)

Post by grindstone »

Alright :-)
Luis Babboni
Posts: 375
Joined: Mar 15, 2015 12:41

Re: BASIC Chess (UCI engine based on Dean Menezes QBASIC chess program)

Post by Luis Babboni »

Roland Chastain wrote:
Luis Babboni wrote:I found that using 80/1 time mode, both engines uses near the same amount of time.
Here 10 games:
Very interesting, thank you. I watched the first game. It was funny (the absurd king moves). I saw that all games are lost on illegal move. With your data it will be easier to find the bug.

By the way, it would be great if someone would write a PGN parser in FreeBASIC. :)
Here is pgn2fen:
https://github.com/nivyatech/pgn2fen
Make a list of FENs starting from PGN file.
Luis Babboni
Posts: 375
Joined: Mar 15, 2015 12:41

Re: BASIC Chess (UCI engine based on Dean Menezes QBASIC chess program)

Post by Luis Babboni »

BasicCoder2 wrote:Have you seen this one? Found it in my CHESS folders but can't remember where it came from.
I started adding a simple GUI interface to the code and will post if I complete it...
I take a look, it seems a very complete engine!!!
I still could not understand how to use it.
Any idea about the author?
It seems could be a good engine if it have a WB or UCI interface protocol!
Roland Chastain
Posts: 993
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Re: BASIC Chess (UCI engine based on Dean Menezes QBASIC chess program)

Post by Roland Chastain »

Hello! Made a correction to prevent the engine from being in check after its move. I hope it solves the problem.

Download BASIC Chess (source code and Win32 binary)

I played some moves versus the new engine. The PGN file is in the package. It seems to me that the engine play pretty good moves (but you have to know that I am a weak chess player).

By the way, I made a demo PGN parser using regular expressions.
Luis Babboni
Posts: 375
Joined: Mar 15, 2015 12:41

Re: BASIC Chess (UCI engine based on Dean Menezes QBASIC chess program)

Post by Luis Babboni »

Roland, may be you could join this forum: http://talkchess.com/forum/index.php
Is where most of the actual chess engines makers share theire knowledge and helps people too to make theire own engines.
Post Reply