flappy-bird-starknet
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.7%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: guuido
- Language: TypeScript
- Default Branch: master
- Size: 187 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Flappy Bird on Starknet!
Getting started
In order to use the application, you need to install a browser wallet, either Argent or Braavos. After that, you need to get some test eth from the Faucet to pay for transactions.
This application uses a pre-deployed instance of the game contract at address 0x67cbff9203c0d1c44816c39f78444d7f13653686cd3d7a1bc63e0a85be8e11b
Running the application
In order to run the application, first clone this repository, then install the dependencies with
bash
cd <path-to-repo>
npm i
then run
bash
npm run dev
Now open the browser and go to localhost:3000 to start using the application.
Proving game duration
You can start a new game by clicking "Play Game". After the game has ended, click on "Notarize" to notarize on-chain your moves along with an upper bound for game end time (i.e. the timestamp of the current block). After this, you can click on "Send moves to contract" to validate your game and save your score on-chain. Thanks to the data notarized on-chain at the previous step, it's possible to prove that the game run has taken no more than X seconds, since: - the block hash used to calculate the initial state is stored in the contract, and its timestamp can be used as game start time - the timestamp of the block in which the notarization transaction has been included is stored directly in the contract, and can be considered the game end time Therefore, we can determine an upper bound on game duration by subtracting game start time from game end time.
Owner
- Login: guuido
- Kind: user
- Repositories: 2
- Profile: https://github.com/guuido
Citation (CITATION.cff)
cff-version: 1.2.0
title: Flappy Bird PoC
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Tommaso
family-names: Paulon
- given-names: Andrea
family-names: Marchesi
- given-names: Francesco
family-names: Bruschi
- given-names: Donatella
family-names: Sciuto
repository-code: 'https://github.com/guidocazzaniga/flappy-bird-starknet'
GitHub Events
Total
Last Year
Dependencies
- 393 dependencies
- @types/node 17.0.17 development
- @types/react 17.0.39 development
- autoprefixer ^10.4.2 development
- eslint 8.9.0 development
- eslint-config-next 12.0.10 development
- postcss ^8.4.6 development
- tailwindcss ^3.0.18 development
- typescript 4.5.5 development
- @starknet-react/chains ^0.1.6
- @starknet-react/core ^2.2.4
- get-starknet-core ^3.2.0
- starknet ^5.27.0