Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Fix colors on restart#3

Open
fcolon wants to merge 1 commit into
MaelDrapier:masterfrom
fcolon:color-fix-on-restart
Open

Fix colors on restart#3
fcolon wants to merge 1 commit into
MaelDrapier:masterfrom
fcolon:color-fix-on-restart

Conversation

@fcolon

@fcolon fcolon commented Nov 5, 2021

Copy link
Copy Markdown

Current behavior:
Snake and apple colors are randomized on restart, even if custom color props are passed in.

Updated behavior:
Color props are used on restart if they are passed in. Otherwise, defaults to randomizing color(s) on restart.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant