Skip to main content
3 events
when toggle format what by license comment
Jun 17, 2013 at 23:19 comment added SylvainD Yep, I understand your concern. I was about to comment the fact that the return types were somehow awkward (subtle mix of None, booleans and strings) but I couldn't see any better solution.
Jun 17, 2013 at 23:05 comment added Russ I changed if game == None: to if not game: Although the other cases where I'm using == to compare booleans was because I hadn't thought long enough of the right way to work the return values of TTTGame.winner() function. So I ended up having to do things like if CLI.game.winner() == None which means if game not over and if CLI.game.winner() == False which translates to (kinda) if game tied.
Jun 17, 2013 at 17:51 history answered SylvainD CC BY-SA 3.0