This pull request adds difficulty levels to the Snake game, allowing players to choose between "Easy" and "Hard" modes. In "Easy" mode, the snake moves slower, while in "Hard" mode, it moves faster.
Changes:
Added difficulty buttons ("Easy" and "Hard") to the game screen.
Implemented functions to toggle and set the game difficulty.
Updated game delay and Added a difficulty label to display the current difficulty level.
Modified the reset_game function to reset the delay based on the current difficulty.
Testing:
Successfully tested the difficulty levels by playing the game in both "Easy" and "Hard" modes. The snake's speed adjusted accordingly, and the score display accurately reflected the current difficulty level.
Description:
This pull request adds difficulty levels to the Snake game, allowing players to choose between "Easy" and "Hard" modes. In "Easy" mode, the snake moves slower, while in "Hard" mode, it moves faster.
Changes:
Testing:
Successfully tested the difficulty levels by playing the game in both "Easy" and "Hard" modes. The snake's speed adjusted accordingly, and the score display accurately reflected the current difficulty level.
Concerns:
No concerns at this time.