Hi Luigi,
After adding the ROM you still need an engine entry, a uci entry (if there’s levels) and an ini entry (as you’ve done).
In armv7l my engines.ini entry is:
[polgar]
name = Mephisto Polgar
small = polgar
medium = M Polgar
large = Meph Polgar
elo = 1975
levels = 10
ponder/brain = n
The last 2 lines are optional.
The Engine entry should be similar to other MAME entries, in this case edit a file called polgar and paste these lines in and save it:
#!/bin/bash
cd /opt/picochess/engines/mame_emulation; SDL_VIDEODRIVER=dummy /opt/picochess/engines/mame_emulation/mess -skip_gameinfo -lightgunprovider none -video none -plugin chessengine polgar
The last line above is all on 1 line.
Save it and give it executable permissions via
chmod a+x polgar
You may need sudo at the front.
Then lastly you need the uci entry for the levels, edit a file called polgar.uci and paste these lines in and save it:
[01-5s move]
level = NORMAL 0:05
PicoTimeControl = 5
[02-10s move]
level = NORMAL 0:10
PicoTimeControl = 10
[03-15s move]
level = NORMAL 0:15
PicoTimeControl = 15
[04-30s move]
level = NORMAL 0:30
PicoTimeControl = 30
[05-60s move]
level = NORMAL 0:60
PicoTimeControl = 60
[06-5m game]
level = BLITZ 5:00
PicoTimeControl = 5 0
[07-15m game]
level = BLITZ 15:00
PicoTimeControl = 15 0
[08-30m game]
level = BLITZ 30:00
PicoTimeControl = 30 0
[09-45m game]
level = BLITZ 45:00
PicoTimeControl = 45 0
[10-60m game]
level = BLITZ 60:00
PicoTimeControl = 60 0
We only added some of the levels, if you look at the instruction manual for the Polgar, you could add more in a similar way.
That’s it.
Cheers,
Al.