Dice Game

@if (hasError('betAmount', 'required')) { Bet Amount is required } @if (hasError('betAmount', 'min')) { Bet Amount must be at least 0.01 }
Roll Mode:
@if (hasError('targetValue', 'required')) { Target Value is required } @if (hasError('targetValue', 'min')) { Target Value must be at least 1 } @if (hasError('targetValue', 'max')) { Target Value must be at most 100 }

Win Chance: {{ winChance() | number: '1.0-2' }}%

Potential Win: {{ potentialWin() | currency: 'EUR' : 'symbol' : '1.2-2' }}

@if (rolledValue() !== null) {
{{ rolledValue() }}
}
@if (rolledValue() !== null) {
@if (win()) {

You Won! Payout: {{ payout() | currency: 'EUR' : 'symbol' : '1.2-2' }}

} @else {

You Lost.

}
}