class documentation

class Scoreboard:

View In Hierarchy

Fixed-length sequence of high scores in nondecreasing order.

Method __getitem__ Return entry at index k.
Method __init__ Initialize scoreboard with given maximum capacity.
Method __str__ Return string representation of the high score list.
Method add Consider adding entry to high scores.
Instance Variable _board Undocumented
Instance Variable _n Undocumented
def __getitem__(self, k):

Return entry at index k.

def __init__(self, capacity=10):

Initialize scoreboard with given maximum capacity.

All entries are initially None.

def __str__(self):

Return string representation of the high score list.

def add(self, entry):

Consider adding entry to high scores.

_board =

Undocumented

_n: int =

Undocumented