JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Discussion about development of draughts in the time of computer and Internet.
mig
Posts: 33
Joined: Thu Mar 16, 2017 13:09
Real name: Michel Gutierrez

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by mig » Tue May 02, 2017 22:21

Krzysztof Grzelak wrote:Thank you for all your responses Michel. I would add some options in the program.

1. saving batches in format pdn
2. add a variant as the program thinks of the move
3. add an option so the program can play for the number of moves, for example 20 minutes for 75 moves
Thanks for the suggestions.

1. it's there. You can save the PDN from the history window.
2. so it would be cloning the board, right ?
3. yes, the clocking options are currently basic. I'll look in more details what programs like XBoard do, or do you have other suggestions of what app to get inspiration from ?

mig
Posts: 33
Joined: Thu Mar 16, 2017 13:09
Real name: Michel Gutierrez

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by mig » Sun May 07, 2017 11:16

Just released version 0.9.5.

This version has the ability to clone a board, so you can experiment variations while keeping the original board intact.
There is also more clock options, like adding a given number of seconds at each move, and re-add the original time credit after a given number of moves.
JoclyBoard 0.9.5 now relies on Jocly 0.9.5 which has a number of fixes in the games: Turkish draughts, Alquerque, Metamachy, Margo, ...

Krzysztof Grzelak
Posts: 1368
Joined: Thu Jun 20, 2013 17:16
Real name: Krzysztof Grzelak

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by Krzysztof Grzelak » Tue May 09, 2017 11:25

mig wrote:Just released version 0.9.5.

This version has the ability to clone a board, so you can experiment variations while keeping the original board intact.
There is also more clock options, like adding a given number of seconds at each move, and re-add the original time credit after a given number of moves.
JoclyBoard 0.9.5 now relies on Jocly 0.9.5 which has a number of fixes in the games: Turkish draughts, Alquerque, Metamachy, Margo, ...
Today I will play your program :D :D :D

Krzysztof Grzelak
Posts: 1368
Joined: Thu Jun 20, 2013 17:16
Real name: Krzysztof Grzelak

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by Krzysztof Grzelak » Tue May 09, 2017 12:44

Unfortunately, I have to work on the correct save batches in format pdn. The record should look like this.

