Sargon 1978 UCI Available

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

Moderators: hgm, Rebel, chrisw

Chessqueen
Posts: 5587
Joined: Wed Sep 05, 2018 2:16 am
Location: Moving
Full name: Jorge Picado

Re: Sargon 1978 UCI Available

Post by Chessqueen »

Chessqueen wrote: Sat Jan 02, 2021 8:37 pm
Chessqueen wrote: Fri Jan 01, 2021 6:01 pm
Chessqueen wrote: Fri Jan 01, 2021 4:20 pm
mwyoung wrote: Sat Oct 17, 2020 2:16 am
mwyoung wrote: Sat Oct 17, 2020 1:47 am
lkaufman wrote: Sat Oct 17, 2020 1:32 am
Laskos wrote: Sat Oct 17, 2020 12:59 am
lkaufman wrote: Fri Oct 16, 2020 11:35 pm Have any rated human players played games against Sargon on a modern computer to provide any data on the human rating it might earn today? If so at what time control?
Maybe that helps:

http://talkchess.com/forum3/viewtopic.p ... 1&start=12
OK, as best as I can figure out from all the posts, the elo rating of Sargon 1 in 1978 was about 1400, and its estimated elo vs. humans on an i7 now is around 1700. The hardware speedup is either 50 to 1 or 6000+ to 1 depending on which post you believe; if it is 50 to 1 this all makes sense, since 1700 elo is not too far out of line with 1254 CCRL Blitz if you contract rating differences by a third or so. I get 52knps on my very fast i7 which means about 40k on a typical one, so if there is some evidence that the original hardware got around 800 nps then everything fits. The 6000 to 1 figure is hard to credit, especially since it referred to using some old hardware, not an i7, so an i7 might be 10000 to 1 which means the original Sargon got 4 nodes per second?? That seems impossibly low.
I note that the 1700 elo mentioned was based on Shredder and SF versions set to 1600, but does anyone know whether those ratings were themselves based on human games or on games with CCRL rated engines?
You can estimate the speed up. The level times 1ply meaning level 1, 2 to 2..... level 6 for 6 ply took an average of 4 hours. Sargon did not have time controls only levels. Take a few positions and see how long your Sargon takes to search 6 ply. And compare that to 4 hours.This will give you a speed ratio compared to a TRS-80 computer.

I get 63knps using my brother very fast i9 computer, I forgot to mentioned if it makes any difference it is the intel i9 9900K, and the final score after 10 games I won 5 games to Sargon 3 games and two draw :roll:



What I do NOT understand neither my trainer online is why did Sargon decided to repeat the three fold and accept a draw instead of playing 43.Qxh6! :?:

[pgn][Event "My New Challenger"]
[Date "2021.01.01"]
[Round "6"]
[White "Sargon-engine"]
[Black "ChessQueen"]
[Result "1/2-1/2"]
[BlackElo "1900"]
[ECO "C46"]
[Opening "Three Knights"]
[Time "13:10:15"]
[Variation "Winawer Defence"]
[WhiteElo "1850"]
[TimeControl "600+3"]
[Termination "normal"]
[PlyCount "91"]


1. e4 e5 2. Nf3 Nc6 3. Nc3 f5 4. d4 fxe4 5. Nxe5 Nf6 6. Bg5 Bb4 7. Be2 Qe7
8. Nxc6 dxc6 9. O-O h6 10. Bxf6 gxf6 11. Bh5+ Kf8 12. Re1 f5 13. a3 Bd6 14.
Kh1 Be6 15. g3 Qg5 16. f4 Qf6 17. Nb1 b6 18. c3 a5 19. Nd2 a4 20. Kg2 c5
21. dxc5 Bxc5 22. Qe2 Bd5 23. Nc4 Kg7 24. Ne5 Rhd8 25. Rad1 Rd6 26. c4 Be6
27. Rxd6 cxd6 28. Nc6 Rc8 29. Na7 Rc7 30. Nb5 Rc8 31. Rd1 Bd7 32. Qd2 Bc6
33. Qc2 Ra8 34. Nc7 Rc8 35. Nd5 Qe6 36. Qc3+ Kg8 37. Nf6+ Kf8 38. Nd5 Kg8
39. Nf6+ Kf8 40. Nd5 Bxd5 41. cxd5 Qd7 42. Qf6+ Kg8 43. Qg6+ Kf8 44. Qf6+
Kg8 45. Qg6+ Kf8 46. Qf6+ {3-fold repetition} 1/2-1/2[/pgn]
Who is 17 years old GM Gukesh 2nd at the Candidate in Toronto?
https://indianexpress.com/article/sport ... t-9281394/
Bill Forster
Posts: 76
Joined: Mon Sep 21, 2015 7:47 am
Location: New Zealand

