Conversation
✅ Deploy Preview for bog-ican ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Greptile SummaryThis PR implements a Flappy Bird game in the frontend and extends the backend Key areas needing attention before merge:
PR Checklist areas needing improvement:
Score: 52 / 100 — The backend implementation is solid, but the score integration remains completely disconnected from the frontend, which is the primary feature of this PR. Confidence Score: 4/5Not safe to merge until the score-to-backend integration is wired up — the entire high-score feature is a no-op as shipped. A P1 issue from a prior review thread remains unresolved:
Important Files Changed
|
| <button | ||
| onClick={handleStartOrReplay} | ||
| className="text-center font-quantico text-icanBlue-300 rounded-xl border-4 border-icanBlue-200 bg-white px-4 py-2 shadow-[0_4px_0_0_#7D83B2]" | ||
| > | ||
| {gameState === GameState.LOSS ? "Replay" : "Start"} | ||
| </button> |
There was a problem hiding this comment.
Hardcoded color value in Tailwind arbitrary value
shadow-[0_4px_0_0_#7D83B2] hardcodes the hex color #7D83B2. Per the project's conventions, color variables from the Tailwind config/global stylesheet should be used instead of raw hex values.
Rule Used: Use color variables from the global stylesheet (`s... (source)
Learnt From
GTBitsOfGood/design-system#61
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Description
Resolves #232
What does this PR change and why?
Implements frontend flappy bird game with score. Adds highScore to backend GameStats
Checklist
Critical Changes
N/A
Testing
Tested gameplay functionality locally. Ensured score increments correctly and resets on new game/game start, game ends when bird hits top/bottom of pipe, side of pipe, and ground.