Skip to content

Commit

Permalink
David
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe committed Dec 1, 2009
1 parent 9f58ae9 commit c605a14
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dojo1/nmm.py
@@ -1,5 +1,16 @@
class Board:
def __init__(self, w, b, wposns, bposns, turn):
"""A representation of a 9-man's morris board.
Arguments are
- 'w' and 'b' for how many pieces White and Black
still have in hand
- 'wposns' is a list of the positions of White's
stones on the board
- 'bposns' the same for Black
- 'turn' is 'W' or 'B' according to whose turn is next.
"""
self.w = w
self.b = b
self.w_posns = wposns
Expand Down

0 comments on commit c605a14

Please sign in to comment.