Re: Sargon 1978 UCI Available

Post by Bill Forster »

Chessqueen wrote: Sat Jan 02, 2021 8:40 pm What I do NOT understand neither my trainer online is why did Sargon decided to repeat the three fold and accept a draw instead of playing 43.Qxh6! :?:

[pgn][Event "My New Challenger"]
[Date "2021.01.01"]
[Round "6"]
[White "Sargon-engine"]
[Black "ChessQueen"]
[Result "1/2-1/2"]
[BlackElo "1900"]
[ECO "C46"]
[Opening "Three Knights"]
[Time "13:10:15"]
[Variation "Winawer Defence"]
[WhiteElo "1850"]
[TimeControl "600+3"]
[Termination "normal"]
[PlyCount "91"]


1. e4 e5 2. Nf3 Nc6 3. Nc3 f5 4. d4 fxe4 5. Nxe5 Nf6 6. Bg5 Bb4 7. Be2 Qe7
8. Nxc6 dxc6 9. O-O h6 10. Bxf6 gxf6 11. Bh5+ Kf8 12. Re1 f5 13. a3 Bd6 14.
Kh1 Be6 15. g3 Qg5 16. f4 Qf6 17. Nb1 b6 18. c3 a5 19. Nd2 a4 20. Kg2 c5
21. dxc5 Bxc5 22. Qe2 Bd5 23. Nc4 Kg7 24. Ne5 Rhd8 25. Rad1 Rd6 26. c4 Be6
27. Rxd6 cxd6 28. Nc6 Rc8 29. Na7 Rc7 30. Nb5 Rc8 31. Rd1 Bd7 32. Qd2 Bc6
33. Qc2 Ra8 34. Nc7 Rc8 35. Nd5 Qe6 36. Qc3+ Kg8 37. Nf6+ Kf8 38. Nd5 Kg8
39. Nf6+ Kf8 40. Nd5 Bxd5 41. cxd5 Qd7 42. Qf6+ Kg8 43. Qg6+ Kf8 44. Qf6+
Kg8 45. Qg6+ Kf8 46. Qf6+ {3-fold repetition} 1/2-1/2[/pgn]
There is plenty of discussion of this up-thread, including a recent commitment from me to fix this repetition problem.
Bill Forster wrote: Thu Dec 31, 2020 11:21 pm Thanks to the three posters expressing interest. I will go ahead and work on a new V1.01 release with the goal of fixing the repetition problem whilst respecting the provenance of the program, i.e. without making any changes to the core Sargon 1978 assembly code. Improving the core Sargon 1978 code is an interesting possible project, but that's not what the current project is all about.

I will also add a new "timing" set to the suite of regression tests, to try to get a more satisfactory resolution of the "speed up factor" issue.
Sargon does this (concedes unnecessary repetition draws), basically because it's dumber than a cockroach. It doesn't understand that a bird in the hand is worth two in a bush, it is just as happy to know it retains the option of playing Qxh6 as it would be actually playing Qxh6 and pocketing that pawn. There is no code to detect that this decision condemns it to falling into an infinite loop - the original Z80 program would have happily continued repeating until the end of time because there was no three times repetition draw cutoff in the user interface.

I will (try to?) fix this by adding another layer over the top, when Sargon repeats like this with 43.Qg6 the new layer will reject the move (internally) and say, "No try again, and this time the move 43.Qg6 is not allowed". Only if Sargon's next best move leaves it worse (according to its own eval) will the updated version revert to 43.Qg6. Pretty sure that won't happen here and it will play 43.Qxh6 instead.

