Does Yahoo remove all leading indents from the code, or is it just
my browser that does that?
(I checked them in Preview before submitting)
thanks - Alistair
--- In [EMAIL PROTECTED], "aacockburn"
<[EMAIL PROTECTED]> wrote:
>
> Game>>score
> ^ frames summedWith: [ :frame | frame score ]
>
> Frame>> score
> ^ roll1 + roll2 + bonusRoll
>
> Game>>framesFromRolls: rolls
> | frameStart |
> frames := OrderedCollection new.
> frameStart := 1.
> 10 timesRepeat: [ | frame |
> frame := Frame new fromRolls: rolls at: frameStart.
> frames addLast: frame.
> frameStart := frameStart + frame rollsUsed.
> ].
> ^frames
>
> Frame>>fromRolls: rolls at: frameStart
> roll1 := rolls at: frameStart.
> roll2 := rolls at: frameStart + 1.
> self isSpareOrStrike
> ifTrue: [ bonusRoll := rolls at: frameStart + 2 ].
> ^ self
>
> Frame>>rollsUsed
> ^ self isOpenOrSpare
> ifTrue: [ 2 ]
> ifFalse: [ 1 ]
>
To Post a message, send it to: [EMAIL PROTECTED]
To Unsubscribe, send a blank message to: [EMAIL PROTECTED]
ad-free courtesy of objectmentor.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/extremeprogramming/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/