Skip to content

hot-dice/hotdice

Repository files navigation

Hot Dice

Test Pull Request

Group Members: Tom McGuire, Anthony Turinski, Xiao Ma

About Hot Dice The Game

Hot Dice is another name for dice game Farkle™, Greed, Squelch, 10,000, or Zilch. Hot Dice is played by two or more players, with each player in succession having a turn at throwing the dice. Each player's turn results in a score, the players accumulate points to a set amount to determine a winner. The pot, if present, is anteed at the beginning of each game.

Running Locally

Run locally with the following command; file changes are automatically tracked.

npm start

Testing Locally With Cypress

  1. Run npm start

  2. In a new terminal window run npm run test:open to open the test runner or npm run test:run to run tests in the terminal

Resources

CSS Reset

Dice Images

gh-pages

Cypress Github Action

Replace

Remove Trailing and Leading Commas Regex

Remove Duplicate Commas Regex

Create Random Numbers with window.crypto

Math.random() in 2020

How does JavaScript’s Math.random() generate random numbers?

Secure random values (in Node.js)

Uint32Array

Crypto.getRandomValues()

Use crypto.getRandomValues for new seeds

How to remove an item from an Array in JavaScript

UUID Generator

Generating UUID's in Vanilla JavaScript

Get the index of the li clicked in javascript

Setting Custom Attributes in JavaScript