Goose Game ai Driven prompt
I would prefer to have the dice rolling outside the `movePlayer` method, so that we could pass the dice to that method instead of passing along the two ints... smells like a "primitive obsession", but maybe it's too early to follow this smell and introduce an abstraction... What do you think?
---
We also need to change the generateMoveMessage to complete the proposed refactoring, right?
---
We also need to adapt the tests to this refactoring, right?
---
I prefer mockk to mockito. Could you change the test code to use mockito and also tell me how to change the `build.gradle` to add mockk dependency?
---
please remember I use Gradle with the Kotlin DSL when proposing changes to the `build.gradle.kts` file.when 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