[Event "Game"]
[Date "2017.05.09"]
[White "Krzysztof"]
[Black "Krzysztof"]
[Result "0-2"]
[FEN W:W27,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50:B1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,24"]
1. 33-28 17-22 2. 28x17 11x31 3. 36x27 18-23 4. 41-36 14-19 5. 34-29 23x34 6. 39x30 20-25 7. 44-39 25x34 8. 40x20 15x24 9. 46-41 6-11 10. 45-40 10-14 11. 40-34 19-23 12. 38-33 5-10 13. 34-29 23x34 14. 39x19 13x24 15. 32-28 12-18 16. 36-31 9-13 17. 41-36 7-12 18. 27-22 18x27 19. 31x22 14-19 20. 43-38 11-17 21. 22x11 16x7 22. 36-31 13-18 23. 48-43 8-13 24. 31-27 18-23 25. 38-32 7-11 26. 43-39 2-8 27. 50-45 10-15 28. 37-31 15-20 29. 49-44 20-25 30. 44-40 12-17 31. 42-37 11-16 32. 40-34 8-12 33. 31-26 4-9 34. 47-42 3-8 35. 28-22 17x28 36. 33x22 12-17 37. 22x11 16x7 38. 42-38 7-11 39. 37-31 8-12 40. 38-33 12-17 41. 27-21 13-18 42. 21x12 18x7 43. 31-27 11-17 44. 27-21 17-22 45. 32-27 22x31 46. 26x37 7-12 47. 37-32 9-13 48. 32-27 13-18 49. 45-40 1-7 50. 35-30 24x44 51. 39x50 19-24 52. 34-29 23x34 53. 33-28 * 3. 41-37 7-12 4. 46-41 14-20 5. 27-22 18x27 6. 31x22 17x28 7. 33x22 1-7 8. 37-31 12-17 9. 32-27 17x28 10. 27-21 16x27 11. 31x33 13-18 12. 30-25 7-12 13. 25x14 9x20 14. 41-37 4-9 15. 38-32 10-14 16. 33-28 5-10 17. 40-34 11-17 18. 36-31 2-7 19. 45-40 7-11 20. 43-38 9-13 21. 49-43 17-22 22. 28x17 11x22 23. 32-27 20-25 24. 50-45 24-29 25. 37-32 22-28 26. 31-26 28x37 27. 42x31 12-17 28. 38-32 17-22 29. 43-38 14-20 30. 27-21 10-14 31. 32-27 20-24 32. 21-16 8-12 33. 38-32 15-20 34. 26-21 22-28 35. 31-26 28x37 36. 27-22 18x27 37. 21x41 13-18 38. 41-36 12-17 39. 16-11 17-21 40. 26x17 18-22 41. 17x28 6x17 42. 28-22 17x28 43. 36-31 3-8 44. 31-26 29-33 45. 26-21 8-13 46. 21-16 24-30 47. 35x15 28-32 48. 39x37 14-20 49. 15x24 19x50 50. 48-43 50-6 51. 40-34 13-19 52. 37-32 19-24 53. 45-40 24-30 54. 43-39 6x35 55. 16-11 30x39 56. 11-6 23-29 57. 6-1 29-33 58. 47-42 39-43 *

For now, when I browse the file from the record, I do not know very much about it. Show the variant over which the program thinks of the game.

Image

mig
Posts: 33
Joined: Thu Mar 16, 2017 13:09
Real name: Michel Gutierrez

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by mig » Tue May 09, 2017 12:51

What you need to do is:
  • in the main board window, move the mouse over the footer to make icons appear
  • click the "Show history" icon
  • this opens the history window
  • in the history window, pick the footer icon "Save PJN"
  • "PJN" is a generalisation of PGN and PDN to any game, you can rename the default extension to ".pdn"

Krzysztof Grzelak
Posts: 1368
Joined: Thu Jun 20, 2013 17:16
Real name: Krzysztof Grzelak

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by Krzysztof Grzelak » Tue May 09, 2017 13:00

In the "History" pane there is no such option "Save PJN". It's just an option "Save book".

mig
Posts: 33
Joined: Thu Mar 16, 2017 13:09
Real name: Michel Gutierrez

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by mig » Tue May 09, 2017 13:37

Krzysztof Grzelak wrote:In the "History" pane there is no such option "Save PJN". It's just an option "Save book".
Sorry, that is it, "Save book".

mig
Posts: 33
Joined: Thu Mar 16, 2017 13:09
Real name: Michel Gutierrez

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by mig » Thu May 11, 2017 13:17

Krzysztof Grzelak wrote:Unfortunately, I have to work on the correct save batches in format pdn. The record should look like this.
[...]
Did it work for your needs ?

Krzysztof Grzelak
Posts: 1368
Joined: Thu Jun 20, 2013 17:16
Real name: Krzysztof Grzelak

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by Krzysztof Grzelak » Thu May 11, 2017 13:39

mig wrote:Did it work for your needs ?
Very save of the party department but looks somehow very strange.

mig
Posts: 33
Joined: Thu Mar 16, 2017 13:09
Real name: Michel Gutierrez

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by mig » Thu May 11, 2017 13:47

Krzysztof Grzelak wrote:Very save of the party department but looks somehow very strange.
I'm afraid i did not understand. Could you elaborate ?

Krzysztof Grzelak
Posts: 1368
Joined: Thu Jun 20, 2013 17:16
Real name: Krzysztof Grzelak

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by Krzysztof Grzelak » Thu May 11, 2017 17:44

The program this way is saving parties, please DOWNLOAD and will watch. As for me it isn't pdn file.The program is saving in the file json.

http://www.rapidshare.com.cn/sOlUwaq

mig
Posts: 33
Joined: Thu Mar 16, 2017 13:09
Real name: Michel Gutierrez

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by mig » Thu May 11, 2017 18:13

Krzysztof Grzelak wrote:The program this way is saving parties, please DOWNLOAD and will watch. As for me it isn't pdn file.The program is saving in the file json.

http://www.rapidshare.com.cn/sOlUwaq
What you did is that you used the Save button from the board window. This, indeed, saves the game in Jocly native format, which is JSON.

If instead you click the History in the board window, then, from the history window the Save book button, you get something like this:

Code: Select all

[JoclyGame "draughts"]
[Date "2017.5.11"]
[White "Player A"]
[Black "Player B"]
[PlyCount "4"]

1. 33-28 17-22 2. 28x17 12x21
which is valid parse-able PDN format.

Krzysztof Grzelak
Posts: 1368
Joined: Thu Jun 20, 2013 17:16
Real name: Krzysztof Grzelak

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by Krzysztof Grzelak » Thu May 11, 2017 18:29

Yes it's true. Only why there is no separate save option for batches. I never would have thought that the "Save book" option saves lots in pdn format.

mig
Posts: 33
Joined: Thu Mar 16, 2017 13:09
Real name: Michel Gutierrez

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by mig » Thu May 11, 2017 19:11

Krzysztof Grzelak wrote:Yes it's true. Only why there is no separate save option for batches. I never would have thought that the "Save book" option saves lots in pdn format.
Well, there is an "Open book" button in the game window to open PDN and PGN (generalized as PJN), so it seemed logical to have a "Save book".

JoclyBoard works with many games, not only Draughts or Chess, and the only way to make sure saving/loading works well for any game is using the native JSON format.

So maybe we could keep the wording Save/Load for native format and have Import/Export for PDN/PGN/PJN. Would it have been more intuitive for you ?

mig
Posts: 33
Joined: Thu Mar 16, 2017 13:09
Real name: Michel Gutierrez

Re: JoclyBoard, a multi-platform GUI (+AI) supporting Hub and DXP

Post by mig » Sat May 13, 2017 09:59

The latest version of JoclyBoard (0.9.6) has the capability to record video from the board.



The video above has been generated from this PDN:

Code: Select all

[Event "NN"]
[Site "?"]
[Date "1880.01.01"]
[Round "?"]
[White "Baledent,G. (George)"]
[Black "Crassier,N."]
[Result "1-0"]
[GameType "20"]
[PlyCount "73"]
[EventDate "1880.??.??"]

1. 34-30 20-25 2. 39-34 14-20
3. 33-28 10-14 4. 44-39 5-10 5. 39-33 20-24 6. 31-27 15-20 7. 36-31
17-22 8. 28x17 12x21 9. 41-36 7-12 10. 27-22 18x27 11. 31x22 21-26
12. 33-28 2-7 13. 50-44 16-21 14. 44-39 11-16 15. 39-33 10-15
16. 28-23 19x17 17. 30x10 9-14 18. 10x19 13x24 19. 43-39 17-22
20. 49-43 4-9 21. 34-30 25x34 22. 39x19 9-13 23. 32-28 13x24
24. 28x17 12-18 25. 40-34 21x12 26. 34-30 3-9 27. 30x19 9-13
28. 43-39 13x24 29. 38-32 18-23 30. 42-38 7-11 31. 47-42 11-17
32. 33-28 24-29 33. 28x19 6-11 34. 35-30 20-24 35. 19-13 8x19
36. 39-33 24x35 37. 33x13 1-0
How to proceed:
  • in JoclyBoard, pick the International Draughts game (not quick play, the game window instead)
  • click Open book and choose a valid draughts PDN
  • in the Book window, pick the game to open the board (a PDN may have several games)
  • in the game transcript window, click the last move you want to record, the board adjust to the current position
  • in the board window, click History button to show the current game thread
  • in the History window, click the left-most button to go to the very beginning of the game
  • in the Board window, click the Capture video button and pick a location for the video file
  • in the History window, click the Play button to start replaying the game
  • wait for the game to finish
  • in the Board window, click the red button to stop recording
  • you now have a nice video you can send to YouTube
Things you should know:
  • the entire board window is recorded. In this example i replayed an existing PDN but it can be whatever you do in the board window
  • when recording there is no rush to have. the recording is automatically put on hold if the board view does not change after 1 second and resume automatically, so if you take 5 minutes thinking to your next move, it won't result in a huge file nor boring video
  • do not resize the window while doing a video capture, zooming or changing the view angle is ok
  • be reasonable: video capture is CPU intensive and capabilities depend on your hardware, keep the board window at a reasonable size when capturing
  • next to the video capture button, there is a still picture capture button for getting and image from the board view
  • sound is not recorded
Last edited by mig on Sat May 13, 2017 11:20, edited 1 time in total.

Post Reply