This PR adds a white border on the edge of the screen in the command-line snake game. The border enhances the visual appeal of the game and provides a clear boundary for the game area.
Summary
Modified cli_snake_game/game.py to draw four white rectangles on the edges of the game screen using Pygame's pygame.draw.rect function.
The border is drawn with a fixed width of 10 pixels and is included in every frame within the game loop.
Description
This PR adds a white border on the edge of the screen in the command-line snake game. The border enhances the visual appeal of the game and provides a clear boundary for the game area.
Summary
cli_snake_game/game.py
to draw four white rectangles on the edges of the game screen using Pygame'spygame.draw.rect
function.Fixes #5.
🎉 Latest improvements to Sweep:
rope
library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, trysweep: Refactor <your_file>.py
!💡 To get Sweep to edit this pull request, you can: