Skip to content

Add colourblind mode setting#517

Open
JavadTe wants to merge 2 commits into
fossguild:devfrom
JavadTe:add-colorblind-mode
Open

Add colourblind mode setting#517
JavadTe wants to merge 2 commits into
fossguild:devfrom
JavadTe:add-colorblind-mode

Conversation

@JavadTe
Copy link
Copy Markdown

@JavadTe JavadTe commented May 21, 2026

Summary

This pull request adds a simple colourblind mode setting to improve accessibility.

Changes

  • Added a new colourblind_mode setting.
  • Added a Colourblind mode option to the Settings menu.
  • Added high-contrast snake colours when colourblind mode is enabled.
  • Added high-contrast board colours when colourblind mode is enabled.

Testing

  • Ran the game locally using py -m uv run naja.
  • Confirmed the Colourblind mode option appears in Settings.
  • Confirmed the game colours change when Colourblind mode is On.
  • Ran py -m uv run ruff check . and all checks passed.
  • Ran py -m uv run pytest. Result: 349 passed, 1 failed. The failed test is related to game over high score behaviour and appears unrelated to this colourblind mode change.

Related issue

Closes #511

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.

[FEAT] Add colorblind mode

1 participant