Commit Graph

170 Commits

Author SHA1 Message Date
Leonardo Brandenberger 9983d3ea1d Deleted Dummy Class and minor fixes in several classes and use of Config Value MINPLAYER 2021-12-09 15:23:39 +01:00
schrom01 c28efe5331 Using Values of Config in SiedlerGame.java 2021-12-09 15:23:34 +01:00
schrom01 b30f15e7c5 updating JavaDoc in SiedlerBoard 2021-12-08 12:41:42 +01:00
Andrin Fassbind 161dec226e adjust countRoad in SiedlerGame 2021-12-07 17:36:29 +01:00
Andrin Fassbind 99a8feca03 Merge remote-tracking branch 'origin/main' 2021-12-07 15:33:48 +01:00
Andrin Fassbind 46484df77c adjust countRoad in SiedlerGame 2021-12-07 15:33:39 +01:00
Speedy Gonzalez bf32d978bc checked some warnings in class SiedlerGame. 2021-12-07 15:27:56 +01:00
Speedy Gonzalez 7f19c5acce Added java doc in parser class. 2021-12-07 15:27:01 +01:00
Speedy Gonzalez ecc75e14c8 updated german comments to english. 2021-12-07 15:03:41 +01:00
Speedy Gonzalez cff925de61 removed to do's and updated java docs. 2021-12-07 14:57:57 +01:00
Speedy Gonzalez 99da9715c5 Updated buildCity method. 2021-12-07 14:33:56 +01:00
schrom01 b758e08fdb refactoring Method storeResourcesToBank 2021-12-07 13:57:33 +01:00
schrom01 038bc65b3d fixing Method throwDice in SiedlerGame.java 2021-12-07 13:55:10 +01:00
schrom01 458905ddd4 fixing Method checkResourceToBuild 2021-12-07 11:45:22 +01:00
schrom01 4c56518ba0 fixing Method checkResourceToBuild 2021-12-07 11:44:51 +01:00
schrom01 da6913d997 refactoring in SiedlerGame.java and Player.java 2021-12-07 10:59:02 +01:00
schrom01 8052ac97ff Completed Java Doc in Siedler.java 2021-12-07 09:08:10 +01:00
schrom01 d35c7299ae refactoring in Siedler.java 2021-12-07 08:30:14 +01:00
Andrin Fassbind 21f144b294 adjust countRoad in SiedlerGame 2021-12-05 14:12:22 +01:00
Andrin Fassbind a79e1eefe3 Implemented longest Road logic in SiedlerGame
-adjusted Road and Settlement to return position
2021-12-05 13:53:36 +01:00
schrom01 51e61a8e00 Set Variable citiesToUse in Constructor of Player 2021-12-04 23:29:19 +01:00
schrom01 7752d6ff7e completed handleDiceThrow7 in Player.java 2021-12-04 17:44:15 +01:00
schrom01 6bd4f1dcbe moved handleDiceThrow7 in Player.java 2021-12-04 17:03:51 +01:00
Leonardo Brandenberger 79a0b9175e fixed minor bug in Bank class 2021-12-04 16:43:15 +01:00
schrom01 5eece3125b Merge remote-tracking branch 'origin/main' 2021-12-04 16:34:12 +01:00
schrom01 4b0bedcabf changes in Methods for trading with bank. 2021-12-04 16:33:55 +01:00
Leonardo Brandenberger 69e4c7146e Removed tradeWithBank method and modified constructor 2021-12-04 16:33:52 +01:00
schrom01 e23f8bcdde Merge remote-tracking branch 'origin/main'
# Conflicts:
#	src/ch/zhaw/catan/SiedlerGame.java
2021-12-04 15:44:17 +01:00
schrom01 212acc0fc5 fix payout in Method placeInitialSettlement in SiedlerGame 2021-12-04 15:39:25 +01:00
Andrin Fassbind 260d7bf2f0 Merge remote-tracking branch 'origin/main' into main
# Conflicts:
#	src/ch/zhaw/catan/SiedlerGame.java
2021-12-04 14:06:19 +01:00
Andrin Fassbind 4a352dd40a Fixed Bug set strutcture in water and set bug addressource nullpointer exception 2021-12-04 14:02:06 +01:00
schrom01 f6865451a6 added Method handleDiceThrow7 in SiedlerGame 2021-12-04 13:20:09 +01:00
Leonardo Brandenberger 7129435fea SiedlerGame throwDice method implemented (for 7 not yet implemented) and method getResourcesforFaction implemented in SiedlerBoard 2021-12-03 16:39:11 +01:00
schrom01 8b2b9e2882 rename variables in SiedlerBoard 2021-12-03 11:54:12 +01:00
schrom01 c910c00c38 Merge remote-tracking branch 'origin/main' 2021-12-03 11:52:41 +01:00
schrom01 b38e24b612 changes in Siedler Board. Usage of Field Class added. 2021-12-03 11:52:32 +01:00
Speedy Gonzalez 4fe4daf730 Merge remote-tracking branch 'origin/main' 2021-12-03 11:28:50 +01:00
Speedy Gonzalez 2dfe55584e Added placeInitialRoad and placeInitialSettlement methods. 2021-12-03 11:28:42 +01:00
schrom01 7c913089b5 reated Class Field 2021-12-03 11:15:07 +01:00
schrom01 8fc77abdd0 added Method toString in City 2021-12-03 10:48:59 +01:00
schrom01 8cb13ce0a6 change in getCurrentPlayerWinpoints 2021-12-03 10:36:53 +01:00
schrom01 442cce6761 solved merge problems 2021-12-03 10:09:17 +01:00
Speedy Gonzalez c45471c337 Added method buildCity. 2021-12-03 09:57:42 +01:00
Andrin Fassbind b4783c8009 changed javadoc 2021-12-03 09:52:42 +01:00
Andrin Fassbind a2e7f60836 Merge remote-tracking branch 'origin/main' 2021-12-03 09:49:01 +01:00
Speedy Gonzalez 86d998ddd7 Merge remote-tracking branch 'origin/main' 2021-12-03 09:48:36 +01:00
Speedy Gonzalez 70b27af038 Added method buildCity. 2021-12-03 09:48:30 +01:00
Andrin Fassbind 40dcfaa304 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	src/ch/zhaw/catan/SiedlerGame.java
2021-12-03 09:47:04 +01:00
Andrin Fassbind a5f856313d created method in SiedlerGame:
-checkAdjacentCornerList
-checkAdjacentEdgesList
-validPositionForSettlement
-validPositionForRoad

