Results class

It's a class that stores the results of the execution

Constructors

Results()

Properties

completed bool
It's a variable that is used to check if the task is completed or not.
read / write
getCommands List<String>
It's a getter that returns the list of commands that were used to get to the current state.
read-only
getPositions List<Pair<int, int>>
It's a getter that returns the list of positions that were used to get to the current state.
read-only
getStates List<BasicShape>
It's a getter that returns the past states of the board.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
partialCatScore int
CAT score value
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

addResult(String command, BasicShape state, Pair<int, int> position) → void
It adds the current state, command, and position to the lists
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeLast() → void
Remove the last recorded state of the board.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited