Myopic, a new Creative Commons chess program

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

Re: Myopic, a new Creative Commons chess program

Post by sje »

Dann Corbit wrote:My wife is in a simlar sore strait. She has an enlarged heart, heart rhythm problems, diabetes, neuropathy, and various other ailments.

I do realize that it can make the simplest operations of every day life very difficult.
My sympathy for your wife; I also have diabetes and its associated neuropathy. My attempts to control the neuropathy with gabapentin worked on the pain but led in part to kidney failure onset. I'm still not at the point of needed regular dialysis and that's good because I certainly don't have the courage like what I've seen from those who are on the machines every week, twice a week.

I took another look at Myopic to see what I had done and I noted a few things:

1) The text strings are easily localizable to any language with an eight bit character set. This was really an accident driven by the need to store C++ literals in the memory constraints of the Arduino Mega.

2) Of the 128 KB Flash memory available on the Mega, Myopic uses 32 KB for its opening book. The limit comes from using 16 bit signed indexing. The book is made out of 4,095 eight byte records; each record has a five byte position hash (taken from an calculated eight byte hash), a one byte popularity fraction (compared for moves from the same position), and a two byte move encoding.

3) The book moves selected have nothing to do with game results, but rather on how often the position/move pairs appeared in play. The input PGN file had close to three million games. Myopic's book maker code may actually be worth reading.

4) A lot of space-for-speed trade-offs were made where a table look-up is used instead of a calculation. However, the calculation code is still there if someone wanted to undo the trades. This could be useful if program memory space needed to be freed to allow for move chess search and evaluation code.

5) An interrupt will halt the calculation in progress without quitting the program or losing data. On an Arduino Mega which has no keyboard and so no control-C, the interrupt is realized by an optional push button and some wire.
supersharp77
Posts: 1247
Joined: Sat Jul 05, 2014 7:54 am
Location: Southwest USA

Re: Myopic, chess engine w32...w64 compiles?

Post by supersharp77 »

sje wrote:I have written a new chess program and have released the C++ source under a Creative Commons license. The name of the program is "Myopic" (I. e.; "short-sighted") and it has been designed for the Arduino Mega microcontroller platform (128 KB ROM / 8 KB RAM). The program is written entirely in ANSI C++ and will run not only on an Arduino Mega, but also under Mac OS/X or Linux.

The code still needs some work, particularly with positional evaluation.

See: http://public.me.com/chessnotation (directory: myopic)

http://www.facebook.com/profile.php?id=100001111380541
Anyone ever test this engine? how strong was it? Noticed a OSX compile at a Mac chess engine download site....is w32 possible? Thx AR :) :wink:
PK
Posts: 895
Joined: Mon Jan 15, 2007 11:23 am
Location: Warsza

Re: Myopic, chess engine w32...w64 compiles?

Post by PK »

Is Myopic still downloadable? The old link asks me for an Apple ID
User avatar
Guenther
Posts: 4622
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Myopic, chess engine w32...w64 compiles?

Post by Guenther »

supersharp77 wrote: Anyone ever test this engine? how strong was it? Noticed a OSX compile at a Mac chess engine download site....is w32 possible? Thx AR :) :wink:
Since it was neither XB nor UCI it could not be tested automatically.
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Re: Myopic, chess engine w32...w64 compiles?

Post by sje »

supersharp77
Posts: 1247
Joined: Sat Jul 05, 2014 7:54 am
Location: Southwest USA

Re: Myopic, chess engine w32...w64 compiles?

Post by supersharp77 »

Guenther wrote: Thu May 12, 2016 10:43 am
supersharp77 wrote: Anyone ever test this engine? how strong was it? Noticed a OSX compile at a Mac chess engine download site....is w32 possible? Thx AR :) :wink:
Since it was neither XB nor UCI it could not be tested automatically.
PK wrote: Thu May 12, 2016 10:26 am Is Myopic still downloadable?? The old link asks me for an Apple ID
A recent link shows Myopic for mac but what happened to Myopic for windows? Let us know Thx AR :) :wink:

http://julien.marcel.free.fr/macchess/C ... gines.html
Dann Corbit
Posts: 12564
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Myopic, a new Creative Commons chess program

Post by Dann Corbit »

The mac link for Myopic includes the source code.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
Gerd Isenberg
Posts: 2250
Joined: Wed Mar 08, 2006 8:47 pm
Location: Hattingen, Germany

Re: Myopic, a new Creative Commons chess program

Post by Gerd Isenberg »

Dann Corbit wrote: Thu Oct 29, 2020 1:44 am The mac link for Myopic includes the source code.
CPW has the sources as well:
https://www.chessprogramming.org/Myopic
https://www.chessprogramming.org/File:Myopic.tar
User avatar
mvanthoor
Posts: 1784
Joined: Wed Jul 03, 2019 4:42 pm
Location: Netherlands
Full name: Marcel Vanthoor

Re: Myopic, a new Creative Commons chess program

Post by mvanthoor »

Hi :) I hope everything's better now. Congrats on writing the engine.

Does it have anything to do with this engine also called Myopic? ( https://www.chessprogramming.org/Myopic ) I know I read or heard the name somewhere before. If it doesn't, you might want to change the name, or differentiate it somehow, to avoid confusion.
Author of Rustic, an engine written in Rust.
Releases | Code | Docs | Progress | CCRL
User avatar
Guenther
Posts: 4622
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Myopic, a new Creative Commons chess program

Post by Guenther »

mvanthoor wrote: Thu Oct 29, 2020 11:28 am Hi :) I hope everything's better now. Congrats on writing the engine.

Does it have anything to do with this engine also called Myopic? ( https://www.chessprogramming.org/Myopic ) I know I read or heard the name somewhere before. If it doesn't, you might want to change the name, or differentiate it somehow, to avoid confusion.
Hi Marcel, I regret to tell you that replied to a very old original post and the well-known author of Myopic (which was just a little side project),
beneath his long time later work on 'Symbolic', already died in 2016 :(

Steven Edwards also created his own tablebases already in the early nineties - still have a copy of them here - and often reported back about Symbolic high perft results for many years. Finally he was still calculating on perft (14)!

A lot of other info about him also in the CPW:
https://www.chessprogramming.org/Steven_Edwards
https://rwbc-chess.de

trollwatch:
Talkchess nowadays is a joke - it is full of trolls/idiots/people stuck in the pleistocene > 80% of the posts fall into this category...