marcelomorgado / fyght Goto Github PK
View Code? Open in Web Editor NEWA karate crypto game
Home Page: https://fyght.netlify.app/
License: MIT License
A karate crypto game
Home Page: https://fyght.netlify.app/
License: MIT License
Give to a user without connected Metamask a chance to see the game before taking some action.
A problem example: Keeping enemies updated.
To find an approach that can be applied to other similar issues.
To see if The Graph
usage can improve blockchain fetching.
Perform refactorization where necessary.
Note: Write unit tests where missing.
Change config to trigger just the changed packages.
Refs:
https://medium.com/@reuvenharrison/using-circleci-with-monorepos-c04b03f9f39c
https://medium.com/labs42/monorepo-with-circleci-conditional-workflows-69e65d3f1bd0
https://discuss.circleci.com/t/does-circleci-2-0-work-with-monorepos/10378/11
Should we have a training feature to allow a user to buy for more habilities?
For now, the incentives for attackers and targets are the same. To see a way to have an incentive for attackers since they are who pay tx fees.
Note: This can be obsolete when layer 2 is implemented.
For now, npm start
should work locally.
To refactor the UI code to use components, state management, etc.
Should the project use redux or another framework like https://github.com/atlassian/react-sweet-state?
Investigate why fetchAllEnemies
and myFyghter
actions are being called in loop. Is this behavior correct?
For now, we are putting almost all components inside of the presentational/
folder but there are better approaches.
Refs:
https://medium.com/@dan_abramov/smart-and-dumb-components-7ca2f9a7c7d0
https://reactjs.org/docs/faq-structure.html
https://www.newline.co/fullstack-react/p/using-presentational-and-container-components-with-redux/
For now, we are using only one contract (Fyghters). To see if will be better split smart contracts (e.g. Fyghters, Challenges)
See if there is a way to DRY current code having some calculations from smart contracts.
E.g.
Components like EnemiesContainer
and MyFyghterContainer
are now with their snapshots like that since Context API setup:
<ContextConsumer>
<Component />
</ContextConsumer>
Allow a user to deposit more Dais to its fyghter and review deposit during creation.
For now, the bet amount is $5 fixed. Allow users to switch between some options (e.g. $5, $10, $25 and $50).
The cache was disabled because was ignoring package.json
file from subprojects causing CI crash when running.
Fyghters have to be an on-chain option for that. For now, it'll be a fixed option. In the future, players will be able to accept challenges from stronger enemies.
Refs:
https://www.cypress.io/
An item will improve the fyghter's strength and increase its probability to win a fight.
It should be an ERC721 token.
For now, item will be minted (after each victory? after some XP achievement?)
Extract all hardcoded styles parameters from components
Allows clothes and characters' colors changes. The current avatar have to be changed to SVG.
fyghter
can be sold carrying items?Typechain doesn't support ethers v5 yet. Refs: dethcrypto/TypeChain#205
Keep this feature as it is or change it? Make it easier to understand the UI.
Seems that auto skin change isn't working
Some ideas:
An example where v5 can be better than v4: ethers-io/ethers.js#630
Before that change, make sure that Typechain is compatible with v5 (Refs: dethcrypto/TypeChain#205)
The repo should have these packages: contracts
and app
.
Related to #13 since the game should have a faster user experience.
Charge fee from challenges
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.