Search found 441 matches

by sje
Tue Feb 25, 2014 2:23 am
Forum: Programming Discussions
Topic: A billion random games
Replies: 9
Views: 10040

The program is now working on a ten billion game run which should take a total of about 23 days of single core CPU time. However, that may be too long of a run since the random number generator in use has a period of about 2^34 (ca. 34 billion). Each random game requires on average about 334 random ...
by sje
Sat Feb 22, 2014 5:12 pm
Forum: Programming Discussions
Topic: A billion random games
Replies: 9
Views: 10040

Re: Code snippets

We assumed that gmvec function is the set of ALL the legal moves computed from your chess engine. Then, instead of your engine calculating the relative strength of the legal moves, the RandomPick function selects one move from the set & assigns the vector to the variable "move". And h...
by sje
Thu Feb 20, 2014 11:46 am
Forum: Programming Discussions
Topic: A billion random games
Replies: 9
Views: 10040

Code snippets

PosTerm Position::CalcPosTerm(void) const { PosTerm posterm; if (HasNoMoves()) { if (inch) posterm = PosTermCheckmate; else posterm = PosTermStalemate; } else { if (IsDrawnFif...
by sje
Wed Feb 19, 2014 8:51 pm
Forum: Programming Discussions
Topic: A billion random games
Replies: 9
Views: 10040

A billion random games

If each move in a chess game is picked at random, how does the game end? After a billion random games: [] rg 1000000000 checkmate 153073649 0.153074 fiftymoves 193423592 0.193424 insufficient 567109826 0.56711 repetition 25189704 0.0251897 stalemate 61203229 0.0612032 Average ply len...
by sje
Sun Feb 09, 2014 2:43 am
Forum: Main Lobby / General Discussions
Topic: GAVON Portable Chess System
Replies: 12
Views: 9647

A few years ago I wrote a C++ chess program for small systems like the Audrino Mega (8 KB RAM). The program's name is "myopic" as it can't see very far. It can run on a Raspberry Pi, using about 0.2% of the available memory. Myopic needs a terminal console for an interface, but this could ...
by sje
Sun Feb 09, 2014 12:58 am
Forum: Main Lobby / General Discussions
Topic: GAVON Portable Chess System
Replies: 12
Views: 9647

If a Debian version of Linux (like Raspbian) is running on a Raspberry Pi connected to the Internet, only a single line entered at a text console instance is needed to install Stockfish: sudo apt-get install stockfish The same is true of most other chess software residing in the Debian package world.
by sje
Sat Feb 08, 2014 9:44 pm
Forum: Main Lobby / General Discussions
Topic: GAVON Portable Chess System
Replies: 12
Views: 9647

I'll mention that the name "Gavon" is the reverse spelling of "Novag" although most readers here likely already noticed that. The Broadcom ARM CPU in the US$35 Raspberry Pi runs at 700 MHz and can usually be overclocked to 800 MHz to match the performance of the 808 MHz ARM CPU i...
by sje
Sat Feb 01, 2014 11:12 pm
Forum: Main Lobby / General Discussions
Topic: Comments on the Revelation II dedicated chess computer
Replies: 496
Views: 132983

Instead of buying a Revelation II, I'll make my own Revolution I. I'll use my DGT board, its DGT pieces, a cheap Android tablet, some connection circuitry, and some of my own chess software with voice I/O. All the custom stuff will go in a separate wood box which will connect to the board with a co...
by sje
Sat Feb 01, 2014 4:28 am
Forum: Main Lobby / General Discussions
Topic: New robotic arm offering
Replies: 2
Views: 1452

Grippers

The robot arm can use one of several different grippers. Those seen in the above photograph aren't suitable for moving a chessman, so a different and possibly custom gripper is needed. The gripper in the furthest arm uses a suction cup instead of a pincer. It could work with a set of chessmen if eac...
by sje
Tue Jan 28, 2014 7:41 pm
Forum: Programming Discussions
Topic: Chess on the Raspberry Pi
Replies: 1
Views: 6140

Raspberry Pi (700 MHz) calculating perft(9) with transposition assistance and bulk counting (18 hr 23 min): [] pctran 9 PathTran(9): 2,439,530,234,167 Pt: 1:05:24.990 Wt: 18:23:17.651 36.8522 MHz 27.1354 ns Total...
by sje
Thu Jan 23, 2014 11:45 pm
Forum: Programming Discussions
Topic: Chess on the Raspberry Pi
Replies: 1
Views: 6140

Chess on the Raspberry Pi

This is a topic thread for Raspberry PI chess work. https://dl.dropboxusercontent.com/u/31633927/Pics/raspberrypi.jpg I have ported the development version of Symbolic to my Raspberry Pi board. I've overclocked the board from 700 MHZ to 800 MHz and many long tests have shown this speed-up to fully r...
by sje
Thu Jan 23, 2014 11:24 pm
Forum: Main Lobby / General Discussions
Topic: New robotic arm offering
Replies: 2
Views: 1452

New robotic arm offering

See http://www.kickstarter.com/projects/ufactory/uarm-put-a-miniature-industrial-robot-arm-on-your https://dl.dropboxusercontent.com/u/31633927/Pics/arm0.jpg A kit for the arm is about US$300 in price. Material choices are white/black acrylic and laser-cut wood. The arm can lift a 450 gram beverage ...
by sje
Sun Jan 12, 2014 7:40 pm
Forum: Programming Discussions
Topic: DGT board C++ interface project
Replies: 53
Views: 54453

shiv wrote:How do I perform a tablebase position in Linux or Mac OS? It looks like gaviota API can help. I still feel this is a lot of work to do a TB lookup, but perhaps such is life.
I have no idea. I am not the person to ask.
by sje
Sun Jan 12, 2014 12:58 am
Forum: Programming Discussions
Topic: DGT board C++ interface project
Replies: 53
Views: 54453

shiv wrote:On tablebases, is there a simple way to query tablebases and show tablebase moves in an understandable form to humans?
At present, I seriously doubt if I will be doing any more public tablebase stuff this year, if ever. Maybe someone else can help.
by sje
Sat Jan 11, 2014 9:21 am
Forum: Programming Discussions
Topic: DGT board C++ interface project
Replies: 53
Views: 54453

The network connectivity problem has been solved by a cable swap (which probably didn't do anything) and by swapping out the Onn mouse for a mouse by Acer. Now my RaspPi can get the correct date/time automatically when it boots and I can get updates installed (rather slowly). I did not have to add a...