Giter VIP home page Giter VIP logo

saito-game-engine's Introduction

Saito-Game-Engine

Deliverables for Saito web3 foundation grant milestone two deliverables.

Contents

Protocol and Library Upgrade:

/lib/

gamengine.js library. This file contains extensive inline documentation of the core game and blockchain functions including move stack.

Documentation

/

  • saito-game-engine.md
  • api.md

Test Game

/gametestsuite/

This folder is a full Saito Game. It is an example that exposes all the available functions and features of the Saito Game engine. These include UI elements and third party cryptocurrency integration.


Testing

The functionality delivered in this milestone can all be viewed and tested using the test game inluded. The /gamesuite/ folder contains local installation instructions.

This module is also installed and can be tested in situ on the Saito Arcade.

Two browsers are required to begin a game and test p2p features.

Test with Westend Tokens

Preparation

Provide test clients with WND

  1. Open two browers to /arcade/ on the system being tested.
  2. Expand the sidebar by clicking on the 'hamburger' menu.
  3. Change the default crypto for the user in each browser to WND using the dropdown at the top of the Sidebar, and follow the prompts (use the faucet if you do not have WND - requires Element)
  4. Fund both wallets with WND. (Public Keys will appear at the top of the sidebar, and be copied to the clipboard on click.)

Test web3 ecosystem integration

  1. In the first browser select "GameTestSuite" from the menu to create a game invitation.
    (Cancel out of the name registration prompt.)
    Make sure to select advanced options and select WND as the crpyo for the game.
  2. In the second browser, accept the invitation.
  3. In both browsers follow the promts to initialise the game.
  4. Enter the game. Request Payment, Make Payment and Check Balance routines can be checked against the live Westend network using the relevant buttons.

Note: a log can be expanded from the right hand side of the screen to make test output and game actions visible. Checkbalance runs a simple balance check. Transfer history can be viewed on Westend Subscan

These functions can be seen in action by creating a poker game in the Saito Arcade and setting the curreny to WND.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.