Commit Graph

79 Commits

Author SHA1 Message Date
Arne Keller
8f8baf6701 Implement model 1A 2020-02-29 08:26:24 +01:00
Arne Keller
68b28f3c37 Change silly edge case behaviour 2020-02-25 14:58:14 +01:00
Arne Keller
0970bfb978 Checkstyle 2020-02-25 08:52:20 +01:00
Arne Keller
e487a23251 Move Terminal printing out of model classes 2020-02-22 18:23:12 +01:00
Arne Keller
40cc52d2a3 Checkstyle 2020-02-22 18:02:53 +01:00
Arne Keller
c82ab689d4 Write comments 2020-02-21 08:30:30 +01:00
Arne Keller
122193300d Refactor train movement into train manager class 2020-02-21 08:19:57 +01:00
Arne Keller
4da5eeebd3 Checkstyle 2020-02-20 14:11:26 +01:00
Arne Keller
29a1953dab Checkstyle and SonarQube 2020-02-20 11:51:57 +01:00
Arne Keller
2f8f79a7a1 SonarQube 2020-02-20 09:31:20 +01:00
Arne Keller
72bea80f9b SonarQube 2020-02-20 09:04:18 +01:00
Arne Keller
938ace5a5b SonarQube 2020-02-20 08:36:35 +01:00
Arne Keller
e54bf43cbd Increase test coverage 2020-02-20 08:28:58 +01:00
Arne Keller
aa8f43b251 Checkstyle and SonarQube 2020-02-19 23:54:33 +01:00
Arne Keller
c40e635cb8 Checkstyle 2020-02-19 23:18:14 +01:00
Arne Keller
931ff805a9 Store available commands in map 2020-02-19 23:09:43 +01:00
Arne Keller
8803aab42a Checkstyle 2020-02-19 19:32:35 +01:00
Arne Keller
1f3802d380 Refactor command parsing 2020-02-19 19:28:06 +01:00
Arne Keller
7e39a97dd4 Checkstyle 2020-02-19 18:49:18 +01:00
Arne Keller
5b9f9b8da7 Checkstyle 2020-02-19 18:47:00 +01:00
Arne Keller
33138162fb Refactor coach as an abstract class 2020-02-19 18:44:25 +01:00
Arne Keller
8811dcf228 Fix placing trains 2020-02-19 18:40:43 +01:00
Arne Keller
e8a2a28aa8 Checkstyle 2020-02-19 18:30:40 +01:00
Arne Keller
b17e8db22f Checkstyle 2020-02-19 18:13:22 +01:00
Arne Keller
4a175ee581 Test for unicode letters 2020-02-19 18:13:14 +01:00
Arne Keller
24919ac07c Correctly print electrical engines 2020-02-19 10:20:59 +01:00
Arne Keller
2e336a9bcb Correctly crash touching trains 2020-02-19 10:14:02 +01:00
Arne Keller
43ee608975 Checkstyle 2020-02-19 10:13:44 +01:00
Arne Keller
0ff7d6e300 Remove not needed pattern 2020-02-19 08:57:18 +01:00
Arne Keller
be6bc87b58 Modularize command patterns 2020-02-19 08:55:36 +01:00
Arne Keller
ba6a939a92 Only place trains if all switches are set 2020-02-19 08:37:36 +01:00
Arne Keller
6e62cdb6e0 Correctly handle unicode names 2020-02-19 08:23:35 +01:00
Arne Keller
a8367d84b3 Fix error messages in test cases 2020-02-19 08:16:53 +01:00
Arne Keller
7e28bdc446 Checkstyle 2020-02-18 20:47:51 +01:00
Arne Keller
137b8359c6 Checkstyle 2020-02-18 19:18:04 +01:00
Arne Keller
2125588a0d Increase test coverage and tweak error messages 2020-02-18 18:11:40 +01:00
Arne Keller
71fb077c7a Increase test coverage and change error message wording 2020-02-18 15:57:04 +01:00
Arne Keller
cc4a247fec Add lots of tests for error messages 2020-02-18 15:03:48 +01:00
Arne Keller
618cee8e70 Do not print derailed trains when setting switch 2020-02-18 14:50:01 +01:00
Arne Keller
fa62ba267f Actually remove crashed trains 2020-02-18 14:40:21 +01:00
Arne Keller
302b755ee6 Correctly handle crashes of more than two trains 2020-02-18 14:35:39 +01:00
Arne Keller
16ddc708ef Add more tests and change error wording and simplify train coupling logic 2020-02-18 14:19:45 +01:00
Arne Keller
dab2f23e82 Correctly derail trains on switches 2020-02-18 09:47:36 +01:00
Arne Keller
461e359b12 Fix test error messages 2020-02-18 09:47:20 +01:00
Arne Keller
1ab66a2292 Add test case 2020-02-18 09:42:20 +01:00
Arne Keller
25d7ba0dce Correctly handle long tracks and trains 2020-02-17 20:39:30 +01:00
Arne Keller
e41badefd9 Use a map for storing trains 2020-02-17 14:11:55 +01:00
Arne Keller
bb9d014508 Checkstyle 2020-02-17 13:59:42 +01:00
Arne Keller
efcd3a721b Make Command an abstract class 2020-02-17 12:33:26 +01:00
Arne Keller
fbf80103be Checkstyle 2020-02-17 11:19:56 +01:00