8000 Improve prompt to make it complete Sokoban level 1 by mocheng · Pull Request #32 · lmgame-org/GamingAgent · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve prompt to make it complete Sokoban level 1 #32

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
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

mocheng
Copy link
@mocheng mocheng commented Apr 30, 2025

As I experiments, I found that the "brief reasoning" in Sokoban agent prompt would make LLM output less thinking and hard to get a working strategy.

    "move: up/down/left/right, thought: <brief reasoning>\n\n"

So I updated the prompt and get it complete level 1 in one shot. The log is as this https://gist.github.com/mocheng/17b6a2d0d63fcaf26238e9e2dbf42c10#file-gistfile1-txt .

mocheng added 8 commits April 30, 2025 15:53
- swap row_index and col_index so that it is easy for understanding
- refine definiton of tiles in matrix
- define clear actions(up/down/left/right)
- add multiple steps example
- Put 'thought' before 'action' in output foramt. Hope this make the
  'thought' process leads to accurate 'action' instead of adjustiying
  action ahead.
- add restart and remove actions
- replace default levels file with the one from https://github.com/morenod/sokoban/blob/master/levels
- add 'levels_filename' and 'max_leve' arguments to sokoban game
- Make AI output one move/thought at one time. It looks multiple steps
  in one output make things worse in complicated level.
- Add '+'(worker on dock). This is necessary since it make AI be aware
  of dock even there is a worker on it.
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 this pull request may close these issues.

1 participant
0