# Dice 3 mini
This is a reduced version of [dice_3](https://hackmd.io/@tomm/HynriTkAL). The rules are similar. It
just has less option to bet, thus, can be more easy to learn for newbine
player. The UI can be less densed as well.
## Code name
`dice_3_mini`
## Technical solution
### DB
3 table main:
- `dice_3_mini_record` similar with `dice_3`
- `dice_3_mini_config`
- `id`, `ctime`,`mtime`
- `status`
- `partner_id`
- `bet_min`
- `bet_max`
- `number_of_users_max`
- `bg_sound`
- `win_sound`
- `bet_sound`
- `lose_sound`
- `dice_3_mini_odds_config`
- `dice_3_mini_config_id`: ref to `dice_3_mini_config`
- `id`, `ctime`,`mtime`
- `status`
- `game_type`: `enum such as BIG, SMALL, ...`
- `odds`: `1`
## Staff API
- Read-only API for `dice_3_mini_record`.
- CRUD API for `dice_3_mini_config`.
- CRUD API for `dice_3_mini_odds_config`.
RPC `/api/game/dice_3_mini_config`
Request:
```json
{
"bet_min": 1,
"bet_max": 1000,
"bg_sound": "sound/bg.wav",
"win_sound": "sound/win.wav",
"bet_sound": "sound/bet.wav",
"lose_sound": "sound/bet.wav",
"number_of_users_max": 4
}
```
RPC `/api/game/dice_3_mini_odds_config`
Request:
```json
[
{
"dice_3_mini_config_id": 1,
"game_type": "BIG",
"odds": 1
},
{
"dice_3_mini_config_id": 1,
"game_type": "SMALL",
"odds": 1
}
]
```