Thanks,
I will figure it out, np.
I am not a fan of textbased protocols, I know very little about them. Perhaps the definition should state it's in random order. Don't read to much into it i'm not a fan of reading.
I'm working on a scan based bot for the live playing on Slagzet.com; I hope to have something working well enough by tomorrow evening.
Cheers,
Maurits
Hub-1 protocol
-
- Posts: 221
- Joined: Thu Nov 27, 2008 19:22
- Contact:
Re: Hub-1 protocol
http://slagzet.com
-
- Posts: 299
- Joined: Tue Jul 07, 2015 07:48
- Real name: Fabien Letouzey
Re: Hub-1 protocol
You can have a look at what Mig did in JoclyBoard, which is written in JS. He only used a subset of the protocol to run a game.Maurits Meijer wrote:I am not a fan of textbased protocols, I know very little about them. Perhaps the definition should state it's in random order. Don't read to much into it i'm not a fan of reading.
I'm working on a scan based bot for the live playing on Slagzet.com; I hope to have something working well enough by tomorrow evening.
If you strip the captured pieces from the move string, you more or less obtain standard notation. But then, it doesn't work for ambiguous moves anymore.
Fabien.
Re: Hub-1 protocol
What i do with JoclyBoard, is that i order the captured pieces in the capture moves returned by scan, i do the same for the moves generated by my own Jocly implementation, so i can compare identically coded moves.
Fabien Letouzey wrote:You can have a look at what Mig did in JoclyBoard, which is written in JS. He only used a subset of the protocol to run a game.Maurits Meijer wrote:I am not a fan of textbased protocols, I know very little about them. Perhaps the definition should state it's in random order. Don't read to much into it i'm not a fan of reading.
I'm working on a scan based bot for the live playing on Slagzet.com; I hope to have something working well enough by tomorrow evening.
If you strip the captured pieces from the move string, you more or less obtain standard notation. But then, it doesn't work for ambiguous moves anymore.
Fabien.
-
- Posts: 221
- Joined: Thu Nov 27, 2008 19:22
- Contact:
Re: Hub-1 protocol
Thanks. I'm just gonna sort all the field numbers.mig wrote:What i do with JoclyBoard, is that i order the captured pieces in the capture moves returned by scan, i do the same for the moves generated by my own Jocly implementation, so i can compare identically coded moves.
http://slagzet.com
-
- Posts: 22
- Joined: Wed Mar 19, 2014 12:59
- Real name: Arthur Kalverboer
- Location: Groningen, The Netherlands
Re: Hub-1 protocol
Web interface for Scan.
I have created a web interface to play draughts against an engine that supports the hub protocol.
Practically speaking, it means you can use your web browser to play against the Scan engine of Fabien Letouzey.
I expect it is platform independent so you can use it with Windows, macOS or Linux.
To make it working, what you have to do is:
- Install Scan locally or on your network.
- Copy the executable file for your OS from the site: WebSocket daemon.
- Start Scan in the terminal with the WebSocket daemon (***).
- Start the web interface with your browser, make a connection with Scan and start the initialization.
- You are now ready to play a game against Scan.
(***) Reserve some time to find out which command you had to use to start Scan.
On my Linux OS I use the command: ./websocketd --port=27532 ./scan hub
The port I use is the default port number of the web interface.
To keep it simple I put the WebSocket daemon executable in the same folder as the scan executable.
See the WebSocket daemon page to understand how to start Scan.
For me it works great. You can find the web interface [url=http://svg_experimenten.deds.nl/whub_client/whub.html]here[/url].
For the sake of fun I included two very simple build-in engines: a random player and a minimax player.
Enjoy!
I have created a web interface to play draughts against an engine that supports the hub protocol.
Practically speaking, it means you can use your web browser to play against the Scan engine of Fabien Letouzey.
I expect it is platform independent so you can use it with Windows, macOS or Linux.
To make it working, what you have to do is:
- Install Scan locally or on your network.
- Copy the executable file for your OS from the site: WebSocket daemon.
- Start Scan in the terminal with the WebSocket daemon (***).
- Start the web interface with your browser, make a connection with Scan and start the initialization.
- You are now ready to play a game against Scan.
(***) Reserve some time to find out which command you had to use to start Scan.
On my Linux OS I use the command: ./websocketd --port=27532 ./scan hub
The port I use is the default port number of the web interface.
To keep it simple I put the WebSocket daemon executable in the same folder as the scan executable.
See the WebSocket daemon page to understand how to start Scan.
For me it works great. You can find the web interface [url=http://svg_experimenten.deds.nl/whub_client/whub.html]here[/url].
For the sake of fun I included two very simple build-in engines: a random player and a minimax player.
Enjoy!
Re: Hub-1 protocol
Thank very much ArthurkArthurK wrote:Web interface for Scan.
I have created a web interface to play draughts against an engine that supports the hub protocol.
Practically speaking, it means you can use your web browser to play against the Scan engine of Fabien Letouzey.
I expect it is platform independent so you can use it with Windows, macOS or Linux.
To make it working, what you have to do is:
- Install Scan locally or on your network.
- Copy the executable file for your OS from the site: WebSocket daemon.
- Start Scan in the terminal with the WebSocket daemon (***).
- Start the web interface with your browser, make a connection with Scan and start the initialization.
- You are now ready to play a game against Scan.
(***) Reserve some time to find out which command you had to use to start Scan.
On my Linux OS I use the command: ./websocketd --port=27532 ./scan hub
The port I use is the default port number of the web interface.
To keep it simple I put the WebSocket daemon executable in the same folder as the scan executable.
See the WebSocket daemon page to understand how to start Scan.
For me it works great. You can find the web interface [url=http://svg_experimenten.deds.nl/whub_client/whub.html]here[/url].
For the sake of fun I included two very simple build-in engines: a random player and a minimax player.
Enjoy!
After severals try, i succefully done it with Windows OS.
My main question it's how to connect Scan with the websocketd on a network or on an server? ie is'it possible to upload scan on a server and play without our physical computer. Play o Android for example.
Thank
Sidiki..
- Attachments
-
- whub1.JPG (84.41 KiB) Viewed 8448 times
-
- Posts: 22
- Joined: Wed Mar 19, 2014 12:59
- Real name: Arthur Kalverboer
- Location: Groningen, The Netherlands
Re: Hub-1 protocol
Web interface for Scan.
Congratulations Sidiki! I am glad to hear it works for you on a Windows computer.
Indeed, it is possible to upload scan (and websocketd) on a server and play without your physical computer.
In the section "Engine control" of the web interface fill the host item with the name of the server (ip-adres or host name).
I expect it works for an Android client but I have not tested it.
Congratulations Sidiki! I am glad to hear it works for you on a Windows computer.
Indeed, it is possible to upload scan (and websocketd) on a server and play without your physical computer.
In the section "Engine control" of the web interface fill the host item with the name of the server (ip-adres or host name).
I expect it works for an Android client but I have not tested it.
Re: Hub-1 protocol
Thank Arthurk, i will read this section carefully. It can help us to play anywhere our draughts programs that use dxp.ArthurK wrote:Web interface for Scan.
Congratulations Sidiki! I am glad to hear it works for you on a Windows computer.
Indeed, it is possible to upload scan (and websocketd) on a server and play without your physical computer.
In the section "Engine control" of the web interface fill the host item with the name of the server (ip-adres or host name).
I expect it works for an Android client but I have not tested it.
For Android can you test it or if possible do a Kind of hub that locate scan engine on the phone. Scan engine for Android has already be created and uploaded by a user of this forum, ardik.
Someone also done for iOS Scan all in one, ie with a board, all implemented into it.
Thank again.
Sidiki