1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package game
// Keep each outcome beside its net profit instead of packing a series of
// total:odds pairs into a sentence. The footer distinguishes profit from the
// returned stake and retains one blank felt row below the command summary.
func renderSimplifiedCrapsFelt(mode string, unicode bool) string {
c := newCrapsCanvas(13)
for _, x := range []int{0, 38} {
c.box(x, 0, x+38, 2)
c.box(x, 2, x+38, 8)
}
c.center(1, 37, 1, "DICE TOTAL", crapsGold)
c.center(39, 75, 1, "NET PROFIT", crapsGold)
rows := [][2]string{
{"2", "3:1"},
{"3 or 4", "1:1 (even money)"},
{"10 or 11", "2:1"},
{"12", "5:1"},
{"5, 6, 7, 8 or 9", "LOSE STAKE"},
}
for i, row := range rows {
c.center(1, 37, i+3, row[0], crapsInk)
c.center(39, 75, i+3, row[1], crapsInk)
}
c.box(0, 8, 76, 12)
c.center(1, 75, 9, "Winners also receive their original stake back.", crapsMuted)
c.center(1, 75, 10, "PASS ONLY | ONE ROLL | NO POINT, ODDS OR SIDE BETS", crapsGold)
return c.render(mode, unicode)
}
|