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.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.
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.