On Sat, 07 Jan 2006 12:27:05 -0000, Christian Neukirchen <chneukirchen / gmail.com> wrote: > "Ross Bamford" <rosco / roscopeco.remove.co.uk> writes: > >> Hi, >> >> Just to make sure I have the precedence and so on right, I used a >> loaded dice that always rolls it's number of sides to write some >> tests. Since there's been some discussion over the precedence rules, >> I'll post them to maybe compare with others and see if I'm on the >> right track. Hope that's within the rules? I've left out broken input >> ones, since at the moment mine just 'does it's best' but I might >> tighten that up yet... >> >> @asserts = { > .. >> '(5d5-4)d(16/d4)+3' => 87, #25d4 + 3 >> } > > This is wrong, the maximum is 339: (25-4)d(16/1)+3. > >> Ross Bamford - rosco / roscopeco.remove.co.uk I don't understand that. I get: (5d5-4)d(16/d4)+3 = 87 (5d5-4)d(16/d1)+3 = 339 I read the first as 21 rolls (25 - 4) of a four sided (16 / 4) dice plus 3, while the second is 21 rolls (25 - 4) of a 16 sided (16 / 1) dice, plus 3. Right? -- Ross Bamford - rosco / roscopeco.remove.co.uk