problem module

class models.problem.Move(id: int, row: int, column: int, description: str, is_start: bool = False, is_end: bool = False)

Bases: object

Information about a move of the problem.

Parameters
  • id (int) – The move’s id

  • description (str) – The move’s description

  • is_start (bool) – Whether the move is the start of the problem

  • is_end (bool) – Whether the move is the end of the problem

column: int
description: str
id: int
is_end: bool = False
is_start: bool = False
row: int
class models.problem.Problem(name: str, grade: str, moves: List[models.problem.Move], is_benchmark: bool, **kw)

Bases: object

Representation of a problem. This class is used to store the problem information in a format that is recognized by the rendering engine.

Parameters
  • name (str) – Name of the problem.

  • grade (str) – Grade of the problem.

  • moves (List[Move]) – List of moves of the problem.

  • is_benchmark (bool) – Whether this problem is a benchmark problem.

class models.problem.Setter(nickname: str, firstname: str, lastname: str)

Bases: object

Information about the setter of the problem.

Parameters
  • nickname (str) – The setter’s nickname

  • firstname (str) – The setter’s first name

  • lastname (str) – The setter’s last name

firstname: str
lastname: str
nickname: str