forked from Cryz/battle_royale_sim
telegram bot skeleton
This commit is contained in:
26
main.py
26
main.py
@@ -15,6 +15,20 @@ class BrSimArena():
|
||||
def next_day(self):
|
||||
self.day+= 1
|
||||
|
||||
def get_alive_players(self):
|
||||
res= []
|
||||
for p in self.players:
|
||||
if not p.is_alive(): continue
|
||||
res.append(p)
|
||||
return res
|
||||
|
||||
def get_death_players(self):
|
||||
res= []
|
||||
for p in self.players:
|
||||
if p.is_alive(): continue
|
||||
res.append(p)
|
||||
return res
|
||||
|
||||
def do_random_event(self):
|
||||
#XXX random player does random action according to his inventory health, wounds, available weapons on the world, etc...
|
||||
pass
|
||||
@@ -26,17 +40,17 @@ class BrSimArena():
|
||||
|
||||
|
||||
def init_arena():
|
||||
players= [{'name': 'Crystal'}, {'name': 'Cyan'}]
|
||||
weapons= [{_wsyms.KNIFE: 1}]
|
||||
players= [{'name': 'Crystal'}, {'name': 'Andrea'}]
|
||||
weapons= [{_wsyms.KNIFE['name']: 1}]
|
||||
return BrSimArena(players, weapons)
|
||||
|
||||
Arena= init_arena()
|
||||
|
||||
def run_event():
|
||||
def run_event(Arena):
|
||||
pass
|
||||
|
||||
def main():
|
||||
def local_debug():
|
||||
Arena= init_arena()
|
||||
print(Arena.players)
|
||||
print(Arena.weapons)
|
||||
run_event()
|
||||
run_event(Arena)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user