Skip to main content

Use Case Presentation

The Use Case scenario of the 2048 Competition DApp consists in playing a 2048 game and sending the score to a smart contract to decide who the winner is.

You need a user account to interact with the smart contract.

User Interface

Below is a screenshot of the user interface once the wallet's account connected:

Docusaurus with Keytar

① 2048 game area: use up/right/down/left keys to move squares to the desired direction and accumulate scores

② Account data:

  • address
  • session id
  • session actions

③ Compute / Send button

  1. first recompute score from actions and get it signed from Orcale
  2. store it in smart contract

④ Leader Board

Create a user account

The process to create a new user account is two-steps:

  1. download a new faucet file from faucet site (instructions)
  2. import it in wallet (instructions)

It is suggested that you name the account "Completium Dapp user" for example.