Goose Game ai Driven prompt
I would also extract the `player.getOldPosition() + dice.sum == THE_BRIDGE` logic to `Player`, now
---
Agreed! I made the refactoring, all tests are green. I also moved the constant `THE_BRIDGE` to `Player`class, since this class is the only needing itwhen to use it
Community prompt sourced from the open-source GitHub repo xpepper/goose-game-ai-driven (no explicit license). A "Goose Game ai Driven prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
xpepper/goose-game-ai-driven · no explicit license
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions