Cutechess-Cli for Android

Moderators: Elijah, Igbo, timetraveller

hagtorp
Forum Contributions
Points: 19 796,00 
Posts: 159
Joined: 04/11/2019, 3:15
Status: Offline (Active 6 Months, 3 Weeks, 6 Days, 9 Hours, 17 Minutes ago)
Topics: 3
Reputation: 30
Has thanked: 9 times
Been thanked: 24 times

Cutechess-Cli for Android

Post by hagtorp »

My build Cutechess-Cli for arm64 (android 6-10).
https://app.box.com/s/rdc03aqv7r2mldlubdnt6yzvv9ooa5oy

It is launched from any terminal. I hope Alex1976 writes instructions
Skynet
Points: 0,00 
Status: Offline (Active 2 Hours, 49 Minutes ago)
Topics: 

Cutechess-Cli for Android

Post by Skynet »

hagtorp wrote:I hope Alex1976 writes instructions
I'll write, probably tomorrow, have some work to do.
hagtorp
Forum Contributions
Points: 19 796,00 
Posts: 159
Joined: 04/11/2019, 3:15
Status: Offline (Active 6 Months, 3 Weeks, 6 Days, 9 Hours, 17 Minutes ago)
Topics: 3
Reputation: 30
Has thanked: 9 times
Been thanked: 24 times

Cutechess-Cli for Android

Post by hagtorp »

Archive for the test tournament in cutechess-cli. The composition includes two engines, a debut book, cutechess-cli and a script to run. Turn on the “Newer Sleep” option in the phone’s settings or install the “non-fading screen” application to prevent the device from going to sleep mode.
Create in the [Book] folder and put the book from the archive into it. The path should look like this: /sdcard/Book.
Create the [uci] folder and put the engines from the archive and cutechess-cli into it. The [go] script, drop it into the phone’s memory (/sdcard/go). Install the terminal from the archive, run and enter the command:

Code: Select all

sh /sdcard/go
Enter

https://app.box.com/s/dop40vrctvm6ercc73u3ctgqqrtov16s
Skynet
Points: 0,00 
Status: Offline (Active 2 Hours, 49 Minutes ago)
Topics: 

Cutechess-Cli for Android

Post by Skynet »

Instructions.. Old fashioned way.. :beer:

First install 3 apps from google play store (or from below link).
1) Script Manager - SManager https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=en
Required to run Cutechess.
2) QuickEdit Text Editor https://play.google.com/store/apps/details?id=com.rhmsoft.edit&hl=en
Required to copy and modify text commands.
3) No Screen Off https://play.google.com/store/apps/details?id=com.k2.no.screen.off&hl=en
Required to save the screen in "On" mode, during the tests. If the screen goes blank (will turn Off) during the test, the test will be in pause mode, so make sure to have it On.
Be sure to give permission to these applications to access the internal storage..

Before running the cute chess..
Inside in the "()Example for test" folder, you will find "Book" folder with 8moves_v3.pgn opening book. Put this folder in to the "default directory" of your device's memory, which is /storage/emulated/0/ , on some devices this directory can be a bit different eg /storage/emulated/ or something else. Correct path/directory can be checked and copied from SManager.

Copying of the commands with QuickEdit Text Editor, and pasting them to the shell (pictures)..
► Show Spoiler
Meaning of the commands in go and txt files..

Code: Select all

/data/user/0/os.tools.scriptmanager/files/./cutechess-cli -engine cmd=/data/user/0/os.tools.scriptmanager/files/Cf-10 proto=uci option.Hash=32 option.Threads=1 restart=on -engine cmd=/data/user/0/os.tools.scriptmanager/files/Cf-9 proto=uci option.Hash=32 option.Threads=1 restart=on -each tc=60+0.6 -games 3000 -repeat -concurrency 7 -recover -tournament round-robin -openings file=/storage/emulated/0/Book/8moves_v3.pgn format=pgn plies=16 start=1 order=random -pgnout Results.pgn -maxmoves 170 -wait 30 -draw movenumber=60 movecount=4 score=5 -resign movecount=3 score=600
/data/user/0/os.tools.scriptmanager/files/./cutechess-cli - path where is cutechess is installed in SManager
-engine cmd=/data/user/0/os.tools.scriptmanager/files/ - path where is engine installed in SManager
Cf-10 proto=uci option.Hash=32 option.Threads=1 restart=on - name of the engine (Cfish 10), protocol of the engine UCI, hash size 32 mb, number of cores/threads for use, restart of the engine in case if it will crash.
-engine cmd=/data/user/0/os.tools.scriptmanager/files/Cf-10 proto=uci option.Hash=32 option.Threads=1 restart=on - Same things, about second engine.
-each tc=60+0.6 - time control for each engine 60sec+0.6mlsec for the whole game.
-games 3000 - number of the games 3000.
-repeat - repeat of the openings
-concurrency 3 - the number of games to be played in parallel.
-recover - this command keep tournament in pause mode, in case if screen turn off.
-tournament round-robin - Tournament mode Round Robin.
-openings file=/storage/emulated/0/Book/8moves_v3.pgn format=pgn - path of the opening book, 8 moves book, format PGN.
plies=16 - number of opening books moves, 8 moves x2= 16 plies.
start=1 order=random - start position number one from the opening book, order of openings random.
-pgnout Results.pgn - after tournament will be completed it will be stored as Results.pgn file on your device's memory, which is /storage/emulated/0/
-maxmoves 170 - maximum moves for the game.
-wait 30 - cutechess "lag 30mlsec after each complited game.
-draw movenumber=60 movecount=4 score=5 - Draw rules
-resign movecount=3 score=600 - Resignation rules, for faster resignation you can set score=400 +/- 4 centipawn.

Important notes:
1) There is no need to write the whole name of the engine, eg Stockfish-111119-arm8-pgo, make it more simple, before copying the engine to SManager, rename it to S111119 or something else. Cutechess is reading information about the engine from inside and will write it in pgn file.
2) Every command line (hash size, cores, time control etc), can be changed via QuickEdit Text Editor.
3) Regarding concurrency - if your device is quad core, you can use 1 core per engine and concurrency 3, keeping one core for the system. Or 2 cores per engine and concurrency 2.
For octa core devices, you can use 1 core per engine and concurrency 7, or 2 cores with concurrency 3, or 3-(4) cores with concurrency 2.
4) Before starting test, make sure that your battery is not less than 80%, with concurrency battery is dropping a bit faster. Also, release as much RAM as you can, by closing apps that are running in background. Preferable to turn device to airplane mode.
5) Make sure that your device has identical cores in the system, eg 4 xCortexA53, NOT 2 xCortexA53 and 2xCortexA52 (2+2). If your device doesn't have identical cores than you will not get accurate results because of time forfeits.

Watch the video first, now open the SManager and press on small house above (picture) and do the rest.
► Show Spoiler
GOOD LUCK! :sm36:
3 apps http://s000.tinyupload.com/index.php?file_id=03899276519461011480
()Example for test http://s000.tinyupload.com/index.php?file_id=06476596001657352086
Video 3min http://s000.tinyupload.com/index.php?file_id=04346230984489638178
Skynet
Points: 0,00 
Status: Offline (Active 2 Hours, 49 Minutes ago)
Topics: 

Cutechess-Cli for Android

Post by Skynet »

hagtorp, i think cute chess has a problem with "Draw adjudication", you can take a look in games from this test http://outskirts.altervista.org/forum/viewtopic.php?p=2956&view=single_post#p2956 I mean that, even after declaring a draw, in many games, the engines continued to play. :boh:
► Show Spoiler
hagtorp
Forum Contributions
Points: 19 796,00 
Posts: 159
Joined: 04/11/2019, 3:15
Status: Offline (Active 6 Months, 3 Weeks, 6 Days, 9 Hours, 17 Minutes ago)
Topics: 3
Reputation: 30
Has thanked: 9 times
Been thanked: 24 times

Cutechess-Cli for Android

Post by hagtorp »

Alex1976 wrote:hagtorp, i think cute chess has a problem with "Draw adjudication", you can take a look in games from this test http://outskirts.altervista.org/forum/viewtopic.php?p=2956&view=single_post#p2956 I mean that, even after declaring a draw, in many games, the engines continued to play. :boh:
► Show Spoiler
Did this happen in only two games? Hmm .. weird. I have not met this. Can you throw these games off to me?
Skynet
Points: 0,00 
Status: Offline (Active 2 Hours, 49 Minutes ago)
Topics: 

Cutechess-Cli for Android

Post by Skynet »

Here is the very first game, according to Arena GUI for PC, 3-fold repetition was after move 59...Re7 (picture one) -> http://outskirts.altervista.org/forum/viewtopic.php?p=3027&view=single_post#p3027, but in cutechess pgn this repetition wasn't fixated.. :boh:
hagtorp
Forum Contributions
Points: 19 796,00 
Posts: 159
Joined: 04/11/2019, 3:15
Status: Offline (Active 6 Months, 3 Weeks, 6 Days, 9 Hours, 17 Minutes ago)
Topics: 3
Reputation: 30
Has thanked: 9 times
Been thanked: 24 times

Cutechess-Cli for Android

Post by hagtorp »

Alex1976 wrote:Here is the very first game, according to Arena GUI for PC, 3-fold repetition was after move 59...Re7 (picture one) -> http://outskirts.altervista.org/forum/viewtopic.php?p=3027&view=single_post#p3027, but in cutechess pgn this repetition wasn't fixated.. :boh:
I think the point here is that the engine repeated this position not for three moves in a row, but for 9 moves and cutechess-cli considered that this was not a prerequisite for a draw. Hmm ... It's more like a cutechess thing. Does this happen in the PC version?
Skynet
Points: 0,00 
Status: Offline (Active 2 Hours, 49 Minutes ago)
Topics: 

Cutechess-Cli for Android

Post by Skynet »

hagtorp wrote: I think the point here is that the engine repeated this position not for three moves in a row, but for 9 moves and cutechess-cli considered that this was not a prerequisite for a draw. Hmm ... It's more like a cutechess thing. Does this happen in the PC version?
Yeah, looks like it is (most likely) Arena's bug. On PC i also use syzygy TBs so 3-fold repetition or 50 moves rool fixated correctly, but Arena is reading the games with it's own way. :boh: Take a look here, from CuteChess it's a "Draw by fifty moves rule", while Arena shows whatever.. :hihi:
► Show Spoiler
CuteChess PC ->
hagtorp
Forum Contributions
Points: 19 796,00 
Posts: 159
Joined: 04/11/2019, 3:15
Status: Offline (Active 6 Months, 3 Weeks, 6 Days, 9 Hours, 17 Minutes ago)
Topics: 3
Reputation: 30
Has thanked: 9 times
Been thanked: 24 times

Cutechess-Cli for Android

Post by hagtorp »

Cutechess-cli-1.1.0 update:
Clang-9.0.0-2 compiler.
Qt-5.12.5 library.
More new patch.
https://app.box.com/s/i9287ocmnsjf7byzvkqtcw1ilpxj97sf
hagtorp
Forum Contributions
Points: 19 796,00 
Posts: 159
Joined: 04/11/2019, 3:15
Status: Offline (Active 6 Months, 3 Weeks, 6 Days, 9 Hours, 17 Minutes ago)
Topics: 3
Reputation: 30
Has thanked: 9 times
Been thanked: 24 times

Cutechess-Cli for Android

Post by hagtorp »

My build is cutechess-cli for android 6-9. The latest version that I posted above was for android 10.

https://app.box.com/s/1ftqq770wmwtwgo39eleuss7ufov4kws
Skynet
Points: 0,00 
Status: Offline (Active 2 Hours, 49 Minutes ago)
Topics: 

Cutechess-Cli for Android

Post by Skynet »

hagtorp wrote:My build is cutechess-cli for android 6-9. The latest version that I posted above was for android 10.

https://app.box.com/s/1ftqq770wmwtwgo39eleuss7ufov4kws
Hmm, that's strange. This version working fine on my "downgraded" Samsung Galaxy A10.1 (32GB) - Android 9 - Octa Core - 64bit - 2GB RAM - 8x Cortex-A53.. BUT, not working on Teclast P80X_EEA (tPad, android 9) - 64bit - 2GB RAM - 8x Cortex-A55, every time with an error that it is unable to start one of the engines. :boh: I switched to this version, everything works fine. http://outskirts.altervista.org/forum/viewtopic.php?p=2206&view=single_post#p2206
hagtorp
Forum Contributions
Points: 19 796,00 
Posts: 159
Joined: 04/11/2019, 3:15
Status: Offline (Active 6 Months, 3 Weeks, 6 Days, 9 Hours, 17 Minutes ago)
Topics: 3
Reputation: 30
Has thanked: 9 times
Been thanked: 24 times

Cutechess-Cli for Android

Post by hagtorp »

Alex1976 wrote:
hagtorp wrote:My build is cutechess-cli for android 6-9. The latest version that I posted above was for android 10.

https://app.box.com/s/1ftqq770wmwtwgo39eleuss7ufov4kws
Hmm, that's strange. This version working fine on my "downgraded" Samsung Galaxy A10.1 (32GB) - Android 9 - Octa Core - 64bit - 2GB RAM - 8x Cortex-A53.. BUT, not working on Teclast P80X_EEA (tPad, android 9) - 64bit - 2GB RAM - 8x Cortex-A55, every time with an error that it is unable to start one of the engines. :boh: I switched to this version, everything works fine. http://outskirts.altervista.org/forum/viewtopic.php?p=2206&view=single_post#p2206
Both latest versions not working? And then I have the latter on android 6 and 9 work.
Skynet
Points: 0,00 
Status: Offline (Active 2 Hours, 49 Minutes ago)
Topics: 

Cutechess-Cli for Android

Post by Skynet »

hagtorp wrote:
Alex1976 wrote:
hagtorp wrote:My build is cutechess-cli for android 6-9. The latest version that I posted above was for android 10.

https://app.box.com/s/1ftqq770wmwtwgo39eleuss7ufov4kws
Hmm, that's strange. This version working fine on my "downgraded" Samsung Galaxy A10.1 (32GB) - Android 9 - Octa Core - 64bit - 2GB RAM - 8x Cortex-A53.. BUT, not working on Teclast P80X_EEA (tPad, android 9) - 64bit - 2GB RAM - 8x Cortex-A55, every time with an error that it is unable to start one of the engines. :boh: I switched to this version, everything works fine. http://outskirts.altervista.org/forum/viewtopic.php?p=2206&view=single_post#p2206
Both latest versions not working? And then I have the latter on android 6 and 9 work.
This version working fine on my "downgraded" Samsung Galaxy A10.1 BUT, not working on Teclast P80X_EEA (tPad, android 9)
https://app.box.com/s/1ftqq770wmwtwgo39eleuss7ufov4kws
----------------------------------------------------------------------------
Now i use this on my Teclast P80X_EEA (tPad, android 9) http://outskirts.altervista.org/forum/viewtopic.php?p=2206&view=single_post#p2206
hagtorp
Forum Contributions
Points: 19 796,00 
Posts: 159
Joined: 04/11/2019, 3:15
Status: Offline (Active 6 Months, 3 Weeks, 6 Days, 9 Hours, 17 Minutes ago)
Topics: 3
Reputation: 30
Has thanked: 9 times
Been thanked: 24 times

Cutechess-Cli for Android

Post by hagtorp »

Cutechess-cli update.
New:
GCC-9.2.
QT Library 5.13.0.
Fix bug "cannot start engine" in Script manager app.
https://app.box.com/s/z905a2r9jpn1q3hs5l3nm0c9a8xj2vv2
Post Reply

Return to “Mobile Chess Software, Engines”