You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
460 B
26 lines
460 B
# Enumeration of possible actions
|
|
from __future__ import annotations
|
|
|
|
from enum import IntEnum
|
|
|
|
|
|
#class Actions(IntEnum):
|
|
# # Turn left, turn right, move forward
|
|
# left = 0
|
|
# right = 1
|
|
# forward = 2
|
|
# # Pick up an object
|
|
# pickup = 3
|
|
# # Drop an object
|
|
# drop = 4
|
|
# # Toggle/activate an object
|
|
# toggle = 5
|
|
#
|
|
# # Done completing task
|
|
# done = 6
|
|
|
|
class Actions(IntEnum):
|
|
East = 0
|
|
South = 1
|
|
West = 2
|
|
North = 3
|