diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 6198ab1..e48823a 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1332,6 +1332,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is compatible with one player or more. + * + * @return Prints out the games that can be played with one or more players. + */ public String checkOnePlayer() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games"; @@ -1362,6 +1367,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is compatible with two players or more. + * + * @return Prints out the games that can be played with two or more players. + */ public String checkTwoPlayer() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games"; @@ -1391,6 +1401,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is compatible with four players or more. + * + * @return Prints out the games that can be played with four or more players. + */ public String checkFourPlayer() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games"; @@ -1420,6 +1435,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is compatible with eight players + * + * @return Prints out the games that can be played with eight players. + */ public String checkEightPlayer() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games"; @@ -1449,6 +1469,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is compatible with one player only. + * + * @return Prints out the games that can only be played alone. + */ public String checkOnePlayerOnly() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games";