jromang2
Posts: 13
Joined: Sun Aug 26, 2012 10:20 am

Raspberry Pi dedicated chess computer/board

Sun Aug 26, 2012 10:31 am

Presentation of the PiChess (http://www.pichess.org) project :

The goal the this project is to created a dedicated chess computer based on the Raspberry Pi, the Stockfish chess engine (http://www.stockfishchess.com/), the DGT eboard en DGT XL Clock (http://www.dgtprojects.com/), and the dgtnix driver (http://dgtnix.sourceforge.net/).

You can see a video here : http://www.dailymotion.com/video/xt2eul_pichess_tech :D

Image

Playing strength

This will be one of the strongest dedicated chess computer on the world :-) My initial testing on Rasperry Pi hardware versus a 4 core Intel i7 show we have grandmaster strength :) (http://lefounumerique.xooit.com/t1202-S ... rry-Pi.htm)

Engine Score St
1: Stockfish on Pi 40,0/100 ····················
2: Komodo3-64-sse 20,0/20 11111111111111111111
3: Pharaon 14,0/20 =1=1=101=110==110111
4: AnMon 5.75 11,0/20 ==1=1110=010==011001
5: SOS 5.1 for Arena 10,5/20 10001=10100111=001=1
6: Gaia64 4,5/20 00100100010=00000100

100 games played / Tournament is finished - Level: Blitz 2/1 - Hardware: Intel(R) Core(TM) i5-2405S CPU @ 2.50GHz with 8,0 GB Memory

TODO

Add opening books, and allow opening book selection
Save games to PGN on the SD Card
Add more time controls, and display remaining time on the clock
Allow to takeback moves
Analysis mode

Help needed : SD card packaging

I would like to provide a Raspbian based sd card image that loads stockfish at boot time.

Help needed : logo / documentation

If you have some graphic/english skills, I would like to provide a simple PDF sheet that explains how to use the board and the config modes.

I would like to use this forum topic as the official PiChess forum ;)

pygmy_giant
Posts: 1562
Joined: Sun Mar 04, 2012 12:49 am

Re: Raspberry Pi dedicated chess computer/board

Sun Aug 26, 2012 7:57 pm

Hi - I have some design experience - I have produced logos / flyers / posters / publications for a charity and also a website / logo for a shop in town - I would be happy to create a logo / instructions for you just for fun and to add to my portfolio if you still need help...

jromang2
Posts: 13
Joined: Sun Aug 26, 2012 10:20 am

Re: Raspberry Pi dedicated chess computer/board

Sun Aug 26, 2012 8:11 pm

Thanks pygmy_giant : I still need help ;) If you have to time to create a logo, that would be nice : I'll use it for the Wiki and the instruction sheet. I will make an instruction draft on LibreOffice, so you could have a look at it.
I'm not fixed about the final name 'PiChess' or 'PicoChess' ; the second one sounds nicer.

pygmy_giant
Posts: 1562
Joined: Sun Mar 04, 2012 12:49 am

Re: Raspberry Pi dedicated chess computer/board

Mon Aug 27, 2012 10:46 pm

ok - I'm on it... watch this space....

jromang2
Posts: 13
Joined: Sun Aug 26, 2012 10:20 am

Re: Raspberry Pi dedicated chess computer/board

Tue Aug 28, 2012 5:08 pm

Finally I switched the name to PicoChess.
It now runs on a 802MK II, I hope the Pi USB bug will be solved soon :)
http://www.dailymotion.com/video/xt4b85_pichess2_tech

pygmy_giant
Posts: 1562
Joined: Sun Mar 04, 2012 12:49 am

Re: Raspberry Pi dedicated chess computer/board

Tue Aug 28, 2012 9:51 pm

yes - hopefully - would it be much more powerful than the 802MK II ARM computer ?

jromang2
Posts: 13
Joined: Sun Aug 26, 2012 10:20 am

Re: Raspberry Pi dedicated chess computer/board

Wed Aug 29, 2012 5:37 am

