New engine "Roc"

Discussion of anything and everything relating to chess playing software and machines.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
stuwph
Posts: 28
Joined: Sun Dec 30, 2012 5:37 am

Re: New engine "Roc"

Post by stuwph » Tue May 09, 2017 6:23 pm

trying to compile ROC with VS2017 only fails due to an error in line 58:

Severity Code Description Project File Line Suppression State
Error C2198 'unsigned int (__cdecl *)(uint64_t,uint64_t,uint64_t,uint64_t,uint64_t,uint64_t,uint64_t,uint64_t,unsigned int,unsigned int,unsigned int,bool,unsigned int *)':
too few arguments for call Roc C:\ROC\Roc.cpp 58

can someone verify?

THyer
Posts: 40
Joined: Fri Jul 22, 2016 5:51 pm

Re: New engine "Roc"

Post by THyer » Tue May 09, 2017 7:50 pm

That line is a template forwarding function. Can you find the line of the template instantiation? You can reach me directly at teamhyer at yahoo dot com.
"Wise and cruel was the Bird, and wise and cruel were the Sons of the Bird."

stuwph
Posts: 28
Joined: Sun Dec 30, 2012 5:37 am

Re: New engine "Roc"

Post by stuwph » Wed May 10, 2017 4:13 pm

think it is line 46:

template<class F_, typename... Args_> int TBProbe(F_ func, bool me, const Args_&&... args)

with the error "too few arguments to call" in line 58:

(me == White), std::forward<Args_>(args)...);

Tony P.
Posts: 81
Joined: Sun Jan 22, 2017 7:30 pm
Location: Russia

Re: New engine "Roc"

Post by Tony P. » Tue Sep 12, 2017 4:38 am

The non-HNI* binary of Roc 0.9 crashes instantly when I try to install it as a UCI engine in Arena 3.5.1 build 2861 under Windows 7 Home Premium x64.

* I have to use non-HNI builds because my Intel Core i7-2600QM is a Sandy Bridge and supports POPCNT but not BMI2.

The 0.9 binary can install itself as a Winboard engine, but then it still won't analyse (does nothing when started).

When I install the binary in Babaschess 4.0 build 12274, either as a UCI or Winboard engine, and attempt to analyse the starting position with it, it opens 8 empty Windows Terminal windows (with Roc_0_9_x64.exe in the title) and does nothing else.

I haven't yet tried to compile a binary from the 0.9 source. I'm using the non-HNI binary of Roc 0.8 for now, which works correctly with Arena.

Anyway, what I wanted to address is Roc's time management - Roc 0.8 seems to play too fast, in particular, to play a move from the PV instantly without recalculation if the opponent plays a move from the PV calculated by Roc on the previous move.

This can sometimes backfire, as in the below example, where, at move 28, having 1:34 on the clock vs Fizbo's 1:16 (the time control was 3 min + 3 sec inc.), Roc searched to base depth 15 only. It played the correct 28... hxg5, but the problem was that its PV included 28... hxg5 29. Qxg5 b5?? because of the horizon effect (it was expecting White to play 30. cxb6, thinking that 30. Rd3 would lead to an equal position). After Fizbo 1.9 predictably recaptured on g5, Roc played the 29... b5?? from the PV of the previous move.

[pgn][Event "Computer chess game"]
[Date "2017.09.12"]
[White "Fizbo19x64"]
[Black "Roc_0_8_x64"]
[Result "1-0"]
[ECO "C15"]
[Opening "French"]
[Time "04:40:36"]
[Variation "Winawer, 4.Bd3 dxe4 5.Bxe4 Nf6"]
[TimeControl "180+3"]
[Termination "normal"]
[PlyCount "76"]
[WhiteType "program"]
[BlackType "program"]

1. e4 e6 2. d4 d5 3. Nc3 Bb4 4. Bd3 dxe4 5. Bxe4 Nf6 6. Bg5 Nbd7 7. Ne2 h6
8. Bxf6 {(8.Bxf6 Nxf6 9.Bf3 0-0 10.0-0 Re8 11.Ne4 Nxe4) -0.35/15 5} Nxf6
{(8. ... Nxf6 9.0-0 0-0 10.Bf3 c6 11.Ng3 Qb6 12.Na4 Qa5 13.c3 Bd6 14.b4 Qd8
15.Nc5 a5) +0.25/13 2} 9. Bf3 {(9.Bf3 c5 10.Qd3 Qa5 11.a3 cxd4 12.Qxd4 Be7)
-0.45/15 8} O-O {(9. ... 0-0 10.Qd3 c6 11.0-0-0 Re8 12.Ne4 Nxe4 13.Bxe4 e5
14.dxe5 Qa5 15.f4 Qxa2 16.c3 Bc5 17.h4 Bg4 18.Bf3) +0.27/15 10} 10. O-O
{(10.0-0 c6 11.Ng3 Be7 12.Nce4 Qb6 13.Nxf6+ Bxf6) -0.46/16 13} c6 {(10. ...
c6 11.Qd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 Qg8 40.Qxg8+
Kxg8 41.Nf6+ Kf8 42.Nxd7+ Kf7 43.Nxb8 Bxe5 44.Nxc6 Bf4 45.Rd7+ Ke6 46.Rxa7
Kf6 47.Rb7 Bc1 48.Kf3 Bd2 49.Rxb5 Bc1 50.Nb8 Ke5 51.Nd7+ Ke6 52.c6 Bh6
53.Nb6) -8.88/16 8 Black resigns} 1-0[/pgn]

I don't know the effect of this time management on the rating, though - it indeed may be beneficial if, in most games, Roc manages to maintain a bearable position until the opponent gets into time trouble and blunders.

Post Reply