https://github.com/manlikenacho/dice
A simple dice rolling application
https://github.com/manlikenacho/dice
golang unit-testing
Last synced: about 1 month ago
JSON representation
A simple dice rolling application
- Host: GitHub
- URL: https://github.com/manlikenacho/dice
- Owner: manlikeNacho
- License: mit
- Created: 2023-05-12T18:03:10.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-24T11:07:28.000Z (over 1 year ago)
- Last Synced: 2024-11-17T11:35:08.854Z (3 months ago)
- Topics: golang, unit-testing
- Language: Go
- Homepage:
- Size: 10.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dice
[](https://github.com/manlikeNacho/Dice/blob/main/LICENSE)
A simple dice rolling application.
## Table of Contents
- [Introduction](#introduction)
- [Features](#features)
- [Installation](#installation)
- [License](#license)## Introduction
Dice is a lightweight application that allows you to roll virtual dice. It can be used for various purposes such as board games. When a game is started, a commitment fee of 20 sats is deducted from the user’s wallet, and a number is generated randomly between 2 and 12 and stored. After a game has been started, the user can roll dice twice, and the result of both dice rolls is summed up. If the sum of the 2 numbers is equal to the number generated at game start-up, the user wins 10 sats.The user can roll dice as many times as he wants in a single game; however, each dice roll duo costs the user 5 sats and should be charged on the first die roll of the duo.
## Features
- Roll dice
- Win or Lose game
- View transaction log
- Calculate the total sum of all rolls## Installation
1. Clone the repository: git clone https://github.com/manlikeNacho/Dice.git
2. Navigate to the project directory: cd Dice
3. Install the necessary dependencies: go get## Postman Collection
https://www.postman.com/lively-station-441669/workspace/school-adminstration/collection/21954692-0f47245d-548a-409e-aaea-5ae276ce8bab?action=share&creator=21954692## License
This project is licensed under the [MIT License](https://github.com/manlikeNacho/Dice/blob/main/LICENSE).