loomnetwork / gamechain Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
The frontend should be able to get the details of the heroes, specific for a certain user. Heroes can level up, and abilities for them can be bought and unlocked.
Methods:
Ref: https://docs.google.com/document/d/1jAd2kPND5zKYuIT3xZsIeZL41NP83d81v3lXFfruQrw/edit#
Gameplay contract should able to work with Card Contract for the followings:
There are some scenario when player select some cards while creating new deck or edit deck, but not able to save deck or add deck because of following exception
you cannot add more than 0 for your card id: 0
Incorrect text - Do you really wan't to delete default
Correct text- Do you really want to delete default
Screenshot- http://prntscr.com/kcribe
Better to show some Loading/Progress bar rather than showing a complete blank screen
Getting an Null from Backend, When there is no deck available.
Should not return Null.
it should have empty array
{
"decks": []
}
Tutorial is visible everytime user clicks on Play Button
https://www.useloom.com/share/1a8de0d9df5444e59249d28d45b562f5
The user should be able to manage deck from his cards.
Card contract should support the following functionality:
If any user is not following the exact tutorial steps then tutorial seems to be incorrect.
just like in this video I finished the game earlier by not following the tutorials steps but I am still getting instructions to finish the game.
video - https://www.useloom.com/share/ef53debb6fb8421c87bc94954a81c77e
Getting an error when try to fetch getDeck when all the decks are deleted.
Should not return null reference
Should return empty array
Error
===== Deck Data Not Loaded from Backed ===== System.NullReferenceException: Object reference not set to an instance of an object
The game play should allow the user to login using the account from LoomAuth.
Ref: Account Flow
Always have to Add Deck with Hero id and 0 Cards
"heroId": 0,
"name": "Deck 1",
"cards": []
Add test case to the contract
We have UI to allow user to create cards and export to JSON. We need a tool to convert those JSON to Card contract
cli's get_account
and update_account
should display all account field, like image
, game_membership_tier
.
This would help us to test update account functionality properly.
The frontend should call ListCardLibrary
to get all the card info. The result is a collection of cards grouped by element.
Test cases to cover:
Tasks:
TestE2E
in e2e/e2e_test.go
e2e
. Examples can be found in e2e/test_cases.yaml
RunCmd
and check validity of the output in Expected
make test
User should be allowed to leave/skip tutorial by clicking on back button but Tutorial is still progressing after clicking on Back button
video- https://www.useloom.com/share/07d2bad476144978b1d03f487c95324a
Unity should fetch user profile containing decks and cards from zb smart contract.
Add card library
Method to be covered:
If user is playing in windowed mode bottom section is slightly cropped
We need an account server for the user to sign up and login from the GUI and keep data to Dapp.
Functionality:
Sign Up
Login
Styling
golinter
Functional
please observe the animation/transition when two zombie cards are clashing.
video - https://www.useloom.com/share/907bae23021f4f74a2c949c5dc285b83
The game uses a lot of randomness. For example:
The contract must be able to generate random number without any consensus error when running on multiple validators.
We need to provide 2 functionality for the unity client so that the client can have a view of cards and collection. We can now just fix the data in the init call when deploying the contract.
TnC pop-up should not be visible again if user accepts it by clicking on GOT IT button.
video- https://www.useloom.com/share/56a8edc1bd404860b6ef910f80a475c0
Tutorial is still playing on front(over quit pop-up) if user clicks on back button.
video- https://www.useloom.com/share/1a8de0d9df5444e59249d28d45b562f5
User should be allowed to skip tutorial anytime while watching tutorial
Client side is able to delete default Deck.
but server side is not allow deleting default deck.
Currently we have commands:
But when running these command, we get nothing back or just simple Go struct e.g.
{loom false false false Image2 false 0 0 3 [100 101 102 97 117 108 116 0 74 190 12 219 233 52 88 240 118 171 244 175 157 83 214 185 225 216 103 226]}
The requirements for this issue it to format output so that it can be find by e2e test, which relies on finding patterns on standard output and error
Also, the input to command line should be minimal so we can add it in test cases.
There are no packs to open or display at pack opener screen.
screenshot- http://prntscr.com/kcqq1d
No response/message after user clicks on Buy Now button
screenshot- http://prntscr.com/kcqol9
Try to merge some code that connects to backend to the playtest
branch.
The backend method calls currently supported:
In the end, it is demonstrated that You won the match but It is clearly visible that Hero zombie is still on Battleground.
video- https://www.useloom.com/share/197c553b4d4140cda0a2c1a2383f1f66
Requirements From frontend:
/purchasePacks POST
Sent parameters:
Packs: Int, number of packs the user has purchased. This increases the Packs parameter of the player profile
Based on the purchase method and platform, the server might want to have some security checks to validate the purchase.
Requirements from frontend:
/openPack GET
Called once every time a user opens a pack.
Upon checking that the user has indeed a pack to open (Packs parameter of profile), it will decrease the Packs parameter of 1. Will return:
cardsFound: [id1, id2, id3, id4, id5], the server returns an array of strings, containing 5 ids (or the number of cards that can be found in each pack), chosen randomly based on the rarity of the cards. It also immediately adds those 5 cards to the Collection parameter of the user profile. The client will then show the new 5 cards to the user.
TBD
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.