Incidentally if you read the old chess computing literature, this sort of thing was a common problem for early chess programs, see for example the famously funny conclusion to Coko v Genie in 1971.
Chessqueen
Posts: 5587
Joined: Wed Sep 05, 2018 2:16 am
Location: Moving
Full name: Jorge Picado

Re: Sargon 1978 UCI Available

Post by Chessqueen »

Bill Forster wrote: Sun Jan 03, 2021 1:48 am
Chessqueen wrote: Sat Jan 02, 2021 8:40 pm What I do NOT understand neither my trainer online is why did Sargon decided to repeat the three fold and accept a draw instead of playing 43.Qxh6! :?:

[pgn][Event "My New Challenger"]
[Date "2021.01.01"]
[Round "6"]
[White "Sargon-engine"]
[Black "ChessQueen"]
[Result "1/2-1/2"]
[BlackElo "1900"]
[ECO "C46"]
[Opening "Three Knights"]
[Time "13:10:15"]
[Variation "Winawer Defence"]
[WhiteElo "1850"]
[TimeControl "600+3"]
[Termination "normal"]
[PlyCount "91"]


1. e4 e5 2. Nf3 Nc6 3. Nc3 f5 4. d4 fxe4 5. Nxe5 Nf6 6. Bg5 Bb4 7. Be2 Qe7
8. Nxc6 dxc6 9. O-O h6 10. Bxf6 gxf6 11. Bh5+ Kf8 12. Re1 f5 13. a3 Bd6 14.
Kh1 Be6 15. g3 Qg5 16. f4 Qf6 17. Nb1 b6 18. c3 a5 19. Nd2 a4 20. Kg2 c5
21. dxc5 Bxc5 22. Qe2 Bd5 23. Nc4 Kg7 24. Ne5 Rhd8 25. Rad1 Rd6 26. c4 Be6
27. Rxd6 cxd6 28. Nc6 Rc8 29. Na7 Rc7 30. Nb5 Rc8 31. Rd1 Bd7 32. Qd2 Bc6
33. Qc2 Ra8 34. Nc7 Rc8 35. Nd5 Qe6 36. Qc3+ Kg8 37. Nf6+ Kf8 38. Nd5 Kg8
39. Nf6+ Kf8 40. Nd5 Bxd5 41. cxd5 Qd7 42. Qf6+ Kg8 43. Qg6+ Kf8 44. Qf6+
Kg8 45. Qg6+ Kf8 46. Qf6+ {3-fold repetition} 1/2-1/2[/pgn]
There is plenty of discussion of this up-thread, including a recent commitment from me to fix this repetition problem.
Bill Forster wrote: Thu Dec 31, 2020 11:21 pm Thanks to the three posters expressing interest. I will go ahead and work on a new V1.01 release with the goal of fixing the repetition problem whilst respecting the provenance of the program, i.e. without making any changes to the core Sargon 1978 assembly code. Improving the core Sargon 1978 code is an interesting possible project, but that's not what the current project is all about.

I will also add a new "timing" set to the suite of regression tests, to try to get a more satisfactory resolution of the "speed up factor" issue.
Sargon does this (concedes unnecessary repetition draws), basically because it's dumber than a cockroach. It doesn't understand that a bird in the hand is worth two in a bush, it is just as happy to know it retains the option of playing Qxh6 as it would be actually playing Qxh6 and pocketing that pawn. There is no code to detect that this decision condemns it to falling into an infinite loop - the original Z80 program would have happily continued repeating until the end of time because there was no three times repetition draw cutoff in the user interface.

I will (try to?) fix this by adding another layer over the top, when Sargon repeats like this with 43.Qg6 the new layer will reject the move (internally) and say, "No try again, and this time the move 43.Qg6 is not allowed". Only if Sargon's next best move leaves it worse (according to its own eval) will the updated version revert to 43.Qg6. Pretty sure that won't happen here and it will play 43.Qxh6 instead.

Incidentally if you read the old chess computing literature, this sort of thing was a common problem for early chess programs, see for example the famously funny conclusion to Coko v Genie in 1971.
Since you have been given permission to work or fix Sargon Try to give it NN or NNU,E and fix the evaluation by giving it an extra 100+ ratings points
:roll:

Is Socrate stronger than Sargon, and where can I get it, ask Larry Kaufman if you can work on it too? :roll:
Who is 17 years old GM Gukesh 2nd at the Candidate in Toronto?
https://indianexpress.com/article/sport ... t-9281394/
mephisto
Posts: 430
Joined: Mon Apr 03, 2006 10:10 am
Location: England

Re: Sargon 1978 UCI Available

Post by mephisto »

No for goodness sake leave Bill to just try and fix the repetition problem and leave the original playing strength as it is. That is what this is all about.
What's my next move? - to the fridge for another beer !!
Paloma
Posts: 1167
Joined: Thu Dec 25, 2008 9:07 pm
Full name: Herbert L

Re: Sargon 1978 UCI Available

Post by Paloma »

+1 :!:
Chessqueen
Posts: 5587
Joined: Wed Sep 05, 2018 2:16 am
Location: Moving
Full name: Jorge Picado

Re: Sargon 1978 UCI Available

Post by Chessqueen »

mephisto wrote: Sun Jan 03, 2021 1:04 pm No for goodness sake leave Bill to just try and fix the repetition problem and leave the original playing strength as it is. That is what this is all about.
You are correct, this old goodie can beat about 70% of the members of this Forum Talkchess, and by just correcting the repetition bug in its algorithm should give it at least another 50 elo, specially when it is winning. But it would be nice if later ob Bill can add the NNUE as a separate version just to compare the Elo gain, which should be at least 150 :roll: -1 :!:
Who is 17 years old GM Gukesh 2nd at the Candidate in Toronto?
https://indianexpress.com/article/sport ... t-9281394/
Chessqueen
Posts: 5587
Joined: Wed Sep 05, 2018 2:16 am
Location: Moving
Full name: Jorge Picado

Re: Sargon 1978 UCI Available

Post by Chessqueen »

Bill Forster wrote: Sun Jan 03, 2021 1:48 am
Chessqueen wrote: Sat Jan 02, 2021 8:40 pm What I do NOT understand neither my trainer online is why did Sargon decided to repeat the three fold and accept a draw instead of playing 43.Qxh6! :?:

[pgn][Event "My New Challenger"]
[Date "2021.01.01"]
[Round "6"]
[White "Sargon-engine"]
[Black "ChessQueen"]
[Result "1/2-1/2"]
[BlackElo "1900"]
[ECO "C46"]
[Opening "Three Knights"]
[Time "13:10:15"]
[Variation "Winawer Defence"]
[WhiteElo "1850"]
[TimeControl "600+3"]
[Termination "normal"]
[PlyCount "91"]


1. e4 e5 2. Nf3 Nc6 3. Nc3 f5 4. d4 fxe4 5. Nxe5 Nf6 6. Bg5 Bb4 7. Be2 Qe7
8. Nxc6 dxc6 9. O-O h6 10. Bxf6 gxf6 11. Bh5+ Kf8 12. Re1 f5 13. a3 Bd6 14.
Kh1 Be6 15. g3 Qg5 16. f4 Qf6 17. Nb1 b6 18. c3 a5 19. Nd2 a4 20. Kg2 c5
21. dxc5 Bxc5 22. Qe2 Bd5 23. Nc4 Kg7 24. Ne5 Rhd8 25. Rad1 Rd6 26. c4 Be6
27. Rxd6 cxd6 28. Nc6 Rc8 29. Na7 Rc7 30. Nb5 Rc8 31. Rd1 Bd7 32. Qd2 Bc6
33. Qc2 Ra8 34. Nc7 Rc8 35. Nd5 Qe6 36. Qc3+ Kg8 37. Nf6+ Kf8 38. Nd5 Kg8
39. Nf6+ Kf8 40. Nd5 Bxd5 41. cxd5 Qd7 42. Qf6+ Kg8 43. Qg6+ Kf8 44. Qf6+
Kg8 45. Qg6+ Kf8 46. Qf6+ {3-fold repetition} 1/2-1/2[/pgn]
There is plenty of discussion of this up-thread, including a recent commitment from me to fix this repetition problem.
Bill Forster wrote: Thu Dec 31, 2020 11:21 pm Thanks to the three posters expressing interest. I will go ahead and work on a new V1.01 release with the goal of fixing the repetition problem whilst respecting the provenance of the program, i.e. without making any changes to the core Sargon 1978 assembly code. Improving the core Sargon 1978 code is an interesting possible project, but that's not what the current project is all about.

