BamBirds 2021
prediction.simulate.Level Class Reference

Public Member Functions

def __init__ (self, features, last_score=0, max_score=0, *args, **kwargs)
 
def getBestScore (self)
 
def getEstimatedMaximalPoints (self)
 
def calculate_maximal_points (self)
 
def play (self, score)
 

Public Attributes

 last_score
 
 max_score
 
 features
 
 levelId
 
 maximalPointsWithoutPigs
 
 numberOfTimesPlayed
 

Detailed Description

A class used to simulate the behaviour of Java-Class meta.Level

Attributes
----------
last_score : int
    Last score of the level
max_score : int
    Maximum achieved score of the level
features : dict
    The levels features i.e. 'num_birds'

Methods
-------
getBestScore()
    Returns the current best score
getEstimatedMaximalPoints()
    Returns the estimated maximal possible points
calculate_maximal_points()
    Calculates the estimated maximal possible points
play(score)
    Stores the new Score in the attributes

Constructor & Destructor Documentation

◆ __init__()

def prediction.simulate.Level.__init__ (   self,
  features,
  last_score = 0,
  max_score = 0,
args,
**  kwargs 
)
Parameters
----------
last_score : int
    Last score of the level
max_score : int
    Maximum achieved score of the level
features : dict
    The levels features i.e. 'num_birds'

Member Function Documentation

◆ play()

def prediction.simulate.Level.play (   self,
  score 
)
Parameters
----------
score : int
    The new score

The documentation for this class was generated from the following file: