Promptzpromptz
LibraryPromptsAgentsPowersSteeringHooks
Back to Prompts
promptpromptz
IDECLI

Tdd Fishing Game Prompt

Stan Fan
Feb 19, 2025
Updated Feb 19, 2025
010fc91
View on GitHub
Prompt Content
# TDD-fishing-game-prompt

/dev Generate an ASCII fishing game, include feature:
1. cast_line
2. catch_fish
3. display_game

add a catch_shark method. When player caught a shark, minus 1 score. Generate test file first.

Generate a test case that player's score cannot go below 0

Generate a integration test of retriving highest scroe from dynamoDB with moto lib

write me a test case only, without touching source code, test on cathing an invalid fish, e.g. bass

Now generate the source code for me on test_catch_invalid_fish test case