From: Christian Neukirchen Date: 2006-01-07T21:27:05+09:00 Subject: Re: [QUIZ] Dice Roller (#61) "Ross Bamford" 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 -- Christian Neukirchen http://chneukirchen.org