R: mikado (heading enum)

This commit is contained in:
Paul Hameteman 2025-10-14 22:13:55 +02:00
commit 61e293ee18
4 changed files with 42 additions and 20 deletions

View file

@ -1,7 +1,20 @@
# TODO
- [ ] Complexity
- [ ] long method
- [x] long method
- [ ] duplicated code
-
# Mikado
- [ ] Clean up constants and private fields
- [ ] Move move() into Heading.move(Position)
- [ ] Move turnLeft() into Heading.turnLeft()
- [ ] Move turnRight() into Heading.turnRight()
- [x] Remove HEADING_* constants
- [x] in move() compare to heading enum
- [x] in turnRight() compare to heading enum
- [x] in turnLeft() compare to heading enum
- [x] state.heading in Rover.constructor to enum
- [x] Change heading Char in RoverState to Heading enum
- [x] Create Heading enum
# RPP
- [ ] Reorder Responsibilities