cup/cup.nim

18 lines
429 B
Nim
Raw Normal View History

2021-07-15 05:05:03 +00:00
import game, simulation, ui
2021-03-24 17:54:50 +00:00
2021-07-12 22:46:06 +00:00
when isMainModule:
let config = parseArgs()
var b: Board
b.init
b.setState(config.state, [])
b.diceRolled = config.diceRolled
2021-07-15 05:05:03 +00:00
echo b.showSpaces(1, 16)
2021-07-13 22:54:54 +00:00
let legScores = b.getLegScores
2021-07-15 05:05:03 +00:00
echo "\nCurrent leg probabilities:"
echo legScores.showPercents()
2021-07-13 22:54:54 +00:00
let gameScores = b.randomGames(1_000_000)
echo "\nFull game probabilities (1M simulations):"
2021-07-15 05:05:03 +00:00
echo gameScores.showPercents()