I will also add a new "timing" set to the suite of regression tests, to try to get a more satisfactory resolution of the "speed up factor" issue.
Sargon does this (concedes unnecessary repetition draws), basically because it's dumber than a cockroach. It doesn't understand that a bird in the hand is worth two in a bush, it is just as happy to know it retains the option of playing Qxh6 as it would be actually playing Qxh6 and pocketing that pawn. There is no code to detect that this decision condemns it to falling into an infinite loop - the original Z80 program would have happily continued repeating until the end of time because there was no three times repetition draw cutoff in the user interface.

I will (try to?) fix this by adding another layer over the top, when Sargon repeats like this with 43.Qg6 the new layer will reject the move (internally) and say, "No try again, and this time the move 43.Qg6 is not allowed". Only if Sargon's next best move leaves it worse (according to its own eval) will the updated version revert to 43.Qg6. Pretty sure that won't happen here and it will play 43.Qxh6 instead.

Incidentally if you read the old chess computing literature, this sort of thing was a common problem for early chess programs, see for example the famously funny conclusion to Coko v Genie in 1971.

In the meantime until you fix the repetition bug algorithm, I decided to have this match against Snowy rate 1998, but the first game was a hard fought, but I did manage to take it out of the Opening by playing the 1.h3 Clemenz Opening which not too many engines know how to play it best. I did messed up in the Opening by NOT playing 3. Nc3 which is better than 3. Nf3 to keep control of the center better, I also believe that in move 32 I should have taken with my Bishop to keep his pawns from advancing, but I realized it a few moves later when Snowy started to push its pawns chain. Now I will send this game to my trainer so he can analyze it and tell me where I went wrong, that is why I am paying him, so he can teach me from games that I play against either opponents that he pit me against from India even if they are just 7 to 8 years old, future GM, or chess Engines that are close to what he believe that is my current ratings, after 16 months of training with him online. :roll: :mrgreen:

[pgn][Event "My Next Challenger"]
[Site "DESKTOP-OFQ3C0P"]
[Date "2021.01.03"]
[Round "?"]
[White "Pichardos"]
[Black "Snowy_0_2_x64"]
[Result "0-1"]
[BlackElo "1998"]
[ECO "A00"]
[Opening "Clemenz (Mead-Basman-de Klerk-Welling) Opening"]
[Time "14:47:05"]
[WhiteElo "1900"]
[TimeControl "600+3"]
[Termination "normal"]
[PlyCount "108"]
[WhiteType "human"]
[BlackType "program"]

