On Mon, Jan 20, 2014 at 5:37 AM, Roy Smith <r...@panix.com> wrote:
> What's so complicated?
>
> points = 501
> for dart in throws():
>    if points - dart == 0 and dart.is_double():
>       raise YouWin
>    if points - dart < 0:
>       continue
>    points -= dart
>    beer.drink()

assert victory
raise beer

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to