changes in README.md

This commit is contained in:
schrom01 2021-12-10 11:00:05 +01:00
parent c9757f22fc
commit c88d85f575
2 changed files with 5 additions and 5 deletions

View File

@ -7,8 +7,8 @@ to be able to dominate your friends.
#Rules #Rules
1. The min. Player amount is 2 and the max. Player amount is 4. 1. The min. Player amount is 2 and the max. Player amount is 4.
2. Each Player can build a road and a settlement free of cost at the beginning of 2. Each Player can build two roads and two settlements free of cost at the beginning of
the game. the game. After the placement, each player gets resources from the field around the second settlement.
3. Every Player is being sorted into a faction. There cannot be two players in the 3. Every Player is being sorted into a faction. There cannot be two players in the
same faction. same faction.
4. A player cannot build two settlements or cities right next one another. 4. A player cannot build two settlements or cities right next one another.
@ -25,7 +25,7 @@ For a more detailed version of the rules please look here: https://www.catan.de/
#Usermanual #Usermanual
First the program will ask how many players will be playing the game. The minimum First the program will ask how many players will be playing the game. The minimum
amount of players is 2 and the maximum amount of players is 4. Each player will amount of players is 2 and the maximum amount of players is 4. Each player will
be appointed to a faction. Now every player can build a settlement and a road be appointed to a faction. In the next step, the program ask for the number of win points. The first player who reaches this number of win points, will win the game. Now every player can build a settlement and a road
after every player has built a settlement and road, they can build a second after every player has built a settlement and road, they can build a second
settlement and road in reversed order. When the players build their second settlement and road in reversed order. When the players build their second
settlement they then receive the resources surrounding that specific settlement. settlement they then receive the resources surrounding that specific settlement.

View File

@ -30,8 +30,8 @@ public class SiedlerGame {
* *
* @param winPoints the number of points required to win the game * @param winPoints the number of points required to win the game
* @param numberOfPlayers the number of players * @param numberOfPlayers the number of players
* @throws IllegalArgumentException if winPoints is lower than * @throws IllegalArgumentException if winPoints is lower than 3
* three or players is not between two and four * or players is not between two and four
*/ */
public SiedlerGame(int winPoints, int numberOfPlayers) { public SiedlerGame(int winPoints, int numberOfPlayers) {
if (winPoints < 3 || numberOfPlayers < Config.MIN_NUMBER_OF_PLAYERS || numberOfPlayers > 4) { if (winPoints < 3 || numberOfPlayers < Config.MIN_NUMBER_OF_PLAYERS || numberOfPlayers > 4) {