1. h3 e6 2. e4 Nc6 3. Nf3 Bd6 4. d4 Nge7 5. e5 Bb4+ 6. c3 Ba5 7. b4 Bb6 8.
a4 a5 9. b5 Nb8 10. Bd3 d6 11. Qe2 dxe5 12. Nxe5 Nd7 13. Bf4 Nd5 14. Bh2
Nxe5 15. Qxe5 Nxc3 16. Qxg7 Qxd4 17. Qxd4 Bxd4 18. Ra3 Nxb1 19. Bxb1 c6 20.
Rd3 e5 21. Bxe5 Bxe5 22. Re3 f6 23. f4 Be6 24. fxe5 fxe5 25. Rxe5 Kd7 26.
O-O Kd6 27. Rh5 cxb5 28. Rh6 bxa4 29. Bf5 Rae8 30. Re1 Kc7 31. Rhxe6 Rxe6
32. Rxe6 b5 33. Be4 a3 34. Bd5 Rd8 35. Rc6+ Kb7 36. Bf3 b4 37. Rh6+ Kb8 38.
Rb6+ Kc8 39. Ra6 a2 40. Bg4+ Kc7 41. Rxa5 b3 42. Be6 Rd1+ 43. Kh2 b2 44.
Bxa2 Ra1 45. Rb5 Rxa2 46. Kg3 Kc6 47. Rb8 Kc5 48. h4 Kc4 49. h5 Ra3+ 50.
Kf2 Rb3 51. Rc8+ Kd4 52. Rd8+ Ke4 53. Re8+ Kf5 {White resigns}
0-1[/pgn]
Who is 17 years old GM Gukesh 2nd at the Candidate in Toronto?
https://indianexpress.com/article/sport ... t-9281394/
Chessqueen
Posts: 5587
Joined: Wed Sep 05, 2018 2:16 am
Location: Moving
Full name: Jorge Picado

Re: Sargon 1978 UCI Available

Post by Chessqueen »

Chessqueen wrote: Sun Jan 03, 2021 11:02 pm
Bill Forster wrote: Sun Jan 03, 2021 1:48 am
Chessqueen wrote: Sat Jan 02, 2021 8:40 pm What I do NOT understand neither my trainer online is why did Sargon decided to repeat the three fold and accept a draw instead of playing 43.Qxh6! :?:

There is plenty of discussion of this up-thread, including a recent commitment from me to fix this repetition problem.
Bill Forster wrote: Thu Dec 31, 2020 11:21 pm Thanks to the three posters expressing interest. I will go ahead and work on a new V1.01 release with the goal of fixing the repetition problem whilst respecting the provenance of the program, i.e. without making any changes to the core Sargon 1978 assembly code. Improving the core Sargon 1978 code is an interesting possible project, but that's not what the current project is all about.

I will also add a new "timing" set to the suite of regression tests, to try to get a more satisfactory resolution of the "speed up factor" issue.
Sargon does this (concedes unnecessary repetition draws), basically because it's dumber than a cockroach. It doesn't understand that a bird in the hand is worth two in a bush, it is just as happy to know it retains the option of playing Qxh6 as it would be actually playing Qxh6 and pocketing that pawn. There is no code to detect that this decision condemns it to falling into an infinite loop - the original Z80 program would have happily continued repeating until the end of time because there was no three times repetition draw cutoff in the user interface.

I will (try to?) fix this by adding another layer over the top, when Sargon repeats like this with 43.Qg6 the new layer will reject the move (internally) and say, "No try again, and this time the move 43.Qg6 is not allowed". Only if Sargon's next best move leaves it worse (according to its own eval) will the updated version revert to 43.Qg6. Pretty sure that won't happen here and it will play 43.Qxh6 instead.

Incidentally if you read the old chess computing literature, this sort of thing was a common problem for early chess programs, see for example the famously funny conclusion to Coko v Genie in 1971.

In the meantime until you fix the repetition bug algorithm, I decided to have this match against Snowy rate 1998, but the first game was a hard fought, but I did manage to take it out of the Opening by playing the 1.h3 Clemenz Opening which not too many engines know how to play it best. I did messed up in the Opening by NOT playing 3. Nc3 which is better than 3. Nf3 to keep control of the center better, I also believe that in move 32 I should have taken with my Bishop to keep his pawns from advancing, but I realized it a few moves later when Snowy started to push its pawns chain. Now I will send this game to my trainer so he can analyze it and tell me where I went wrong, that is why I am paying him, so he can teach me from games that I play against either opponents that he pit me against from India even if they are just 7 to 8 years old, future GM, or chess Engines that are close to what he believe that is my current ratings, after 16 months of training with him online. :roll: :mrgreen:

I would like to request a change from Tarrasch GUI, and that is to remove the Houdini engine since it is a clone and to replace it with Sargon since it is an improvement of the original specially after fixing the 3 repetition bug in the algorithm.

