Gothic Vortex 2.2.9 (10x8 Gothic Chess) with 4 piece TBs

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Ed Trice
Posts: 100
Joined: Fri Sep 19, 2014 5:03 am

Gothic Vortex 2.2.9 (10x8 Gothic Chess) with 4 piece TBs

Post by Ed Trice »

I found version 2.2.9 of Gothic Vortex, with the 4-piece Gothic Chess tablebases, and am making it available as a free download.

http://lightningcloudcomputing.com/vortex.zip

Image

It has an opening book of around 30,000 moves and the ability to announce a mate from a distance of 72 moves.

Image

It does not support "countdown" time controls, only fixed time per move. It is based on the last version of Crafty with rotated bitboards, so it goes back to about 2004 or 2005 I think.

The tablebases can be probed in RAM during the search, so that if you set up a 6-piece position with a trade within the bounds of the horizon of search, it will be able to forecast the distance of the extended mate.

Note: This was an intermediate build. There is some "king safety" code that was in the process of being re-written that was not fully tested and also not completed. That is why you will see a text file "King Safety Values" being created and appended to when you launch the program. From what I can tell, this weakens the program considerably.
User avatar
hgm
Posts: 27789
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Gothic Vortex 2.2.9 (10x8 Gothic Chess) with 4 piece TBs

Post by hgm »

Thank you, got it! Had no time to try it out yet, though.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Gothic Vortex 2.2.9 (10x8 Gothic Chess) with 4 piece TBs

Post by Ferdy »

Thank you for sharing, this is a strong engine got a draw with my latest version with unbalance material in the ending using tc 1 minute per move, opening book is interesting too.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Gothic Vortex 2.2.9 (10x8 Gothic Chess) with 4 piece TBs

Post by Ferdy »

Here it is. Bihasa without book, Vortex is using its own book.

Code: Select all

[Event "Computer Chess Game"]
[Site "INTEL-PC"]
[Date "2014.11.08"]
[Round "-"]
[White "Gothic Vortex 2.2.9"]
[Black "Bihasa v4.2"]
[Result "1/2-1/2"]
[TimeControl "st 60s"]
[Variant "gothic"]
[Annotator "1... -0.24"]

1. d4 Nh6 {-0.24/16 1:00} 2. i3 d5 {+0.36/17} 3. Bi2 Nc6 {+0.44/16} 4. Bxc8
Rxc8 {+0.40/19} 5. Ai2 g6 {+0.80/18} 6. Nh3 Bxd4 {+0.80/17} 7. O-O j5
{+0.76/15} 8. Cd3 f5 {+1.04/17} 9. Nc3 j4 {+1.00/16} 10. Nxj4 e5 {+0.96/16}
11. Nh3 e4 {+1.16/16} 12. Cg3 Bf6 {+1.12/15} 13. Nf4 Ng4 {+0.88/13} 14. Ah3
Bxc3 {+0.94/12} 15. bxc3 Qd6 {+0.04/13} 16. a4 Ne7 {+0.40/15} 17. f3 Ne5
{+0.36/14} 18. Ba3 c5 {+0.76/14} 19. fxe4 dxe4 {+0.88/16} 20. Qxd6 Cxd6
{+0.58/17} 21. Rhd1 Cc6 {+1.08/15} 22. Rdb1 b6 {+1.08/16} 23. a5 h6
{+1.40/16} 24. axb6 axb6 {+1.24/17} 25. Ai4 Ah7 {+1.36/15} 26. Nh3 O-O
{+1.40/17} 27. Bc1 Af6 {+1.44/15} 28. Ra6 Nc4 {+1.48/15} 29. Ra4 Rcg8
{+1.78/15} 30. Rxc4 Ca5 {+2.48/19} 31. Rxb6 Ae5 {+1.80/19} 32. Re6 Axg3
{+1.08/22} 33. Axg3 Cxc4 {+0.68/22} 34. Rxe7 Cxc3 {+0.72/22} 35. Bf4 Cd5
{+0.68/20} 36. Bd6 Rd8 {+0.48/20} 37. Re6 Rhg8 {+0.84/21} 38. Be7 Rb8
{+0.56/19} 39. Af4 Cd1+ {+0.56/21} 40. Ki2 g5 {+0.76/21} 41. Rd6 Cc3
{+0.00/19} 42. Ae6 Ce3 {+0.00/19} 43. Rd7 Rg6 {+0.24/20} 44. Af7 Rbg8
{-0.10/22} 45. Rd8 Kh7 {+0.00/23} 46. Ad5 Cg4 {-0.08/25} 47. Rxg8 Rxg8
{+0.00/28} 48. Bxc5 Re8 {-0.60/22} 49. Nf2 Ce5 {-0.96/24} 50. Af6+ Kg6
{-0.72/25} 51. Axe5+ Rxe5 {-0.76/27} 52. Bd4 Ra5 {-0.84/24} 53. Nd1 Ra4
{+0.00/20} 54. Bb2 f4 {+0.00/21} 55. h3 e3 {+0.04/22} 56. j4 Rc4 {+0.00/22}
57. Nc3 Rb4 {+0.00/24} 58. Ba1 Kh7 {+0.00/23} 59. i4 i6 {+0.00/23} 60. Kh2
Rc4 {+0.00/24} 61. Ki2 Rb4 {+0.00/32} 62. Kh2 Rc4 {+0.00/26} 63. Ki3
1/2-1/2 {User Adjudication}
Ed Trice
Posts: 100
Joined: Fri Sep 19, 2014 5:03 am

Re: Gothic Vortex 2.2.9 (10x8 Gothic Chess) with 4 piece TBs

Post by Ed Trice »

Ferdy wrote:Here it is. Bihasa without book, Vortex is using its own book.

Code: Select all

[Event "Computer Chess Game"]
[Site "INTEL-PC"]
[Date "2014.11.08"]
[Round "-"]
[White "Gothic Vortex 2.2.9"]
[Black "Bihasa v4.2"]
[Result "1/2-1/2"]
[TimeControl "st 60s"]
[Variant "gothic"]
[Annotator "1... -0.24"]

1. d4 Nh6 {-0.24/16 1:00} 2. i3 d5 {+0.36/17} 3. Bi2 Nc6 {+0.44/16} 4. Bxc8
Rxc8 {+0.40/19} 5. Ai2 g6 {+0.80/18} 6. Nh3 Bxd4 {+0.80/17} 7. O-O j5
{+0.76/15} 8. Cd3 f5 {+1.04/17} 9. Nc3 j4 {+1.00/16} 10. Nxj4 e5 {+0.96/16}
11. Nh3 e4 {+1.16/16} 12. Cg3 Bf6 {+1.12/15} 13. Nf4 Ng4 {+0.88/13} 14. Ah3
Bxc3 {+0.94/12} 15. bxc3 Qd6 {+0.04/13} 16. a4 Ne7 {+0.40/15} 17. f3 Ne5
{+0.36/14} 18. Ba3 c5 {+0.76/14} 19. fxe4 dxe4 {+0.88/16} 20. Qxd6 Cxd6
{+0.58/17} 21. Rhd1 Cc6 {+1.08/15} 22. Rdb1 b6 {+1.08/16} 23. a5 h6
{+1.40/16} 24. axb6 axb6 {+1.24/17} 25. Ai4 Ah7 {+1.36/15} 26. Nh3 O-O
{+1.40/17} 27. Bc1 Af6 {+1.44/15} 28. Ra6 Nc4 {+1.48/15} 29. Ra4 Rcg8
{+1.78/15} 30. Rxc4 Ca5 {+2.48/19} 31. Rxb6 Ae5 {+1.80/19} 32. Re6 Axg3
{+1.08/22} 33. Axg3 Cxc4 {+0.68/22} 34. Rxe7 Cxc3 {+0.72/22} 35. Bf4 Cd5
{+0.68/20} 36. Bd6 Rd8 {+0.48/20} 37. Re6 Rhg8 {+0.84/21} 38. Be7 Rb8
{+0.56/19} 39. Af4 Cd1+ {+0.56/21} 40. Ki2 g5 {+0.76/21} 41. Rd6 Cc3
{+0.00/19} 42. Ae6 Ce3 {+0.00/19} 43. Rd7 Rg6 {+0.24/20} 44. Af7 Rbg8
{-0.10/22} 45. Rd8 Kh7 {+0.00/23} 46. Ad5 Cg4 {-0.08/25} 47. Rxg8 Rxg8
{+0.00/28} 48. Bxc5 Re8 {-0.60/22} 49. Nf2 Ce5 {-0.96/24} 50. Af6+ Kg6
{-0.72/25} 51. Axe5+ Rxe5 {-0.76/27} 52. Bd4 Ra5 {-0.84/24} 53. Nd1 Ra4
{+0.00/20} 54. Bb2 f4 {+0.00/21} 55. h3 e3 {+0.04/22} 56. j4 Rc4 {+0.00/22}
57. Nc3 Rb4 {+0.00/24} 58. Ba1 Kh7 {+0.00/23} 59. i4 i6 {+0.00/23} 60. Kh2
Rc4 {+0.00/24} 61. Ki2 Rb4 {+0.00/32} 62. Kh2 Rc4 {+0.00/26} 63. Ki3
1/2-1/2 {User Adjudication}
Interesting game. Here is the final position right before white's last move:

Image

