https://github.com/mrtimu139/nontransitive-dice-simulator
Initial release of the Generalized Non-Transitive Dice Game. Includes fair random number generation, configurable dice, HMAC-based validation protocol, help table with probabilities, and modular class design for flexibility and scalability.
https://github.com/mrtimu139/nontransitive-dice-simulator
cryptography dice-game error-handling fair-random-generation game-theory hmac-sha3-224 interactive-game javascript nodejs nontransitive-dice-game
Last synced: 3 months ago
JSON representation
Initial release of the Generalized Non-Transitive Dice Game. Includes fair random number generation, configurable dice, HMAC-based validation protocol, help table with probabilities, and modular class design for flexibility and scalability.
- Host: GitHub
- URL: https://github.com/mrtimu139/nontransitive-dice-simulator
- Owner: Mrtimu139
- Created: 2025-01-20T10:05:45.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-20T10:10:48.000Z (5 months ago)
- Last Synced: 2025-01-20T11:23:39.807Z (5 months ago)
- Topics: cryptography, dice-game, error-handling, fair-random-generation, game-theory, hmac-sha3-224, interactive-game, javascript, nodejs, nontransitive-dice-game
- Language: JavaScript
- Homepage:
- Size: 15.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nontransitive-dice-simulator
Initial release of the Generalized Non-Transitive Dice Game. Includes fair random number generation, configurable dice, HMAC-based validation protocol, help table with probabilities, and modular class design for flexibility and scalability.# Generalized Non-Transitive Dice Game
This project implements a command-line-based non-transitive dice game with the following features:
- **Fair Random Number Generation:** A cryptographically secure protocol ensures fairness, using HMAC and modular arithmetic.
- **Configurable Dice:** Players can specify any number of dice with custom sides.
- **Help Table:** Displays the probability of winning for each dice pair in the game.
- **Robust Input Handling:** Validates dice configurations and handles errors gracefully.
- **Modular Design:** Follows clean coding principles with separate classes for each responsibility.## **Features**
- Fair random number generation using cryptographic keys (HMAC-SHA3).
- Support for any number of dice with arbitrary sides.
- Interactive gameplay with user and computer participation.
- Probability table for analyzing dice pairs.
- Error handling for invalid configurations.## **Usage**
1. Install [Node.js](https://nodejs.org/).
2. Clone the repository and navigate to the project folder:
```bash