Commit Graph

100 Commits

Author SHA1 Message Date
Arne Keller
4dd3d872a2 Clean up unused code 2020-03-05 21:15:07 +01:00
Arne Keller
672be521d7 Correctly put trains on the rail network 2020-03-05 21:13:03 +01:00
Arne Keller
9d057dfde0 Add testcase for put train around switches 2020-03-05 21:12:44 +01:00
Arne Keller
802c5deef5 Increase test coverage 2020-03-05 15:27:34 +01:00
Arne Keller
61b6739ab4 Checkstyle 2020-03-05 11:30:23 +01:00
Arne Keller
0e56a1c73b Checkstyle 2020-03-05 10:48:00 +01:00
Arne Keller
ce63ed3bed Checkstyle 2020-03-04 22:56:37 +01:00
Arne Keller
4fad0a377e Optimize large train placement 2020-03-04 22:22:05 +01:00
Arne Keller
70a070d9b1 Checkstyle 2020-03-04 20:22:59 +01:00
Arne Keller
860d31d8fb Recompute train direction when needed 2020-03-04 20:17:03 +01:00
Arne Keller
428e1862fc Checkstyle 2020-03-04 20:14:47 +01:00
Arne Keller
840c29f000 Remove test that will not be graded 2020-03-04 20:00:02 +01:00
Arne Keller
1a049e97cf Do not test ambiguous train placement, clean up code 2020-03-04 14:25:49 +01:00
Arne Keller
57708e1b4f Tests for those inconsistencies 2020-03-04 11:35:55 +01:00
Arne Keller
afb5e62d24 Correctly handle a few edge cases in put train 2020-03-04 11:35:32 +01:00
Arne Keller
1653db3c3b Add large generic test by David Schwärzle 2020-03-04 11:35:03 +01:00
Arne Keller
5fd90ef2bc Remove unused code 2020-03-03 22:59:49 +01:00
Arne Keller
12721156f5 Fix test for model 2B 2020-03-03 07:28:27 +01:00
Arne Keller
5267177f4e Implement model 2B 2020-03-02 23:29:59 +01:00
Arne Keller
c11fadbb9d Fix tests for 2B 2020-03-02 23:29:49 +01:00
Arne Keller
324231ef07 Make sure rolling stock has at least one coupling 2020-02-29 11:11:00 +01:00
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