[pgn][Event "My Next Challenger"]
[Site "DESKTOP-OFQ3C0P"]
[Date "2021.01.03"]
[Round "?"]
[White "Pichardos"]
[Black "Snowy_0_2_x64"]
[Result "0-1"]
[BlackElo "1998"]
[ECO "A00"]
[Opening "Clemenz (Mead-Basman-de Klerk-Welling) Opening"]
[Time "14:47:05"]
[WhiteElo "1900"]
[TimeControl "600+3"]
[Termination "normal"]
[PlyCount "108"]
[WhiteType "human"]
[BlackType "program"]

1. h3 e6 2. e4 Nc6 3. Nf3 Bd6 4. d4 Nge7 5. e5 Bb4+ 6. c3 Ba5 7. b4 Bb6 8.
a4 a5 9. b5 Nb8 10. Bd3 d6 11. Qe2 dxe5 12. Nxe5 Nd7 13. Bf4 Nd5 14. Bh2
Nxe5 15. Qxe5 Nxc3 16. Qxg7 Qxd4 17. Qxd4 Bxd4 18. Ra3 Nxb1 19. Bxb1 c6 20.
Rd3 e5 21. Bxe5 Bxe5 22. Re3 f6 23. f4 Be6 24. fxe5 fxe5 25. Rxe5 Kd7 26.
O-O Kd6 27. Rh5 cxb5 28. Rh6 bxa4 29. Bf5 Rae8 30. Re1 Kc7 31. Rhxe6 Rxe6
32. Rxe6 b5 33. Be4 a3 34. Bd5 Rd8 35. Rc6+ Kb7 36. Bf3 b4 37. Rh6+ Kb8 38.
Rb6+ Kc8 39. Ra6 a2 40. Bg4+ Kc7 41. Rxa5 b3 42. Be6 Rd1+ 43. Kh2 b2 44.
Bxa2 Ra1 45. Rb5 Rxa2 46. Kg3 Kc6 47. Rb8 Kc5 48. h4 Kc4 49. h5 Ra3+ 50.
Kf2 Rb3 51. Rc8+ Kd4 52. Rd8+ Ke4 53. Re8+ Kf5 {White resigns}
0-1



I would like to request a change from Tarrasch GUI, and that is to remove the Houdini engine since it is a clone and to replace it with Sargon since it is an improvement of the original specially after fixing the 3 repetition bug in the algorithm.[/pgn]
Who is 17 years old GM Gukesh 2nd at the Candidate in Toronto?
https://indianexpress.com/article/sport ... t-9281394/
Chessqueen
Posts: 5587
Joined: Wed Sep 05, 2018 2:16 am
Location: Moving
Full name: Jorge Picado

Re: Sargon 1978 UCI Available

Post by Chessqueen »

Bill Forster wrote: Sun Jan 03, 2021 1:48 am
Chessqueen wrote: Sat Jan 02, 2021 8:40 pm What I do NOT understand neither my trainer online is why did Sargon decided to repeat the three fold and accept a draw instead of playing 43.Qxh6! :?:

[pgn][Event "My New Challenger"]
[Date "2021.01.01"]
[Round "6"]
[White "Sargon-engine"]
[Black "ChessQueen"]
[Result "1/2-1/2"]
[BlackElo "1900"]
[ECO "C46"]
[Opening "Three Knights"]
[Time "13:10:15"]
[Variation "Winawer Defence"]
[WhiteElo "1850"]
[TimeControl "600+3"]
[Termination "normal"]
[PlyCount "91"]


