newest version of tests

This commit is contained in:
Johannes Schmelz
2024-11-25 04:34:06 +00:00
parent b85bbdd0ad
commit 1be29b8b7a
13 changed files with 1168 additions and 566 deletions

View File

@@ -7,13 +7,10 @@
package pp.monopoly;
import pp.util.config.Config;
import java.util.Map;
import java.util.TreeMap;
import static java.lang.Math.max;
import pp.util.config.Config;
/**
* Provides access to the configuration settings for the Monopoly game.
* <p>
@@ -31,7 +28,7 @@ public class MonopolyConfig extends Config {
* The default port number for the Monopoly server.
*/
@Property("port")
private int port = 1234;
private int port = 42069;
/**
* The width of the game map in terms of grid units.

View File

@@ -307,7 +307,7 @@ public class Player implements FieldVisitor<Void>{
return count;
}
/**
/**
* Inner class for dice functionality in the game.
* Rolls random dice values.
*/
@@ -438,7 +438,7 @@ public class Player implements FieldVisitor<Void>{
getOutOfJailCard--;
state = new ActiveState();
}
}
private class BankruptState implements PlayerState {
@@ -460,7 +460,7 @@ public class Player implements FieldVisitor<Void>{
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'useJailCard'");
}
}
private class WaitForTurnState implements PlayerState {
@@ -482,6 +482,6 @@ public class Player implements FieldVisitor<Void>{
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'useJailCard'");
}
}
}

View File

@@ -13,7 +13,7 @@ public class Card {
visitor.visit(this);
}
String getDescription() {
public String getDescription() {
return description;
}