It runs 5 times faster on the 802MK II ; but the Raspberry Pi version should be largely enough to beat 99% of the human players :D

pygmy_giant
Posts: 1562
Joined: Sun Mar 04, 2012 12:49 am

Re: Raspberry Pi dedicated chess computer/board

Wed Aug 29, 2012 8:20 pm

I am impressed with the 802MK II - twice the cost of the Pi but case included and 4xRAM + better performance - no GPIO, but USB expander boards probably available.

Perhaps I could hide the display under the table and also beat 99% of human players....

I am confused about the USB problem, all I know from experience is that my keyboard and mouse work.

Guess other devices struggle - have you tried with the firmware updated to the latest version? I think I also remember seeing some work-arounds on another thread but don't really understand them...

Here is my first stab at a logo:

Image

Is this kind of thing suitable? If so I could develop it further ...

Good work with the porting by the way - I would be interested to see this software playing other computers as well as humans...

jromang2
Posts: 13
Joined: Sun Aug 26, 2012 10:20 am

Re: Raspberry Pi dedicated chess computer/board

Wed Aug 29, 2012 9:39 pm

Wow this is very nice :D Thanks !
Could you provide a svg version ? I really like it :) Maybe you could try a different font if you have time ?
If you want to test your raspberry against other computers or yourself, I followed this :
http://www.playwitharena.com/?Tips_%2B_ ... and_Arena.
and it worked very well :-)
For the USB problem, I'm not skilled engouth to solve it myself ; I tried the latest kernel/firmware but it didn't work :| I'm still making progress on PicoChess, there are new features : http://www.picochess.org

pygmy_giant
Posts: 1562
Joined: Sun Mar 04, 2012 12:49 am

Re: Raspberry Pi dedicated chess computer/board

Wed Aug 29, 2012 9:55 pm

Glad you like it - I'll tweak it and PM you a link to download the logo in a variaty of formats / font styles / colours and sizes.

I haven't played chess for years and was never very good but did enjoy it and find it a fascinating intellectual challenge.

I used to have a chess buddy in the block of flats I used to live in - he was good as he used to play it alot when he was in prison. He always beat me except for the last game we played in which I managed to force a stalemate. I never saw him after that as he got arrested for stealing an articulated lorry full of wines and spirits at Christmas time. I expect he's even better now.

Wouldn't it be fantastic if this could be connected to a robot arm to move the pieces....(!)

jromang2
Posts: 13
Joined: Sun Aug 26, 2012 10:20 am

Re: Raspberry Pi dedicated chess computer/board

Thu Aug 30, 2012 9:14 am

I made your logo online on the new website : http://www.picochess.org It would be prettier with a transparent backgroud ;)
I'm not very good at chess too...but I programmed a chess engine (http://gaiachess.free.fr). Hopefully, I will train and play more with PicoChess now : the first levels are not too strong. If your friend spends time training, he is surely better now !
Connecting to a robot arm would be very nice of course ; but I don't have engouth spare time to do this :mrgreen:

pygmy_giant
Posts: 1562
Joined: Sun Mar 04, 2012 12:49 am

Re: Raspberry Pi dedicated chess computer/board

Thu Aug 30, 2012 12:33 pm

Looks good - thanks for the credit at the end but the logo doesn't show in ie.

I will try and send you files with a transparent background and complimentary colours either today or tomorrow... I would recommend a .png file as I believe some browsers still struggle with svg.

Do you know the name of the font used in your theme?

Your English is nice and clear but TODO should be 'To do'.

I am intrigued by the table - would it be possible to explain the notation or link to an explanation for non-enthusiasts?

I'm impressed that you have written a chess engine.

Looks good - the Foundation needs to fix the USB bug before they can release the model A for the educational market so hopefully shouldn't be too long...

jromang2
Posts: 13
Joined: Sun Aug 26, 2012 10:20 am

Re: Raspberry Pi dedicated chess computer/board

Thu Aug 30, 2012 12:50 pm

