Skip to content

competitors can cause game to crash #1

@iangonzalezh

Description

@iangonzalezh

if competitors send an empty list of actions they can crash our game since in submit_turn() under game.py we have the following two lines:

    assert len(p1_actions) == NUM_BOTS
    assert len(p2_actions) == NUM_BOTS

we should change these lines from asserts to raising errors to the competitor if they submit the wrong number of actions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions