Permalink
Browse files

Minor refactorings

  • Loading branch information...
1 parent 5766579 commit 3e7912777b68999fe5e64c12577371122a1ff122 @humbhenri committed Sep 19, 2010
Showing with 3 additions and 2 deletions.
  1. +2 −1 othello.py
  2. +1 −1 ui.py
View
@@ -35,6 +35,7 @@ def get_options( self ):
self.other_player = player.Computer ( WHITE, level+3 )
self.gui.show_game()
+ self.gui.update(self.board.board, 2, 2)
def run ( self ):
@@ -54,7 +55,7 @@ def run ( self ):
if self.board.get_valid_moves( self.now_playing.color ) != []:
score, self.board = self.now_playing.get_move()
whites, blacks, empty = self.board.count_stones()
- self.gui.update( self.board.board, blacks, whites, self.now_playing.color )
+ self.gui.update( self.board.board, blacks, whites)
self.now_playing, self.other_player = self.other_player, self.now_playing
self.gui.show_winner( winner )
pygame.time.wait( 1000 )
View
@@ -265,7 +265,7 @@ def get_mouse_input ( self ):
time.sleep ( .05 )
- def update ( self, board, blacks, whites, nowPlayingColor):
+ def update ( self, board, blacks, whites):
"""Updates screen
"""
for i in range ( 8 ):

0 comments on commit 3e79127

Please sign in to comment.