Commit Graph

52 Commits

Author SHA1 Message Date
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
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
4d23894509 Add more tests 2020-02-17 09:46:00 +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
0cf7368997 Add IDE files 2020-02-16 19:24: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
a84cb80288 Fix compile error 2020-02-16 16:25:19 +01:00
Arne Keller
07bc781c3d Skip comments instead of exiting 2020-02-16 16:25:01 +01:00
Arne Keller
9aa8cc2384 Reorganize code 2020-02-16 15:01:33 +01:00
Arne Keller
bfccc89237 Checkstyle 2020-02-16 14:57:54 +01:00
Arne Keller
d446628f35 Checkstyle 2020-02-15 17:53:19 +01:00
Arne Keller
3610cfac8d Checkstyle 2020-02-15 17:33:08 +01:00
Arne Keller
b24b7cd83f Make command an interface 2020-02-15 16:51:34 +01:00
Arne Keller
972000204f Checkstyle 2020-02-15 16:38:54 +01:00
Arne Keller
7af35ef2b0 Add gitignore 2020-02-15 16:38:41 +01:00
Arne Keller
9cc4ba0015 Checkstyle 2020-02-15 16:11:13 +01:00
Arne Keller
49e2e65908 Checkstyle 2020-02-15 16:07:49 +01:00
Arne Keller
cb9c82ecdf Delete unused code 2020-02-15 15:55:51 +01:00
Arne Keller
ccca59fc4a Checkstyle 2020-02-15 15:55:20 +01:00
Arne Keller
6ba920c82d Use enums more/better 2020-02-15 15:50:55 +01:00
Arne Keller
ac089109b2 Add javadoc 2020-02-15 15:44:07 +01:00
Arne Keller
1e8026216a Remove unused code 2020-02-15 15:41:54 +01:00
Arne Keller
bbbcfac68a Add fuzzing script 2020-02-15 15:25:36 +01:00
Arne Keller
2267b3c5de Add examples 2020-02-15 15:25:18 +01:00