BamBirds 2021
|
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 | |
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
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'
def prediction.simulate.Level.play | ( | self, | |
score | |||
) |
Parameters ---------- score : int The new score