Side

This class describes the different sides involved in the scenario (e.g., BLUE, RED).

ATTRIBUTES

  • id: (str) unique identifier for the side.

    • Example: "47179c9e-aa00-4bba-a784-cec9108fdb4b"

  • name: (str) name of the side.

    • Example: "BLUE"

  • totalScore: (int) total score of the side.

    • Example: 0

  • sideColor: (str) color representing the side.

    • Example: "blue"

METHODS

  • toJSON(): (str) returns this object as a JSON.

Last updated