https://github.com/otoneko1102/roulette-base
ルーレットの色と番号をjson形式でまとめたものです。カジノ風ルーレットを作るときにどうぞ。A collection of roulette colors and numbers in json format. Use it when making a casino-style roulette.
https://github.com/otoneko1102/roulette-base
casino casino-games data json require roulette
Last synced: 3 months ago
JSON representation
ルーレットの色と番号をjson形式でまとめたものです。カジノ風ルーレットを作るときにどうぞ。A collection of roulette colors and numbers in json format. Use it when making a casino-style roulette.
- Host: GitHub
- URL: https://github.com/otoneko1102/roulette-base
- Owner: otoneko1102
- License: mit
- Created: 2023-07-25T13:28:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-25T13:57:42.000Z (almost 2 years ago)
- Last Synced: 2025-01-23T03:13:28.837Z (5 months ago)
- Topics: casino, casino-games, data, json, require, roulette
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# roulette-base
ルーレットの色と番号をjson形式でまとめたものです。カジノ風ルーレットを作るときにどうぞ。
A collection of roulette colors and numbers in json format. Use it when making a casino-style roulette.使い方の例 (Usage example):
```js
const result = require("./roulette.json");console.log(result.roulette[0].color); // null
console.log(result.roulette[0].number); // 0
console.log(result.roulette[1].color); // red
console.log(result.roulette[1].number); // 1
console.log(result.roulette[2].color); // black
console.log(result.roulette[2].number); // 2
console.log(result.roulette[Math.floor(Math.random() * 37)].color); // null or red or black
console.log(result.roulette[Math.floor(Math.random() * 37)].number); // 0-36
```