Skip to content

Commit

Permalink
Change to call squaremap in globalconst.py instead of boardview.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bcorfman committed Jan 18, 2011
1 parent 3d74b06 commit 8d4421b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setupboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,16 @@ def apply(self):
state.clear()
sq = state.squares
for item in self.wm_list:
idx = view.squaremap[item]
idx = squaremap[item]
sq[idx] = WHITE | MAN
for item in self.wk_list:
idx = view.squaremap[item]
idx = squaremap[item]
sq[idx] = WHITE | KING
for item in self.bm_list:
idx = view.squaremap[item]
idx = squaremap[item]
sq[idx] = BLACK | MAN
for item in self.bk_list:
idx = view.squaremap[item]
idx = squaremap[item]
sq[idx] = BLACK | KING
state.to_move = self._player_turn.get()
state.reset_undo()
Expand Down

0 comments on commit 8d4421b

Please sign in to comment.