# Test game constants (just for testing, do not play with that values)
# Default game constants
CONSTS={
"N_VALUES":4,# number of values types
"N_WVALUES":1,# number of waiting values types
"TURN_DURATION":300,# in seconds
"N_TURNS":10,# number of turns in a game
"TURN_YEARS":8,# number of years by turn
"LIFESPAN":10,# max age
"N_DIGITS":0,# number of decimals
"START_VALUES":4# number of random values for beginning
}
# Test game constants (just for testing, do not play with that values)
CONSTS2={
"N_VALUES":5,# number of values types
"N_WVALUES":1,# number of waiting values types
"TURN_DURATION":600,# in seconds
...
...
@@ -36,55 +49,58 @@ Options:\n\
")
exit()
# New game settings
NEWGAME_DEFS={
"1":{},# Empty, should return error 49
"2":{"name":"Test game"},# Should work once with default values, and return 48 after
"3":{"name":"Foobar","leader_name":"John Doe","leader_address":"testaddr","leader_port":1234,"public":False,"consts":CONSTS}# Should set every parameter
1:{},# Empty, should return error 49
2:{"name":"Test game"},# Should work once with default values, and return 48 after
3:{"name":"Foobar","leader_name":"John Doe","leader_address":"testaddr","leader_port":1234,"public":False,"consts":CONSTS2}# Should set every parameter
}
server_address=(HOST,PORT)
print("Server: "+str(server_address))
print("Type 'help' for a commands list, 'quit' or CTRL+C to quit.")
print("Type 'h()' for help, 'exit()' or CTRL+C to quit.")