Skip to content

xaya/xayaships_frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xayaships_frontend

Xayaships is a blockchain version of the classic naval warfare Battleship game. Battleship has been around since at least the 1930s, but it was in 1967 that Milton Bradley created the plastic board and peg version that most people are familiar with. Its rules are relatively simple but gameplay is relatively quick and perfect to demonstrate the cutting edge Game Channels technology that Xaya allows.

Watch the video about xayaships

Xayaships demonstrates Game Channels for developers and shows how they can create near real time games that run entirely on the blockchain in a trustless and decentralised way.
With respect to the Xaya platform, Game Channels can be thought of as individual payment channels that games run in. 

They work by submitting a special transaction on the Xaya blockchain that creates a channel which other players can join. For Xayaships, when a channel is opened directly between 2 participants, real time gameplay can begin. In game channels the number of transactions can be unlimited, for free, and the speed is only limited by the network latency between the 2 players. Once a game is complete the winner can prove he won by posting the state to the blockchain. The other player can try to dispute it, but in the end the real winner will win as he has all the signed moves of the other player which prove he lost.

In all, a complex and real-time game can be played in a trustless, decentralised, provably fair way with little transaction fees and massively reducing blockchain bloat.

Dependency Sites


  [ - Xaya](https://xaya.io)
  [ - XayaShips Game](https://xaya.io/xayaships/)

Demo

Demo For Windows

Includes

  • Xaya RPC method
  • Use Unity smart UI
  • Networking in Unity

Template Structure

Location Content
/Assets Unity Assets
/ProjectSettings Project Settings(Graphics and so on)
/Packages Package Dependency

Prerequisites

Before getting started you should have installed the following:

  • .NET framework 4.X
  • Unity2018.4.1f

Setup

$ git clone https://github.com/xaya/xayaships_frontend
$ cd xayaships_frontend

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published