Commit Graph

20 Commits

Author SHA1 Message Date
Bruno BELANYI 4487269ab6 rover: add exception on unknown Commander command 2019-11-28 16:21:40 +01:00
Bruno BELANYI b4ecee8c44 rover: add pytest-mypy to Pipfile 2019-11-16 04:28:08 +01:00
Bruno BELANYI 41adeb39d2 rover: add return type annotation to methods 2019-11-16 04:27:41 +01:00
Bruno BELANYI 7352207636 rover: add rover starting on obstacle validation 2019-11-16 04:26:24 +01:00
Bruno BELANYI 39d1fcd5ac rover: add non-oversize position validation 2019-11-16 04:25:28 +01:00
Bruno BELANYI 1fbf7ece7c rover: add non-negative coordinate validation 2019-11-16 04:24:02 +01:00
Bruno BELANYI ce0241b3f4 rover: add obstacle detection to Commander 2019-11-16 03:19:50 +01:00
Bruno BELANYI 556acf8095 rover: add parse_exectute method to Commander 2019-11-16 03:02:53 +01:00
Bruno BELANYI 81dca25a4f rover: add Commander class 2019-11-15 21:32:55 +01:00
Bruno BELANYI 4a79fd4c7f rover: add turn methods to Rover class 2019-11-15 21:29:37 +01:00
Bruno BELANYI af803b642a rover: add backward method 2019-11-15 21:20:42 +01:00
Bruno BELANYI c96f44332c rover: wrap when going over planet size 2019-11-15 21:14:42 +01:00
Bruno BELANYI 24b3f63d3c rover: wrap when going negative 2019-11-15 21:12:51 +01:00
Bruno BELANYI d9bf239c39 rover: use direction when going forward 2019-11-15 21:12:07 +01:00
Bruno BELANYI add6940dce rover: use Pydantic for Vector and Rover classes
Pydantic is similar to Dataclasses, but enables run-time type-checking.
2019-11-15 21:04:16 +01:00
Bruno BELANYI 0f1b861eee rover: add direction field to Rover 2019-11-15 20:43:59 +01:00
Bruno BELANYI b6d74b24eb rover: define default values for Rover fields 2019-11-15 20:35:19 +01:00
Bruno BELANYI b90f92e557 rover: use real Vector class 2019-11-15 20:34:34 +01:00
Bruno BELANYI ca35c2bf94 rover: initial class definition 2019-11-15 20:29:06 +01:00
Bruno BELANYI aec0c6c3fc rover: add Pipenv files 2019-11-15 20:22:29 +01:00