From 88567d42fead1c9cf9afa51dce94d732321790cc Mon Sep 17 00:00:00 2001 From: tjsus <tjsus@172.20.148.229> Date: Wed, 4 Sep 2024 11:05:30 -0700 Subject: [PATCH] Assignment 3 code modified to add comment PDU to update player 1 and player 2 grids. --- .../homework3/Smith/ExampleSimulationProgram.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework3/Smith/ExampleSimulationProgram.java b/assignments/src/MV3500Cohort2024JulySeptember/homework3/Smith/ExampleSimulationProgram.java index 26419da18e..b37dde9fee 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework3/Smith/ExampleSimulationProgram.java +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework3/Smith/ExampleSimulationProgram.java @@ -17,7 +17,7 @@ public class ExampleSimulationProgram { // Constants for the Battleship game private static final int GRID_SIZE = 10; // 10x10 grid for Battleship - private static final int MAX_TURNS = 100; // Limit turns to avoid infinite games + private static final int MAX_TURNS = 200; // Limit turns to avoid infinite games // Grids for each player private char[][] player1Grid = new char[GRID_SIZE][GRID_SIZE]; @@ -28,7 +28,7 @@ public class ExampleSimulationProgram { // Ship positions (simple example positions for each player's ships) private final int[][] player1Ships = {{0, 0}, {0, 1}, {0, 2}}; // Positions for player 1's ships - private final int[][] player2Ships = {{5, 5}, {5, 6}, {5, 7}}; // Positions for player 2's ships + private final int[][] player2Ships = {{2, 5}, {2, 6}, {2, 7}}; // Positions for player 2's ships // DIS utilities private String descriptor = this.getClass().getSimpleName(); -- GitLab