Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 1, 2025

Snake moves too fast for effective player control. Doubled the tick interval to make the game playable and added runtime controls to adjust speed dynamically.

Changes

  • Increased default tickSpeed from 0.1 to 0.2 seconds in src/config/config.py
    • Reduces movement rate from 10 to 5 moves/second
    • Applies to both graphical and text UI modes
  • Added runtime tick speed configuration with key bindings:
    • + / = - Increase speed (faster snake)
    • - / _ - Decrease speed (slower snake)
    • l - Toggle tick speed limit (now works in text UI too)
  • Added configurable bounds for tick speed adjustment:
    • Minimum: 0.05 seconds (20 moves/second)
    • Maximum: 1.0 seconds (1 move/second)
    • Step size: 0.05 seconds
  • Refactored tick speed control logic into shared methods to eliminate code duplication
  • Updated README.md with new control documentation
# tick speed
self.limitTickSpeed = True
self.tickSpeed = 0.2  # was 0.1
self.minTickSpeed = 0.05
self.maxTickSpeed = 1.0
self.tickSpeedStep = 0.05

<issue_title>Fix fast snake</issue_title>
><issue_description>The game runs too quickly to react in time to control the snake effectively. The snake should move slower.</issue_description>
>
> ## Comments on the Issue (you are @copilot in this section)
>
>
>
>

Original prompt

This section details on the original issue you should resolve

<issue_title>Fix fast snake</issue_title>
<issue_description>The game runs too quickly to react in time to control the snake effectively. The snake should move slower.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix fast snake movement in game Slow down snake movement speed Nov 1, 2025
@dmccoystephenson
Copy link
Member

dmccoystephenson commented Nov 2, 2025

@copilot make the tick speed configurable at runtime with key bindings for text UI control

Copilot AI and others added 2 commits November 2, 2025 00:22
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 2, 2025

@copilot make the tick speed configurable at runtime with key bindings for text UI control

Done! Added runtime tick speed controls with key bindings for text UI (commit 6a220d8).

New controls:

  • + / = - Increase speed (faster snake)
  • - / _ - Decrease speed (slower snake)
  • l - Toggle tick speed limit (now works in text UI)

Speed adjusts between 0.05s and 1.0s in 0.05s increments. These controls work in both text UI and graphical UI modes.

Copilot AI changed the title Slow down snake movement speed Fix snake speed and add runtime tick speed controls Nov 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix fast snake

2 participants