I can run my engine using this cmd:
dotnet C:\Users\gebruiker\Source\Repos\Skipper\bin\Debug\netcoreapp2.0\SchaakMachine.dll
But how can I run it in winboard.
So what should I add in 'edit engineLists' to run this engine.
dotnet and winboard
Moderators: hgm, Rebel, chrisw
-
- Posts: 96
- Joined: Fri Jul 06, 2018 1:09 am
- Location: Chicago, IL
- Full name: Josh Odom
Re: dotnet and winboard
Anytime I run into this kind of issue, I write a tiny batch script (or bash script), and call that
-
- Posts: 27869
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: dotnet and winboard
Writing the command between quotes should do. As "dotnet" seems a globally recognized command, and you use the full pathname for its DLL argument, it should not matter in what directory you run it, so there is no reason to specify a /fd argument.
-
- Posts: 7221
- Joined: Mon May 27, 2013 10:31 am
Re: dotnet and winboard
Tried it and its working. So no need to create an executable.
-
- Posts: 7221
- Joined: Mon May 27, 2013 10:31 am
Re: dotnet and winboard
-
- Posts: 793
- Joined: Sun Aug 03, 2014 4:48 am
- Location: London, UK
Re: dotnet and winboard
You can implement either the "myname" option in feature command in CECP or "id name" in UCI.
Disclosure: I work for DeepMind on the AlphaZero project, but everything I say here is personal opinion and does not reflect the views of DeepMind / Alphabet.
-
- Posts: 27869
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: dotnet and winboard
Or, when you installed the engine through the GUI menu, write something in the 'nickname' field. Better to implement the 'myname' feature, though.
-
- Posts: 7221
- Joined: Mon May 27, 2013 10:31 am
Re: dotnet and winboard
Code: Select all
else if (cmd == "protover")
{
Console.WriteLine("feature myname=\"SchaakMachine\"");
}
[Event "Computer Chess Game"]
[Site "HP"]
[Date "2018.12.30"]
[Round "-"]
[White "SchaakMachine"]
[Black "Fairy-Max 4.8S"]
[Result "1/2-1/2"]
[TimeControl "120"]
[Annotator "1. +0.10 1... +0.08"]
1. Nf3 {+0.10/7} f6 {+0.08/8 3} 2. c4 {+0.25/7 2.1} d6 {-0.01/8 2.8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87/5 1.3} Bf5+ {+0.11/8 1.4}
32. Ka1 {+2.72/7 1.2} Qf8 {-0.48/9 1.1} 33. Qg3 {+2.69/7 1.2} Rxd5
{-0.62/10 0.8} 34. Rxg7+ {+2.19/8 1.2} Qxg7 {-0.79/12 0.8} 35. Qxg7+
{+2.30/10 1.2} Kxg7 {-0.83/12 0.8} 36. cxd5 {+2.30/8 1.2} Bg4
{-0.99/12 1.5} 37. Rc1 {+2.31/7 1.2} Bxh5 {-0.95/12 1.7} 38. Nxb5
{+2.59/8 1.1} Rf8 {-0.93/12 1.3} 39. Nxd6 {+3.19/7 1.1} Rxf4 {-0.87/11 1.0}
40. g3 {+2.66/6 1.1} Rf3 {-0.72/11 1.2} 41. Ne4 {+5.54/7 1.1} Bg6
{-0.73/10 0.6} 42. Rc7+ {+3.04/7 1.1} Kg8 {-0.45/12 0.9} 43. d6
{+2.65/8 1.0} Bxe4 {-1.19/13 1.5} 44. d7 {+2.46/9 1.0} Rf1+ {-1.49/14 0.6}
45. Kb2 {+2.17/10 1.0} Rd1 {-1.93/15 1.1} 46. Rc8+ {+2.73/10 1.0} Kf7
{-1.98/15 0.6} 47. d8=Q {+2.75/10 1.0} Rxd8 {-1.98/11 0.7} 48. Rxd8
{+2.96/10 1.0} Kf6 {-2.23/12 6} 49. Rd7 {+3.09/8 1.0} a6 {-2.24/11 0.8} 50.
Rd6+ {+3.19/10 0.9} Kg5 {-2.32/11 0.5} 51. Rxa6 {+3.30/8 0.9} h5
{-2.36/11 1.2} 52. Rb6 {+3.26/7 0.9} Kg4 {-2.35/11 0.7} 53. a4
{+5.14/9 0.9} Kxg3 {-1.72/10 0.4} 54. a5 {+3.06/7 0.9} h4 {-1.47/11 1.0}
55. Re6 {+1.93/8 0.9} Bg2 {-1.60/11 1.3} 56. Re7 {+2.19/8 0.9} h3
{-0.23/11 0.5} 57. Rg7+ {+2.90/8 0.8} Kf2 {-0.32/12 0.5} 58. Rxh7
{+0.73/8 0.8} Kg1 {-0.52/13 0.6} 59. a6 {-0.87/10 0.8} h2 {-0.54/14 1.0}
60. b4 {-0.69/10 0.8} Be4 {-0.51/14 0.9} 61. Rxh2 {+0.00/10 0.8} Kxh2
{-0.51/15 0.4} 62. b5 {+0.00/13 0.8} Bd3 {-0.48/16 0.4} 63. b6
{+0.00/16 0.8} Bxa6 {+0.03/15 0.4} 64. b7 {+0.00/21 0.8} Bxb7
{+3.08/17 0.4}
{Xboard adjudication: Insufficient mating material} 1/2-1/2
[/pgn]
-
- Posts: 4052
- Joined: Thu May 15, 2008 9:57 pm
- Location: Berlin, Germany
- Full name: Sven Schüle
Re: dotnet and winboard
Nice game by "SchaakMachine"! And it was still won at move 63. Instead of 63.b6?? the better line was 63.a7 Be4 64.Kc3 and moving the king to b7 via b4, a5, a6 and Pb5-b6 while the black king only reaches d6. Search depth of 16 plies (which was reached for 63.b6??) should be sufficient for that so it could be an eval issue.Henk wrote: ↑Sun Dec 30, 2018 2:41 pm [pgn]
[Event "Computer Chess Game"]
[Site "HP"]
[Date "2018.12.30"]
[Round "-"]
[White "SchaakMachine"]
[Black "Fairy-Max 4.8S"]
[Result "1/2-1/2"]
[TimeControl "120"]
[Annotator "1. +0.10 1... +0.08"]
1. Nf3 {+0.10/7} f6 {+0.08/8 3} 2. c4 {+0.25/7 2.1} d6 {-0.01/8 2.8} 3. Nc3
{+0.37/6 2.0} Nh6 {+0.14/8 4} 4. d3 {+0.47/6 2.0} c5 {+0.19/8 1.7} 5. Bxh6
{+0.39/6 2.0} gxh6 {+0.41/9 2.1} 6. Qd2 {+0.36/6 1.9} Nc6 {+0.53/9 2.2} 7.
Nd5 {+0.51/6 1.9} Bg7 {+0.34/8 1.5} 8. O-O-O {+0.43/6 1.9} O-O
{+0.64/8 2.5} 9. Nf4 {+0.34/6 1.8} Qe8 {+0.42/8 1.3} 10. e3 {+0.41/6 1.8}
f5 {+0.51/9 2.9} 11. d4 {+0.51/7 1.8} cxd4 {+0.39/9 1.9} 12. exd4
{+0.62/7 1.7} Qf7 {+0.38/9 2.3} 13. d5 {+0.83/7 1.7} Nd8 {+0.30/9 1.7} 14.
h4 {+0.91/6 1.7} e5 {+0.47/8 1.2} 15. dxe6 {+0.88/8 1.7} Nxe6 {+0.48/9 1.6}
16. h5 {+1.01/7 1.6} Rd8 {+0.39/9 2.0} 17. Nd5 {+1.00/7 1.6} Nc5
{+0.38/9 2.0} 18. Nd4 {+1.07/6 1.6} Bd7 {+0.44/8 2.0} 19. Qe3 {+1.12/5 1.5}
Re8 {+0.36/7 1.3} 20. Qf3 {+0.95/5 1.5} Rec8 {+0.37/7 2.1} 21. Kb1
{+1.06/5 1.5} Be5 {+0.40/7 1.4} 22. Qh3 {+0.90/5 1.5} Qf8 {+0.26/7 1.4} 23.
f4 {+1.24/6 1.4} Bg7 {+0.14/9 1.4} 24. Be2 {+1.18/6 1.4} Ba4 {+0.41/7 0.9}
25. b3 {+1.23/6 1.4} Bd7 {+0.42/9 1.7} 26. Bf3 {+1.05/6 1.4} Qf7
{+0.17/8 1.0} 27. Rhe1 {+1.33/6 1.3} Ne4 {+0.17/7 1.8} 28. Bxe4
{+2.23/7 1.3} fxe4 {-0.18/9 1.2} 29. Qh4 {+2.17/7 1.3} Rc5 {+0.05/9 4} 30.
Rxe4 {+2.07/6 1.3} b5 {+0.05/9 3} 31. Re7 {+1.87/5 1.3} Bf5+ {+0.11/8 1.4}
32. Ka1 {+2.72/7 1.2} Qf8 {-0.48/9 1.1} 33. Qg3 {+2.69/7 1.2} Rxd5
{-0.62/10 0.8} 34. Rxg7+ {+2.19/8 1.2} Qxg7 {-0.79/12 0.8} 35. Qxg7+
{+2.30/10 1.2} Kxg7 {-0.83/12 0.8} 36. cxd5 {+2.30/8 1.2} Bg4
{-0.99/12 1.5} 37. Rc1 {+2.31/7 1.2} Bxh5 {-0.95/12 1.7} 38. Nxb5
{+2.59/8 1.1} Rf8 {-0.93/12 1.3} 39. Nxd6 {+3.19/7 1.1} Rxf4 {-0.87/11 1.0}
40. g3 {+2.66/6 1.1} Rf3 {-0.72/11 1.2} 41. Ne4 {+5.54/7 1.1} Bg6
{-0.73/10 0.6} 42. Rc7+ {+3.04/7 1.1} Kg8 {-0.45/12 0.9} 43. d6
{+2.65/8 1.0} Bxe4 {-1.19/13 1.5} 44. d7 {+2.46/9 1.0} Rf1+ {-1.49/14 0.6}
45. Kb2 {+2.17/10 1.0} Rd1 {-1.93/15 1.1} 46. Rc8+ {+2.73/10 1.0} Kf7
{-1.98/15 0.6} 47. d8=Q {+2.75/10 1.0} Rxd8 {-1.98/11 0.7} 48. Rxd8
{+2.96/10 1.0} Kf6 {-2.23/12 6} 49. Rd7 {+3.09/8 1.0} a6 {-2.24/11 0.8} 50.
Rd6+ {+3.19/10 0.9} Kg5 {-2.32/11 0.5} 51. Rxa6 {+3.30/8 0.9} h5
{-2.36/11 1.2} 52. Rb6 {+3.26/7 0.9} Kg4 {-2.35/11 0.7} 53. a4
{+5.14/9 0.9} Kxg3 {-1.72/10 0.4} 54. a5 {+3.06/7 0.9} h4 {-1.47/11 1.0}
55. Re6 {+1.93/8 0.9} Bg2 {-1.60/11 1.3} 56. Re7 {+2.19/8 0.9} h3
{-0.23/11 0.5} 57. Rg7+ {+2.90/8 0.8} Kf2 {-0.32/12 0.5} 58. Rxh7
{+0.73/8 0.8} Kg1 {-0.52/13 0.6} 59. a6 {-0.87/10 0.8} h2 {-0.54/14 1.0}
60. b4 {-0.69/10 0.8} Be4 {-0.51/14 0.9} 61. Rxh2 {+0.00/10 0.8} Kxh2
{-0.51/15 0.4} 62. b5 {+0.00/13 0.8} Bd3 {-0.48/16 0.4} 63. b6
{+0.00/16 0.8} Bxa6 {+0.03/15 0.4} 64. b7 {+0.00/21 0.8} Bxb7
{+3.08/17 0.4}
{Xboard adjudication: Insufficient mating material} 1/2-1/2
[/pgn]
Sven Schüle (engine author: Jumbo, KnockOut, Surprise)
-
- Posts: 27869
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: dotnet and winboard
If that is the only thing you print in response to 'protover', it would be better to append " done = 1" to it; that saves you the few seconds WinBoard would have to wait to see if more features are coming, every time you start up the engine.