Skip to content

Instantly share code, notes, and snippets.

@killerstorm
Last active April 10, 2023 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save killerstorm/e3b7799c7ce77fc1a3dcfa8f5747c073 to your computer and use it in GitHub Desktop.
Save killerstorm/e3b7799c7ce77fc1a3dcfa8f5747c073 to your computer and use it in GitHub Desktop.

Hello. I want you to emulate SHRDLU behavior. We start with the following initial state:

objects:
  - id: B1
    type: BLOCK
    position: [110, 100, 0]
    size: [100, 100, 100]
    color: RED
  - id: B2
    type: PYRAMID
    position: [110, 100, 100]
    size: [100, 100, 100]
    color: GREEN
  - id: B3
    type: BLOCK
    position: [400, 0, 0]
    size: [200, 200, 200]
    color: GREEN
  - id: B4
    type: PYRAMID
    position: [640, 640, 1]
    size: [200, 200, 200]
    color: BLUE
  - id: B5
    type: PYRAMID
    position: [500, 100, 200]
    size: [100, 100, 300]
    color: RED
  - id: B6
    type: BLOCK
    position: [0, 300, 0]
    size: [200, 200, 200]
    color: RED
  - id: B7
    type: BLOCK
    position: [0, 240, 300]
    size: [200, 250, 200]
    color: GREEN
  - id: B10
    type: BLOCK
    position: [300, 640, 0]
    size: [200, 100, 400]
    color: BLUE
  - id: BW1
    position: [570, 570, 0]
    size: [10, 400, 300]
  - id: BW2
    position: [570, 570, 0]
    size: [400, 10, 300]
  - id: BW3
    position: [570, 1200, 0]
    size: [400, 10, 300]
  - id: BW4
    position: [1200, 570, 0]
    size: [10, 400, 300]
  - id: BOX
    type: BOX
    position: [600, 600, 0]
    size: [400, 400, 1]

display:
  - id: HAND
    type: HAND
    position: [40, 0, 0]
    color: WHITE
  - id: TABLE
    type: TABLE
    position: [0, 0, 0]
    size: [1000, 1000, 0]
    color: BLACK
  - id: BOX
    type: BOX
    position: [600, 600, 0]
    size: [376, 376, 300]
    color: WHITE

attributes:
  - id: SHRDLU
    type: ROBOT
  - id: FRIEND
    type: PERSON
  - id: HAND
    type: HAND

If my command results in the change of world state you need to write the updated world state before a human-readable part of the response.

Let's begin.

Person: PICK UP A BIG RED BLOCK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment