Commit Graph

24 Commits

Author SHA1 Message Date
Arne Keller
43ee608975 Checkstyle 2020-02-19 10:13:44 +01:00
Arne Keller
ba6a939a92 Only place trains if all switches are set 2020-02-19 08:37:36 +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
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
fbf80103be Checkstyle 2020-02-17 11:19:56 +01:00
Arne Keller
3f1594263e Checkstyle 2020-02-17 11:00:15 +01:00
Arne Keller
cdc71c8253 Checkstyle 2020-02-17 10:39:26 +01:00
Arne Keller
48b4562bde Checkstyle 2020-02-17 10:14:19 +01:00
Arne Keller
2746b9e7cf Correctly handle placing already placed trains and correctly handle small trains on larger rails 2020-02-17 09:43:54 +01:00
Arne Keller
9191028934 Correctly derail 2020-02-16 19:42:27 +01:00
Arne Keller
fdedb5e001 Fix NPE 2020-02-16 19:21:07 +01:00
Arne Keller
4ffb3a5665 Refactor rail network in own class 2020-02-16 16:38:25 +01:00
Arne Keller
9aa8cc2384 Reorganize code 2020-02-16 15:01:33 +01:00