updated method in SiedlerGame:
-buildRoad
-buildSettlement
2021-12-03 09:42:29 +01:00
schrom01 8811410e44 change in Main Method
changed Method getWinner and getCurrentPlayerWinpoints
2021-12-03 09:37:19 +01:00
schrom01 8a494b247b change in Main Method 2021-12-03 09:01:24 +01:00
schrom01 7d1a326dc0 change in Main Method 2021-12-03 08:54:27 +01:00
Leonardo Brandenberger c387420ca8 Siedler Class minor bug fixes 2021-12-03 08:52:26 +01:00
Leonardo Brandenberger 6e1c06f769 Merge remote-tracking branch 'origin/main' 2021-12-03 08:48:40 +01:00
Leonardo Brandenberger ff734bce23 Delected CommandWords.java
added quit Method in Parser
Fixed minor grammar mistakes in Siedler Game
2021-12-03 08:48:26 +01:00
schrom01 1e49424b9c fixed Error in Main Method 2021-12-03 08:35:37 +01:00
schrom01 d233e5f67f Merge remote-tracking branch 'origin/main' 2021-12-03 08:34:57 +01:00
schrom01 f60b65af83 fixed Error in Main Method 2021-12-03 08:34:48 +01:00
Leonardo Brandenberger 57649df6ba Fixed grammar error in method displayPlayerResource Stock. 2021-12-03 08:32:51 +01:00
Leonardo Brandenberger d749838600 fixed Error in trade method in Parser 2021-12-03 08:28:58 +01:00
schrom01 060310aebc change in Main Method 2021-12-03 08:12:21 +01:00
schrom01 2de44a1b99 change Method throwDice in Siedler 2021-12-03 07:56:38 +01:00
schrom01 1c90d18510 created Method throwDice in Siedler 2021-12-02 19:16:28 +01:00
schrom01 1362850570 changes in mainMethod 2021-12-02 19:13:16 +01:00
schrom01 0c63540616 changes in mainMethod
added Method displayPlayerResourceStock to Parser
2021-12-02 19:05:14 +01:00
schrom01 7c84f7f600 changes in mainMethod 2021-12-02 18:47:00 +01:00
schrom01 7b23ed5380 changes in mainMethod 2021-12-02 18:12:04 +01:00
Leonardo Brandenberger be26fc77cd Merge remote-tracking branch 'origin/main' 2021-12-02 18:07:09 +01:00
Leonardo Brandenberger 4748643163 added method trade to Parser 2021-12-02 18:07:02 +01:00
schrom01 fb38fc07b0 completed founding Phase 2021-12-02 17:57:28 +01:00
schrom01 b75afdc6a0 Merge remote-tracking branch 'origin/main' 2021-12-02 17:39:42 +01:00
schrom01 9294cbc3e3 fix bug in switchToPreviousPlayer 2021-12-02 17:39:33 +01:00
Leonardo Brandenberger f65449df56 eroorMessage method prinlText Output minorly changed 2021-12-02 17:23:48 +01:00
schrom01 9916d38073 first draft of foundigPhase Method 2021-12-02 17:13:43 +01:00
Leonardo Brandenberger c4a3346fad eroorMessage method prinln added 2021-12-02 17:01:53 +01:00
Leonardo Brandenberger 0e5a4c6254 Merge remote-tracking branch 'origin/main' 2021-12-02 16:49:52 +01:00
Leonardo Brandenberger a7a2085632 Implemented the functionality of all methods in Parser.java and created missing Enum Instances in Command.java. 2021-12-02 16:49:44 +01:00
MikeZyeman b1ba5636ce Removed TODO comments of finished methods and removed unnecessary variable 2021-12-02 16:25:38 +01:00
Leonardo Brandenberger 60d1c9a90b Merge remote-tracking branch 'origin/main' 2021-12-02 15:37:36 +01:00
Leonardo Brandenberger 014b838187 displayGameboard method added. 2021-12-02 15:37:27 +01:00
Speedy Gonzalez c8d560b8c9 Merge remote-tracking branch 'origin/main' 2021-12-02 15:28:20 +01:00
Speedy Gonzalez 68cc2402b4 Added player switches 2021-12-02 15:28:00 +01:00
Leonardo Brandenberger 684bf9e553 gameStart method now returns HashMap 2021-12-02 15:22:33 +01:00
Leonardo Brandenberger cba5a6b22c gameStart method now returns HashMap 2021-12-02 15:20:30 +01:00
Leonardo Brandenberger e48371a121 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	.idea/misc.xml
2021-12-02 15:16:00 +01:00
Leonardo Brandenberger 3c67d62e42 Several new methods added in Parser class 2021-12-02 15:15:39 +01:00
Andrin Fassbind d6c225a5aa created method storeResourceToBank in Bank.java
adapted method buildRoad and buildSettlement in SiedlerGame.java
2021-12-02 14:12:12 +01:00
Leonardo Brandenberger 9e347e8792 implementing part of Parser class 2021-12-01 23:24:16 +01:00
schrom01 3830cf6594 implemented Method getWinner and getWinPoints
added Class City for later use.
2021-11-30 20:20:48 +01:00
Leonardo Brandenberger 54b1d794f8 new Class Parser and corresponding enums created 2021-11-29 17:23:55 +01:00
Andrin Fassbind cb9e22ea92 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	src/ch/zhaw/catan/Structure.java
2021-11-29 16:47:41 +01:00
Andrin Fassbind 971cfe8868 SiedlerGame.java added few methodes 2021-11-29 16:47:02 +01:00
MikeZyeman cf94a835fc Fixed display error toString in structure 2021-11-29 16:39:29 +01:00
Leonardo Brandenberger 3ddd86e4e1 activePlayer Datafield added 2021-11-29 16:21:13 +01:00
MikeZyeman c2d2f11d2a Added superclass structure to roads and settlement 2021-11-29 16:02:38 +01:00
MikeZyeman d70a3daed0 Merge remote-tracking branch 'origin/main' into main
# Conflicts:
#	.idea/misc.xml
2021-11-29 15:57:01 +01:00
MikeZyeman ce31d0f439 Added superclass structure to roads and settlement 2021-11-29 15:56:52 +01:00
Andrin Fassbind ef51b7c980 overworked Settlement 2021-11-29 15:55:36 +01:00
Leonardo Brandenberger b30a019566 createFixGamefield method finished and removed depreciated code 2021-11-28 01:14:34 +01:00
leobr c4c30670b4 finished Method tradeWithBankFourToOne
Modified Class Bank to work with mentioned Method
2021-11-27 02:13:55 +01:00