Skip to content

Add a return-home win condition - #30

Merged
BryanBlaze00 merged 1 commit into
masterfrom
feature/9-return-home
Oct 5, 2026
Merged

BryanBlaze00 merged 1 commit into
masterfrom
feature/9-return-home

Conversation

@BryanBlaze00

Copy link
Copy Markdown
Owner

Summary

Closes #9.

  • Adds an explicit (1, 1) starting position to the environment.
  • Adds is_won() requiring a living agent to carry gold at the start cell.
  • Keeps finding gold separate from completing the game.
  • Updates the simulation loop and final messages.
  • Adds tests for successful and unsuccessful return states.

Testing

Run from the repository root:

python -m unittest discover -s tests -v

All 32 tests pass.

Closes #9

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@BryanBlaze00 BryanBlaze00 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good.

@BryanBlaze00
BryanBlaze00 merged commit 2decf62 into master Oct 5, 2026
1 of 2 checks passed
@BryanBlaze00
BryanBlaze00 deleted the feature/9-return-home branch October 5, 2026 20:00
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.

Add a return-home win condition

1 participant