from naja.constants import(
BITS, DIRECTION_BITS, CONDITION_BITS, PLAYER_DEFAULTS,
ACT, EXAMINE, ROTATION)
+from naja.options import options
from naja.player import Player
from naja import actions
initial_pos=PLAYER_DEFAULTS.INITIAL_POS,
max_health=PLAYER_DEFAULTS.MAX_HEALTH,
wins_required=PLAYER_DEFAULTS.WINS_REQUIRED):
+ if options.initial_bits:
+ initial_bits = options.initial_bits
state = {
'max_health': max_health,
'health': max_health,
parser.add_option("--save-location", default=_get_default_save_location(),
dest="save_location", help="Saved game location")
+ if options.debug:
+ parser.add_option('--initial-bits', type=int,
+ help='Initial player bits')
+
opts, _ = parser.parse_args(args)
for k in DEFAULTS: