dk000000000 / SpaceReplicatorSim

4 stars 0 forks source link

Probe API #1

Closed 5inghalp closed 5 years ago

5inghalp commented 5 years ago
class probe:
  self.systemsBeliefs = # 0-1M * n number of systems
  self.pastlocations = [] #list of index of system they known have been to or other bots have been to
  self.charge = #0-100
  self.position = #[int,int,int] position in the universe
  self.block = #boolean if it is blocked
  self.distanceMatrix # n*n distance between 
  self.dead = False
  self._updateCharge() #hidden use by methods, modify self charge
  self._updateBeliefs() #hidden use by methods, modify self system beliefs
  self._updateposition() #hidden use by 
  self.getdistanceMatrix() #get distance between each system in matrix form
  self.recharge(): #use self._updateBeliefs and self._updateCharge
  self.replicate() #use  self._updateCharge destroy this agent and make two agent and share beliefs and split resource block can't take action
  self.move(index) #use self._updateCharge move to another system action blocked
  self.stay() #use self._updateCharge
  -------------------------------------------------------------------------
  self.planetId = #int
  self.previousPlanetId = #int

time steps, degradation mecanism in system

dk000000000 commented 5 years ago

design changed

dk000000000 commented 5 years ago

mostly done, still some bugs