projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Take EIGHT_BIT_SCALE into account, in box_width
[naja.git]
/
naja
/
player.py
diff --git
a/naja/player.py
b/naja/player.py
index 2f6fdcfa45e3c618a3005641d6eb29dfc16f566c..2aad55b029a4c323cd4582f42727496a0215d4d2 100644
(file)
--- a/
naja/player.py
+++ b/
naja/player.py
@@
-1,4
+1,4
@@
-from naja.constants import BITS, MOVES
, CHESS_PIECES
+from naja.constants import BITS, MOVES
class PlayerBits(object):
class PlayerBits(object):
@@
-62,7
+62,10
@@
class Player(object):
@classmethod
def import_player(cls, definition):
@classmethod
def import_player(cls, definition):
- return cls(definition['bits'], tuple(definition['position']), definition['movement_mode'])
+ return cls(
+ definition['bits'],
+ tuple(definition['position']),
+ definition['movement_mode'])
def export(self):
return {
def export(self):
return {