Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
flvvsc
/
dicey-grid-delight
like
0
Running
App
Files
Files
Community
main
dicey-grid-delight
15.3 kB
1 contributor
History:
5 commits
flvvsc
Cast Dice button does nothing
00ee4d1
verified
4 months ago
components
Buttons stopped working
4 months ago
.gitattributes
Safe
1.52 kB
initial commit
4 months ago
README.md
Safe
246 Bytes
Let's create a game. I have Dice labeled from A to H. I can add them to a list that has +/- for new Die. From that list it randomly gets 5 die and places them randomly on a 4x4 grid. The same slot can have at most 2 die on it, if the random puts a die on the same slot it then moves it to an adjacent slot on that grid that doesn't have 2 die on it. I have a Cast button that puts them on that grid at random.
4 months ago
index.html
Safe
2.24 kB
Buttons stopped working
4 months ago
script.js
Safe
1.02 kB
Cast Dice button does nothing
4 months ago
style.css
Safe
786 Bytes
Let's create a game. I have Dice labeled from A to H. I can add them to a list that has +/- for new Die. From that list it randomly gets 5 die and places them randomly on a 4x4 grid. The same slot can have at most 2 die on it, if the random puts a die on the same slot it then moves it to an adjacent slot on that grid that doesn't have 2 die on it. I have a Cast button that puts them on that grid at random.
4 months ago