X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fplayer.py;h=00e6133ed720486bd19d878136abcdcd5087b86a;hb=1fd94d28fdfa2331a025ce3b0d0f6fecb5af3324;hp=2156a3665c8f64e21452f5e8bffd6b1750bc8146;hpb=3366f4895bef653c706d2d2b4d6177569cbfe1ad;p=naja.git diff --git a/naja/player.py b/naja/player.py index 2156a36..00e6133 100644 --- a/naja/player.py +++ b/naja/player.py @@ -93,7 +93,7 @@ class Player(object): return False def legal_moves(self): - positions = [] + positions = [self.position] for direction in [BITS.NORTH, BITS.SOUTH, BITS.EAST, BITS.WEST]: position = self.get_adjacent_position(direction) if position is not None and self.bits.check_bit(direction):