stanfordkarel
stanfordkarel copied to clipboard
Improve Corner Colors - BLANK enum and restore on reset
Change Summary:
- Color definitions have been centralised
- Modified the
BLANK
constant to have a non None value to resolve equality checks - The world
corner_colors
dictionary is now auto-filled withBLANK
when corner color not provided - Painting
BLANK
corner color is now supported - Initial corner color state is restored when calling
reset_world
Added associated tests for new functionality.
This PR resolves the following issues:
- https://github.com/TylerYep/stanfordkarel/issues/74
- https://github.com/TylerYep/stanfordkarel/issues/75