I did'nt notice it does not show in ie :?
According to the css file the font should be "font: 14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;" ; but I'm not sure :D

jromang2
Posts: 13
Joined: Sun Aug 26, 2012 10:20 am

Re: Raspberry Pi dedicated chess computer/board

Thu Aug 30, 2012 12:55 pm

I just copied/pasted the table form my chess software (Arena) ; you should read it line by line. For exemple, it means that Pharaon (on core i7) has won 14 games out of 20 against Stockfish (on raspberry pi).

pygmy_giant
Posts: 1562
Joined: Sun Mar 04, 2012 12:49 am

Re: Raspberry Pi dedicated chess computer/board

Thu Aug 30, 2012 9:59 pm

Hi

I will use 'Helvetica Neue' in the logo as it is a nice font and will match the rest of your website. I expect to forward the finished logo to you Friday evening / Saturday...

Thanks for explaining the table - I'm guessing 'St' in the table means 'Strength' and that '1' is a win, '0' is a lost game and '=' is a stalemate - I think you have put '......' in the top line because 100 gam results wont all fit in...? As a bit of feedback, my inclination would be to represent the data as follows:

Below are the match results of various platform / engine combos against Stockfish set at 'Blitz 2/1' level running on an Intel(R) Core(TM) i5-2405S CPU @ 2.50GHz with 8,0 GB memory:

Engine (platform)..................................Games played..............Won.............Drew...........Lost

Stockfish (on Pi)....................................100.................................?30?...........?10?...........?60?
Komodo3-64-sse (4 core Intel i7)........20...................................20................0..................0
Pharaon (4 core Intel i7)........................20...................................11................6..................3
...etc...

As those unfamiliar with Arena might not understand the layout

jromang2
Posts: 13
Joined: Sun Aug 26, 2012 10:20 am

Re: Raspberry Pi dedicated chess computer/board

Fri Aug 31, 2012 8:38 pm

I just released the first version of PicoChess (v0.1) for MK802II ARM devices.
It's and image file that you need to put on a 8GB micro sd card ; instruction and download link are on the website (http://www.picochess.org).

4 opening books by Gabriel Leperlier are included, you can choose skill level and thinking, and taking back moves is supported.

I hope it will run on Raspberry Pi soon ;)

pygmy_giant
Posts: 1562
Joined: Sun Mar 04, 2012 12:49 am

Re: Raspberry Pi dedicated chess computer/board

Sun Sep 02, 2012 11:16 pm

Hi again

I have been reading this thread: http://www.raspberrypi.org/phpBB3/viewt ... ked+by+liz for clues about the USB problem to guage progress on the USB bug fix and ascertained the following:.

The Pi is limited in the ammount of power it allows through the USB. As an example, my 3g mobile broadband dongle will only work via a powered hub as it needs more power than the Pi can supply, so maybe a powered hub could help you?

A remedy i've seen suggested for the driver problems is to add:

dwc_otg.microframe_schedule=1 sdhci-bcm2708.enable_llm=1 sdhci-bcm2708.sync_after_dma=0 sdhci-bcm2708.sync_after_dma=0 dwc_otg.fiq_fix_enable=1

to the end of /boot/cmdline.txt (with no newlines)

and to do

sudo rpi-update

