Double Elimination
Dokumentation der Klasse
- class compLib.DoubleElimination.Position(x, y, degrees)
Datenstruktur, welche eine Position representiert.
- class compLib.DoubleElimination.DoubleElim
Klasse für die Kommunikation mit Double Elimination Api
- static get_goal() Tuple[Position, int]
Makes the /api/getGoal call to the api. :return: A Position object with x and y coordinates of the goal, rotation is always -1 :rtype: Tuple[Position, int]
- static get_items() Tuple[List[Dict], int]
Makes the /api/getItems call to the api. :return: A list will all items currently on the game field. Items are dictionaries that look like: {„id“: 0, „x“: 0, „y“: 0} :rtype: Tuple[List[Dict], int]
- static get_opponent() Tuple[Position, int]
Makes the /api/getOp call to the api. :return: A Position object with opponents robot position :rtype: Tuple[Position, int]
- static get_pos() Tuple[Position, int]
Führt den /api/getPos Aufruf an die API aus. :return: Ein Objekt der Klasse
Position
mit der Position des Roboters und der Status Code :rtype: Tuple[Position, int]
- static get_scores() Tuple[Dict, int]
Makes the /api/getScores call to the api. :return: A dictionary with all scores included like: {„self“:2,“opponent“:0} :rtype: Tuple[Dict, int]