Deliverables for Saito web3 foundation grant milestone two deliverables.
/lib/
gamengine.js library. This file contains extensive inline documentation of the core game and blockchain functions including move stack.
/
- saito-game-engine.md
- api.md
/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.
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.
Preparation
Provide test clients with WND
- Open two browers to
/arcade/
on the system being tested. - Expand the sidebar by clicking on the 'hamburger' menu.
- 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)
- 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
- 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. - In the second browser, accept the invitation.
- In both browsers follow the promts to initialise the game.
- 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.