define the skeleton of the battle royale game

This commit is contained in:
andrea
2025-07-23 19:54:39 +02:00
parent 86c7f7ae48
commit 0694ae0cae
4 changed files with 126 additions and 0 deletions

42
main.py Normal file
View File

@@ -0,0 +1,42 @@
from entities import player as _player
from entities import weapons as _weapons
from entities import weapon_syms as _wsyms
class BrSimArena():
# players = [{'name': name, 'inventory': default_inventory, other_stats}]
# weapons = [{WEAPON.KNIFE: quantity}, etc...] # this is the whole quantity of the items available on the world
def __init__(self, players, weapons):
self.day= 1
self.players= players
self.weapons= weapons
def next_day(self):
self.day+= 1
def do_random_event(self):
#XXX random player does random action according to his inventory health, wounds, available weapons on the world, etc...
pass
def supporter_donation(self):
#XXX supporter donate a random item or weapon to a random player
#TODO maybe in future a player can have charism stats that can influence the chance to get a donation
pass
def init_arena():
players= [{'name': 'Crystal'}, {'name': 'Cyan'}]
weapons= [{_wsyms.KNIFE: 1}]
return BrSimArena(players, weapons)
Arena= init_arena()
def run_event():
pass
def main():
print(Arena.players)
print(Arena.weapons)
run_event()