Skip to content

Deliverables for Saito web3 foundation grant milestone two deliverables.

License

Notifications You must be signed in to change notification settings

SaitoTech/Saito-Game-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Deliverables for Saito web3 foundation grant milestone two deliverables.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages