i think it is working
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
from abc import ABC
|
||||
class Business(ABC):
|
||||
def __init__(self,id,production,balance) -> None:
|
||||
"""production (dict): {
|
||||
name: 'Gem',
|
||||
amount: 4,
|
||||
craft: {
|
||||
'Raw_Gem': 4,
|
||||
'Tool_Gem': 0.2,
|
||||
}
|
||||
}
|
||||
balance (int): Starting Balance
|
||||
"""
|
||||
self.id=id
|
||||
self.production=production
|
||||
self.balance=balance
|
||||
#Setup Inventory
|
||||
self.inventory={production["name"]: 0}
|
||||
for k,v in production["craft"].items():
|
||||
self.inventory[k]=0
|
||||
pass
|
||||
|
||||
def step_business_decisions(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user