It's a strange sort of fortress position if white wants to keep things static. Black can't get the rook to the back rank since the knight holds d1 and b1 and and move of the rook to the a file white has Bb2. I set my version on Infinite Search to see how it would play if it could search deeper like your program does so well.

Notice it was able to hit the tablebases at ply 16. That is because I have the full 5-piece set loaded on my machine. That means it searched deeply enough with the extensions to encounter 1 5-piece position. It counts the "database hits" on the far right. It returns the "mate in x" information to the search tree also, so if it hits enough positions, it can forecast a win from a great distance.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Gothic Vortex 2.2.9 (10x8 Gothic Chess) with 4 piece TBs

Post by Ferdy »

Does Gothic Vortex able to read a log file for example and execute the move
based from the log? I am thinking of playing this gui vs other engines/winboard automatically.
Ed Trice
Posts: 100
Joined: Fri Sep 19, 2014 5:03 am

Re: Gothic Vortex 2.2.9 (10x8 Gothic Chess) with 4 piece TBs

Post by Ed Trice »

It can play that way, yes, but I forget how to do it. It has a menu item called "Matches" where it will write its move to a file. If your program can read the file, and reply back to the file, the move will be made on the Vortex board.

:)

Let me see if I have the documentation around.
User avatar
hgm
Posts: 27789
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Gothic Vortex 2.2.9 (10x8 Gothic Chess) with 4 piece TBs

Post by hgm »

That is an interesting feature. It would be easy to make a 'Vortex2WB' adapter that loads as a WinBoard engine, starts up Vortex, and then plays a game by reading from or writing to the file. It might still be needed to start Vortex by hand and set it to use the file and set the right time per move. But at least the game would then conduct itself after that.

Note that in case you can still recover the Vortex source code, my offer to hack a WinBoard interface in it that could run Vortex directly as a WB engine still stands. A few years ago I did manage to do that for ChessV, (which was developed on MSVC), and in the end it wasn't that difficult. What did the trick was compiling it as a console application rather than a GUI application, and include a function main() which would call WinMain() (which is the program that would be called when you link it as GUI application). The difference is that in that case it keeps stdin and stdout open.

Then I let main() just start another thread for reading WB commands from stdin, before the main thread launched ChessV's own GUI through calling WinMain. The WB commands would occasionally contain a move to be played, and I would just translate the from- and to-square to coordinates for a mouse click, and call ChessV's mouse event handler with those, so it would be thinking a user entered that move. I only had to locate the code where ChessV would play a move itself, to add a print statement there that would also send the move to stdout, so WinBoard would get it. ChessV would just be running with its own GUI, but at the same time communicate its moves to WinBoard, and allow the latter to operate its mouse and critical menus.

I could probably use the exact same code for main() and the input thread. The only thing to figure out is how to translate square coords to mouse coords and how to call the mouse event handler with them, and where to insert the print statement to print the move.
Ed Trice
Posts: 100
Joined: Fri Sep 19, 2014 5:03 am

Re: Gothic Vortex 2.2.9 (10x8 Gothic Chess) with 4 piece TBs

Post by Ed Trice »

hgm wrote:That is an interesting feature. It would be easy to make a 'Vortex2WB' adapter that loads as a WinBoard engine, starts up Vortex, and then plays a game by reading from or writing to the file. It might still be needed to start Vortex by hand and set it to use the file and set the right time per move. But at least the game would then conduct itself after that.
Here is one way to test to see if it works. Launch Vortex, and a copy of Vortex, in the same directory.

Under the MATCHES menu from the second program to launch, select START MATCH BUT PLAY BACK.

From the first program, select CONFIGURE MATCH and just hit the OK button. Then select START MATCH AND SEND FIRST WHITE MOVE.

It should generate some debugging dialog boxes, and drawing moves on each others' boards.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Gothic Vortex 2.2.9 (10x8 Gothic Chess) with 4 piece TBs

Post by Ferdy »

Ed Trice wrote:
hgm wrote:That is an interesting feature. It would be easy to make a 'Vortex2WB' adapter that loads as a WinBoard engine, starts up Vortex, and then plays a game by reading from or writing to the file. It might still be needed to start Vortex by hand and set it to use the file and set the right time per move. But at least the game would then conduct itself after that.
Here is one way to test to see if it works. Launch Vortex, and a copy of Vortex, in the same directory.

Under the MATCHES menu from the second program to launch, select START MATCH BUT PLAY BACK.

From the first program, select CONFIGURE MATCH and just hit the OK button. Then select START MATCH AND SEND FIRST WHITE MOVE.

It should generate some debugging dialog boxes, and drawing moves on each others' boards.
Thank you I was able to do the match. We hope HGM will be able to create an adaptor for it.