Commit Graph

49 Commits

Author SHA1 Message Date
Arne Keller
33bf28485e Create interface for objects that require dice roll 2020-03-17 11:41:54 +01:00
Arne Keller
9e75ca37a3 Document code 2020-03-14 23:03:47 +01:00
Arne Keller
bbfd08f7be Add test: losing after failing to escape 2020-03-14 13:46:38 +01:00
Arne Keller
6d4db9f12b Javadoc + allow various command during game end phase 2020-03-13 09:30:43 +01:00
Arne Keller
32b09cd059 Correctly parse integer parameters 2020-03-13 08:53:17 +01:00
Arne Keller
4232c7b14e Add integer parsing test 2020-03-13 08:53:04 +01:00
Arne Keller
ae79b31f3d Javadoc + code cleanup 2020-03-12 23:01:32 +01:00
Arne Keller
48d014e4de Lose game after encountering animal with no actions left 2020-03-12 22:25:01 +01:00
Arne Keller
22446ea8aa Add test for lost after animal encounter 2020-03-12 22:23:27 +01:00
Arne Keller
5535692596 Refactor game logic to handle items in generic way 2020-03-12 22:02:03 +01:00
Arne Keller
a7dab3cfa5 Allow listing buildings and resources when game is done 2020-03-12 18:08:23 +01:00
Arne Keller
a738c23f5e Do not remove item used to escape 2020-03-12 18:07:23 +01:00
Arne Keller
1388d78244 Javadoc for Item 2020-03-12 09:28:03 +01:00
Arne Keller
0eac34a6c7 Do not test precise error message wording 2020-03-12 09:18:58 +01:00
Arne Keller
0b913bf943 Simplify game phase logic 2020-03-12 09:18:45 +01:00
Arne Keller
172e085d28 Handle item requirements when building better 2020-03-12 08:39:02 +01:00
Arne Keller
ed5170ebfc Increase test coverage 2020-03-11 11:37:32 +01:00
Arne Keller
f39fdee4c9 Correctly handle common prefixes in command names 2020-03-11 11:19:34 +01:00
Arne Keller
e7c3a40ac0 Only build items when not expecting dice roll 2020-03-11 11:13:25 +01:00
Arne Keller
1e95394391 Add generic waf2 test 1 by usosx 2020-03-11 11:11:30 +01:00
Arne Keller
627f0f96ab Move into own package 2020-03-11 11:07:48 +01:00
Arne Keller
9d1fbc2ffe Only allow build? when not expecting dice roll 2020-03-11 11:04:07 +01:00
Arne Keller
e48233f10c Add generic test by nikxda 2020-03-11 11:01:03 +01:00
Arne Keller
c058aeadde Change list-resources order 2020-03-11 10:55:06 +01:00
Arne Keller
45f05292b4 Update game logic to changed requirements and refactor command parsing 2020-03-11 10:51:29 +01:00
Arne Keller
8e3bd2bd25 Use logic exception in model classes 2020-03-11 10:27:13 +01:00
Arne Keller
6cfc8c0a89 Do not allow reset if game not started once 2020-03-07 10:24:41 +01:00
Arne Keller
0c9ea4e0ba Ballon is not a typo 2020-03-03 18:42:59 +01:00
Arne Keller
e13ee8430f Print lose if no moves available 2020-03-03 18:42:38 +01:00
Arne Keller
f94ddddc9b Only output win when winning 2020-03-03 18:34:48 +01:00
Arne Keller
72c9922c44 Correctly handle game end 2020-03-03 18:32:00 +01:00
Arne Keller
6c8f172d3f Only print buildable items if they can be built in addition to existing 2020-03-03 18:21:36 +01:00
Arne Keller
58f30fbf39 Only print buildable items that require a fireplace if one exists 2020-03-03 18:12:37 +01:00
Arne Keller
17e79b751a Checkstyle 2020-02-29 17:05:29 +01:00
Arne Keller
554a3a062e Allow tools to be built multiple times and buildings only once 2020-02-29 16:27:50 +01:00
Arne Keller
1a93c5d061 Correctly handle reset by reusing start cards and wait for start before allowing commands 2020-02-29 16:23:36 +01:00
Arne Keller
52ab63f578 Correctly handle wrong start input 2020-02-29 16:08:54 +01:00
Arne Keller
74cac150fa Add shack building test and fix behaviour on codetester 2020-02-29 08:47:20 +01:00
Arne Keller
3bd70a5350 Checkstyle and tests 2020-02-28 15:39:49 +01:00
Arne Keller
f274b25ae2 Checkstyle and tests 2020-02-28 15:24:56 +01:00
Arne Keller
c0aa7d29e6 Correctly roll dice and print result 2020-02-28 12:14:28 +01:00
Arne Keller
fffc21a73e Add command tests 2020-02-28 11:59:40 +01:00
Arne Keller
f240ecf5f0 Correct list-buildings order 2020-02-28 11:56:17 +01:00
Arne Keller
d51e6a4dae Correct list-resources ordering 2020-02-28 09:53:21 +01:00
Arne Keller
bffdf9112c Implement more commands and add test case 2020-02-25 18:19:52 +01:00
Arne Keller
e36116701b Implement animal encounters 2020-02-24 19:23:53 +01:00
Arne Keller
59a2f86a32 Implement some commands partially 2020-02-24 17:39:27 +01:00
Arne Keller
343ae03421 Initial command parser 2020-02-24 17:02:48 +01:00
Arne Keller
63d0af1f00 Initial commit 2020-02-24 15:45:26 +01:00