Loading...

Sending moves to the blockchain

20 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Mar 4, 2019

See here: https://github.com/xaya/xaya_tutorial...

You don't need to be running an instance of a game to send moves.

Moves can be sent arbitrarily in many ways. Here are some ways:

- From xaya-cli
- From the XAYA QT console
- Sending to xayad
- Etc.

When procesing moves, you **must** guard against invalid moves with robust error checking. See the code for example error checks.

In HelloXaya, we build the move in a string then send it:

string hello = "{\"g\":{\"helloworld\":{\"m\":\"" + txtHelloWorld.Text + "\"}}}";
xayaService.NameUpdate(this.cbxNames.GetItemText(this.cbxNames.SelectedItem),
hello,
new object());

Loading...

When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...