1. e4 e5 2. Nf3 Nc6 3. Nc3 f5 4. d4 fxe4 5. Nxe5 Nf6 6. Bg5 Bb4 7. Be2 Qe7
8. Nxc6 dxc6 9. O-O h6 10. Bxf6 gxf6 11. Bh5+ Kf8 12. Re1 f5 13. a3 Bd6 14.
Kh1 Be6 15. g3 Qg5 16. f4 Qf6 17. Nb1 b6 18. c3 a5 19. Nd2 a4 20. Kg2 c5
21. dxc5 Bxc5 22. Qe2 Bd5 23. Nc4 Kg7 24. Ne5 Rhd8 25. Rad1 Rd6 26. c4 Be6
27. Rxd6 cxd6 28. Nc6 Rc8 29. Na7 Rc7 30. Nb5 Rc8 31. Rd1 Bd7 32. Qd2 Bc6
33. Qc2 Ra8 34. Nc7 Rc8 35. Nd5 Qe6 36. Qc3+ Kg8 37. Nf6+ Kf8 38. Nd5 Kg8
39. Nf6+ Kf8 40. Nd5 Bxd5 41. cxd5 Qd7 42. Qf6+ Kg8 43. Qg6+ Kf8 44. Qf6+
Kg8 45. Qg6+ Kf8 46. Qf6+ {3-fold repetition} 1/2-1/2[/pgn]
There is plenty of discussion of this up-thread, including a recent commitment from me to fix this repetition problem.
Bill Forster wrote: Thu Dec 31, 2020 11:21 pm Thanks to the three posters expressing interest. I will go ahead and work on a new V1.01 release with the goal of fixing the repetition problem whilst respecting the provenance of the program, i.e. without making any changes to the core Sargon 1978 assembly code. Improving the core Sargon 1978 code is an interesting possible project, but that's not what the current project is all about.

I will also add a new "timing" set to the suite of regression tests, to try to get a more satisfactory resolution of the "speed up factor" issue.
Sargon does this (concedes unnecessary repetition draws), basically because it's dumber than a cockroach. It doesn't understand that a bird in the hand is worth two in a bush, it is just as happy to know it retains the option of playing Qxh6 as it would be actually playing Qxh6 and pocketing that pawn. There is no code to detect that this decision condemns it to falling into an infinite loop - the original Z80 program would have happily continued repeating until the end of time because there was no three times repetition draw cutoff in the user interface.

I will (try to?) fix this by adding another layer over the top, when Sargon repeats like this with 43.Qg6 the new layer will reject the move (internally) and say, "No try again, and this time the move 43.Qg6 is not allowed". Only if Sargon's next best move leaves it worse (according to its own eval) will the updated version revert to 43.Qg6. Pretty sure that won't happen here and it will play 43.Qxh6 instead.

Incidentally if you read the old chess computing literature, this sort of thing was a common problem for early chess programs, see for example the famously funny conclusion to Coko v Genie in 1971.
Bill how much longer will it take you to correct the repetition bug in Sargon so I can play another 10 games, since Sargon is so close to my rating ?
Who is 17 years old GM Gukesh 2nd at the Candidate in Toronto?
https://indianexpress.com/article/sport ... t-9281394/
Chessqueen
Posts: 5587
Joined: Wed Sep 05, 2018 2:16 am
Location: Moving
Full name: Jorge Picado

Re: Sargon 1978 UCI Available

Post by Chessqueen »

Here is another example where I wanted to test Sargon to see if it knew the opposition principle, it took the bait of my pawn offering and it ended in a draw :roll:

[pgn]8/6p1/3k4/8/3K1PP1/8/8/8 w - - 0 1[/pgn]
[Event "Pawns ending"]
[Date "2021.01.09"]
[Round "?"]
[White "Sargon-engine"]
[Black "ChessQueen"]
[Result "1/2-1/2"]
[BlackElo "1900"]
[Time "13:39:43"]
[WhiteElo "1850"]
[TimeControl "900+3"]
[SetUp "1"]
[PlyCount "24"]


1. Kc3 Kc5 2. Kd3 Kd5 3. Ke3 Ke6 4. f5+ Ke5 5. Kf3 g6 6. fxg6 Kf6 7. Ke4
Kxg6 8. Kf3 Kg7 9. Ke4 Kf6 10. Kf3 Kg7 11. Ke4 Kg6 12. Kf3 Kg7 {3-fold
repetition} 1/2-1/2
Who is 17 years old GM Gukesh 2nd at the Candidate in Toronto?
https://indianexpress.com/article/sport ... t-9281394/