to update the drivers (requires rpi-update from https://github.com/Hexxeh/rpi-update )

Entering:

uname -a

should indicate that you have the latest version by returning "Linux raspi 3.2.27+ #66 PREEMPT Fri Aug 24 23:52:42 BST 2012 armv6l GNU/Linux" (at the time of writing)

The USB drivers were last updated mid August and some people have found their devices to have started working since then by following these steps.

Don't know if this is of any use to you? If not it seems like progress is being made...
Ostendo ignarus addo scientia.

pygmy_giant
Posts: 1562
Joined: Sun Mar 04, 2012 12:49 am

Re: Raspberry Pi dedicated chess computer/board

Tue Sep 04, 2012 12:58 pm

Looks like there was another firmware upgrade today .... ?
Ostendo ignarus addo scientia.


jromang2
Posts: 13
Joined: Sun Aug 26, 2012 10:20 am

Re: Raspberry Pi dedicated chess computer/board

Tue Sep 25, 2012 7:10 pm

Finally it works on Raspberry Pi :D
More info and download link : http://www.picochess.org

jromang2
Posts: 13
Joined: Sun Aug 26, 2012 10:20 am

Re: Raspberry Pi dedicated chess computer/board

Wed Oct 10, 2012 4:53 pm

Image

A picture of picochess runiing on raspberry pi :D

maxchess42
Posts: 14
Joined: Thu May 23, 2013 1:11 pm
Location: Guildford, UK
Contact: Website

Re: Raspberry Pi dedicated chess computer/board

Thu May 23, 2013 1:18 pm

This is a really neat project, however not everyone can afford a DGT board.
I was a able to build a fully working chess computer that recognises piece positions using reed switches and signals its move using a LED on each square for about £80, plus a bit of hard coding and amateur woodwork.

It runs from an Arduino which controls the board, connected to a Raspberry PI which runs the chess engine Stockfish and a chess rules library called Chessboard. It is completely self contained, just plug it in, press the green button and you are playing.

see: http://www.chess.fortherapy.co.uk for more info.

In pay, I can change the levels and Stockfish offers a strength of around ELO 2700.
You can also load in a polgot opening book.
Pi A's, Bs, 2s, 3s & zeros 's in Birdboxes, Chess Sets, games, RuneAudio servers Arduinos everywhere else

See: http://www.chess.fortherapy.co.uk\

gsgs
Posts: 134
Joined: Sun Dec 13, 2015 6:48 pm
Location: Germany
Contact: Website

Re: Raspberry Pi dedicated chess computer/board

Thu Jan 28, 2016 9:27 am

> I would like to provide a Raspbian based sd card image that loads stockfish at boot time
> I switched the name to PicoChess.
> http://www.dailymotion.com/video/xt4b85_pichess2_tech
> 2012/08/31 , It's and image file that you need to put on a 8GB micro sd card ; instruction and
> download link are on the website (http://www.picochess.org).
> https://github.com/raspberrypi/firmware/issues/88
> Finally it works on Raspberry Pi
> More info and download link : http://www.picochess.org
> Stockfish offers a strength of around ELO 2700.
> picochess mailing list : https://groups.google.com/forum/#!forum/picochess
> 1.Stockfish 7 (2972) raspberry pi 2 [better than the world champion]
> 19.Jan 2016


I'd like a card, that boots on pi2b and analyzes a specified position
in an edited file on that card for a specified time and writes the
result back to the card.
no keyboard,mouse,TV needed
Also analyse a game: write the k best moves at each position in the game
with score to a file. Running for some days or such.
(As for former correspondence chess)

-----------edit-----------
> Picochess is the strongest on the O-Droidx (4 core ARM processor).
4cores instead of one gives ~100 Elo-points
Last edited by gsgs on Thu Jan 28, 2016 9:52 am, edited 1 time in total.

User avatar
rpdom
Posts: 17216
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Raspberry Pi dedicated chess computer/board

Thu Jan 28, 2016 9:33 am

gsgs wrote:I'd like a card, that boots on pi2b and analyzes a specified position
in an edited file on that card for a specified time and writes the
result back to the card.
no keyboard,mouse,TV needed
Also analyse a game: write the k best moves at each position in the game
with score to a file. Running for some days or such.
(As for former correspondence chess)
And a pony, preferably a Chess Nut ;)

That thread was resting in piece, and you had to go wake it... next time, please check, mate :lol:

gsgs
Posts: 134
Joined: Sun Dec 13, 2015 6:48 pm
Location: Germany
Contact: Website

Re: Raspberry Pi dedicated chess computer/board

Thu Jan 28, 2016 9:56 am

waking is good ?!

Return to “Gaming”