mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
Fixed ai naming
This commit is contained in:
5
.idea/workspace.xml
generated
5
.idea/workspace.xml
generated
@@ -5,7 +5,8 @@
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="997b32da-b4d4-48ac-ab51-52d65f364f81" name="Changes" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/src/main/java/org/toop/eventbus/Events.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/org/toop/eventbus/Events.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/java/org/toop/ConsoleGui.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/org/toop/ConsoleGui.java" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
@@ -82,7 +83,7 @@
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1758117514311</updated>
|
||||
<workItem from="1758117515668" duration="4457000" />
|
||||
<workItem from="1758117515668" duration="5345000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
|
||||
@@ -62,7 +62,7 @@ public class ConsoleGui {
|
||||
String name = scanner.nextLine();
|
||||
|
||||
player1 = name;
|
||||
ai2 = player2 = "AI #" + random.nextInt();
|
||||
ai2 = player2 = "AI#" + random.nextInt();
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -72,7 +72,7 @@ public class ConsoleGui {
|
||||
System.out.print("Enter your name: ");
|
||||
String name = scanner.nextLine();
|
||||
|
||||
ai1 = player1 = "AI #" + random.nextInt();
|
||||
ai1 = player1 = "AI#" + random.nextInt();
|
||||
player2 = name;
|
||||
|
||||
break;
|
||||
@@ -80,8 +80,8 @@ public class ConsoleGui {
|
||||
|
||||
// ai vs ai
|
||||
case 4: {
|
||||
ai1 = player1 = "AI #" + random.nextInt();
|
||||
ai2 = player2 = "AI 2" + random.nextInt();
|
||||
ai1 = player1 = "AI#" + random.nextInt();
|
||||
ai2 = player2 = "AI2" + random.nextInt();
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -184,7 +184,7 @@ public class ConsoleGui {
|
||||
|
||||
GlobalEventBus.post(new Events.ServerEvents.SendCommand(
|
||||
connectionId,
|
||||
"gameid " + ticTacToeGameId, current.name(), "MOVE", String.valueOf(move)
|
||||
"gameid " + ticTacToeGameId, "player " + current.name(), "MOVE", String.valueOf(move)
|
||||
));
|
||||
|
||||
if (!keepRunning) {
|
||||
|
||||
Reference in New Issue
Block a user