Skip to content
/ threes Public

dice game called 3s made with reactJS, express, and socket.io

Notifications You must be signed in to change notification settings

hone1er/threes

Repository files navigation

web threes

A smart-contract based web3 dice game

Built with:

Check out the game at webthrees.herokuapp.com

Deployed Contract Address

Sepolia Testnet 0x7838074626470180F23FA88221D1C4e8E0588bf5

Rules

  • This is a turn based game
  • Lowest score at the end of the game wins
  • Each player will start their turn with 5 dice
  • Player will roll the dice up to 5 times
  • After each roll, the player must pick up at least 1 die but may pick up more if they choose
  • Player will continue to roll and pick up dice until all dice have been taken
  • When chosen, each die adds its face value to the current players score, except 3, 3 adds 0 to the score

Features

  • Connect Ethereum wallet
  • Smart-contract interactions
  • Real time multiplayer dice game
  • Real time chat
  • Chat & game audio
  • Create new rooms
  • Join previously created rooms
  • Choose between public or private(password protected) rooms

Learnings

  • Building a web app with React using modern hooks and functional components

  • Connecting the client and server through a web socket and use this connection to communicate between clients. The use of namespaces as they relate to sockets, and how to create, join, and communicate with rooms within each namespace.

  • Improve working knowledge of hooks and the context API from React. All state management was done with hooks and the context API.

  • Smart-contract creation, deployment, & interaction with Solidity and Ethers.js

About

dice game called 3s made with reactJS, express, and socket.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published