[CentralOH] Python Indentation problem

Fandi Peng fandi.814 at gmail.com
Fri Apr 6 06:28:53 CEST 2012


Hi Brandon,

On Thu, Apr 5, 2012 at 11:35 PM, Brandon Rhodes <brandon at rhodesmill.org> wrote:
>     def win(self):
>         return (self.win_by_kill() or
>                 self.win_by_reach() or
>                 not self.get_available_moves(
>                     (self.player + 1) % len(self.MARKS)
>                 ))
>
> And the other expression:
>
>         end = self.FORWARD[(self.player + 1) % len(self.MARKS)]
>         my_sorted_moves = [ tuple(reversed(c)) for c
>                             in my_reversed_src_dst[::end] ]

It looks good, and you simplified my code as well, it's awesome!


best,
Fandi


More information about the CentralOH mailing list