R: Rover.move use copy() & make positionX and positionY immutable
This commit is contained in:
parent
eb63607e53
commit
0ca418f0b5
3 changed files with 4 additions and 5 deletions
|
|
@ -10,7 +10,7 @@
|
|||
- [ ] Change var to val (immutable)
|
||||
- [ ] Rover.turnLeft use copy() on state
|
||||
- [ ] Rover.turnRight use copy() on state
|
||||
- [ ] Rover.move use copy() on state
|
||||
- [x] Rover.move use copy() on state
|
||||
- [x] Rover.constructor use copy() on state
|
||||
- [x] Change RoverState to Data Class
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue