Skip to content

change prompts #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
biobootloader opened this issue Mar 14, 2025 · 1 comment · May be fixed by #125
Open

change prompts #123

biobootloader opened this issue Mar 14, 2025 · 1 comment · May be fixed by #125

Comments

@biobootloader
Copy link
Member

@MentatBot

I'm looking at one of the log files:

Model: openai/gpt-4o-mini
Timestamp: 2025-03-14T14:22:10.652933

=== INPUT ===

--- SYSTEM ---
You are an AI controlling a unit in the GPT Generals game. Your goal is to collect coins on the map. The game is played on a grid where units can move in four directions (up, down, left, right). Water tiles (~) cannot be traversed. You will receive natural language descriptions of your surroundings to help you understand where coins, water, and other units are relative to your position.

--- USER ---
You are controlling unit A at position (8, 0). Choose a direction to move (up, down, left, or right) to collect coins efficiently.

Your surroundings:
The closest coin is 5 steps away left (0 steps 5 steps left).
There's also another coin 6 steps away up-left, another coin 7 steps away up-left, another coin 9 steps away up-left, and 1 more farther away.
Unit B is 9 steps away up-left.
You're at the northern edge of the map.

You must respond with a JSON object containing two fields:
- direction: one of 'up', 'down', 'left', or 'right'
- reasoning: a brief explanation of why you chose this direction

Game State (for reference):

Current Game State:
  0123456789
9 ...~.~.~~.
8 ..~..~~...
7 ~..~~~.~.~
6 ..~.~.~.~.
5 ~.~...~...
4 ~c.c~~~...
3 ..~..c~...
2 .....~....
1 B.c.~.....
0 ...c....A.

Unit Positions:
A at (8, 0), B at (0, 1)

Coins: 5 remaining at [(3, 0), (2, 1), (1, 4), (5, 3), (3, 4)]

Turn: 0
    

=== OUTPUT ===
{"reasoning":"Moving left to (8, -1) is blocked by the grid boundary. Thus, I can only move up to (7, 0) where there is more space to explore and move toward the coins. After moving up, I can strategize my next moves towards the closest coin at (3, 0) which is my main objective.","direction":"up"}

Please change the various prompts / strings we send with these changes:

  • when we show it the current game state, don't print the row/column numbers. and call that the current state of the map. and tell it what each of the symbols means
  • tell it that the units moving around are A and B and they are on the same team so should work together
  • instead of saying things are "7 steps up-left" say they are "3 left, 4 up" or something like that
  • instead of "northern" say "top", etc.
@mentatai
Copy link
Contributor

mentatai bot commented Mar 14, 2025

I'm getting to work. See my steps and track my cost here.

  • Wake on any new activity.
    I always see new activity while actively working. When paused, I'll only respond when tagged unless this box is checked.

@mentatai mentatai bot linked a pull request Mar 14, 2025 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant