The first implementation is done. After importing two UCI engines, a match of ten games is played using random openings from the built-in book allocating a fixed time per move (set through the "Level"). All games are saved in a "match.pgn" file, which can be imported in any other chess program, such as Arena. Some screenshots and the PGN of a fast match between BikJump and GNUChess are attached (storing more evaluation information in the PGN is still to-be-done). I hope to release this full feature sometimes early in January.thorstenczub wrote:can you save the search depth, eval and main line optional in the PGN as {} comments
Chess for Android with UCI support released
- AartBik
- Posts: 145
- Joined: Tue Jun 15, 2010 9:39 pm
- Real Name: Aart Bik
- Location: Mountain View, CA
- Contact:
Re: Chess for Android with UCI support released
- Attachments
-
- match.pgn
- (13.26 KiB) Downloaded 501 times
- AartBik
- Posts: 145
- Joined: Tue Jun 15, 2010 9:39 pm
- Real Name: Aart Bik
- Location: Mountain View, CA
- Contact:
Re: Chess for Android with UCI support released
As another experiment with my prototype code, here is the cross-table for a full one second per move tournament for various UCI engines compiled "natively" for Android. The PGN for all matches is attached.
++ ZCT replies immediately on "movetime" commands, explaining its poor performance in this tournament
Code: Select all
1 2 3 4 5
1 Stockfish 1.9 ********** 11½0100101 111111½111 1111111111 1111111111 35.0/40
2 Crab 1.0 beta 00½1011010 ********** 111½1½1111 1111111111 1111111111 33.5/40
3 GNU Chess 5.07 000000½000 000½0½0000 ********** ½½11111110 1111111111 19.5/40
4 BikJump v2.1P 0000000000 0000000000 ½½00000001 ********** 1111111111 12.0/40
5 ZCT-0.3.2500 0000000000 0000000000 0000000000 0000000000 ********** 0.0/40 (++)
- Attachments
-
- match.pgn
- (85.82 KiB) Downloaded 463 times
- thorstenczub
- Posts: 593
- Joined: Wed Jun 09, 2010 12:51 pm
- Real Name: Thorsten Czub
- Location: United States of Europe, germany, NRW, Lünen
- Contact:
Re: Chess for Android with UCI support released
that looks very good aart.
- AartBik
- Posts: 145
- Joined: Tue Jun 15, 2010 9:39 pm
- Real Name: Aart Bik
- Location: Mountain View, CA
- Contact:
Re: Chess for Android with UCI support released
I have added the ability to annotate the PGN with engine analysis information. See below for a screenshot in Arena.
A happy 2011 everyone!
A happy 2011 everyone!
- thorstenczub
- Posts: 593
- Joined: Wed Jun 09, 2010 12:51 pm
- Real Name: Thorsten Czub
- Location: United States of Europe, germany, NRW, Lünen
- Contact:
Re: Chess for Android with UCI support released
yes. happy new year. to all the computerchess people all over the world....
- AartBik
- Posts: 145
- Joined: Tue Jun 15, 2010 9:39 pm
- Real Name: Aart Bik
- Location: Mountain View, CA
- Contact:
Re: Chess for Android with UCI support released
I made the PGN output "more" standard compliant using SAN and a few other changes. I now also annotate each move with search depth, score, expected reply if a principal variation is available, and the taken time in seconds. I am using my own annotation format to avoid misinterpretation in other chess programs (as could be seen in the previous Arena screenshot), but the format can easily change if required. A sample game between the built-in engine and stockfish is shown below (as can be seen, the forum formatter fully accepts the PGN output).
[Event "Chess for Android Match"]
[Date "2011.01.02"]
[Round "1"]
[TimeControl "1/1"]
[White "Chess for Android Engine"]
[Black "Stockfish 1.9"]
[Result "0-1"]
[PlyCount "48"]
1. e4 {[opening] 0.009} e5 {[opening] 0.001}
2. Nf3 {[opening] 0.021} Nc6 {[opening] 0.066}
3. Bc4 {[opening] 0.002} Nf6 {[opening] 0.002}
4. Ng5 {[opening] 0.001} d5 {[opening] 0.023}
5. Bxd5 {[5/9]6 1.145} Nxd5 {[10]355/d2d3 1.834}
6. exd5 {[4/9]6 1.188} Qxg5 {[11]375/d5c6 2.096}
7. dxc6 {[4/9]-94 1.271} Qxg2 {[12]404/h1f1 1.924}
8. Rf1 {[4/8]-474 1.124} Bh3 {[11]351/d1e2 1.474}
9. Qe2 {[5/10]-311 1.192} bxc6 {[12]379/d2d3 1.741}
10. Nc3 {[4/9]-307 1.151} Be7 {[11]436/c3e4 1.208}
11. Ne4 {[4/9]-316 1.242} f5 {[10]537/e4g3 1.968}
12. Ng3 {[4/9]-191 1.328} f4 {[10]529/g3e4 1.201}
13. Nh5 {[4/9]-329 1.294} g6 {[10]674/d2d4 1.67}
14. Ng7+ {[4/9]-390 1.398} Kf7 {[11]763/b2b3 1.62}
15. Ne8 {[4/9]-515 1.252} Rhxe8 {[9]965/e2c4 1.203}
16. a4 {[5/9]-623 1.103} Rad8 {[10]1062/b2b3 1.29}
17. a5 {[4/9]-724 1.146} Bh4 {[11]1377/e1d1 1.793}
18. a6 {[4/10]-703 1.115} Bg4 {[10]1640/e2c4 1.48}
19. Qc4+ {[4/9]-495 1.442} Kg7 {[13]1749/d2d3 1.692}
20. b4 {[4/9]-1151 1.215} Rd4 {[10]mate6/d2d3 1.237}
21. d3 {[4/9]-1143 1.156} Qf3 {[13]mate5/c4g8 1.465}
22. Kd2 {black mates in #3 1.182} Rxc4 {[49]mate3/d3c4 1.59}
23. dxc4 {black mates in #2 0.091} Rd8+ {[100]mate2/d2e1 0.542}
24. Ke1 {black mates in #1 0.003} Rd1+ 0-1
[Event "Chess for Android Match"]
[Date "2011.01.02"]
[Round "1"]
[TimeControl "1/1"]
[White "Chess for Android Engine"]
[Black "Stockfish 1.9"]
[Result "0-1"]
[PlyCount "48"]
1. e4 {[opening] 0.009} e5 {[opening] 0.001}
2. Nf3 {[opening] 0.021} Nc6 {[opening] 0.066}
3. Bc4 {[opening] 0.002} Nf6 {[opening] 0.002}
4. Ng5 {[opening] 0.001} d5 {[opening] 0.023}
5. Bxd5 {[5/9]6 1.145} Nxd5 {[10]355/d2d3 1.834}
6. exd5 {[4/9]6 1.188} Qxg5 {[11]375/d5c6 2.096}
7. dxc6 {[4/9]-94 1.271} Qxg2 {[12]404/h1f1 1.924}
8. Rf1 {[4/8]-474 1.124} Bh3 {[11]351/d1e2 1.474}
9. Qe2 {[5/10]-311 1.192} bxc6 {[12]379/d2d3 1.741}
10. Nc3 {[4/9]-307 1.151} Be7 {[11]436/c3e4 1.208}
11. Ne4 {[4/9]-316 1.242} f5 {[10]537/e4g3 1.968}
12. Ng3 {[4/9]-191 1.328} f4 {[10]529/g3e4 1.201}
13. Nh5 {[4/9]-329 1.294} g6 {[10]674/d2d4 1.67}
14. Ng7+ {[4/9]-390 1.398} Kf7 {[11]763/b2b3 1.62}
15. Ne8 {[4/9]-515 1.252} Rhxe8 {[9]965/e2c4 1.203}
16. a4 {[5/9]-623 1.103} Rad8 {[10]1062/b2b3 1.29}
17. a5 {[4/9]-724 1.146} Bh4 {[11]1377/e1d1 1.793}
18. a6 {[4/10]-703 1.115} Bg4 {[10]1640/e2c4 1.48}
19. Qc4+ {[4/9]-495 1.442} Kg7 {[13]1749/d2d3 1.692}
20. b4 {[4/9]-1151 1.215} Rd4 {[10]mate6/d2d3 1.237}
21. d3 {[4/9]-1143 1.156} Qf3 {[13]mate5/c4g8 1.465}
22. Kd2 {black mates in #3 1.182} Rxc4 {[49]mate3/d3c4 1.59}
23. dxc4 {black mates in #2 0.091} Rd8+ {[100]mate2/d2e1 0.542}
24. Ke1 {black mates in #1 0.003} Rd1+ 0-1