Skip to content
Snippets Groups Projects
Commit 38de923e authored by tjsus's avatar tjsus
Browse files

Assignment 3 code modified to add comment PDU to update player 1 and player 2 grids.

parent fc8db8de
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ public class ExampleSimulationProgram { ...@@ -17,7 +17,7 @@ public class ExampleSimulationProgram {
// Constants for the Battleship game // Constants for the Battleship game
private static final int GRID_SIZE = 10; // 10x10 grid for Battleship 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 // Grids for each player
private char[][] player1Grid = new char[GRID_SIZE][GRID_SIZE]; private char[][] player1Grid = new char[GRID_SIZE][GRID_SIZE];
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<configuration> <configuration>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3"> <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>Networked Graphics MV3500 examples</name> <name>Networked Graphics MV3500 examples</name>
<explicit-platform explicit-source-supported="true"/>
<source-roots> <source-roots>
<root id="src.dir"/> <root id="src.dir"/>
<root id="src.src.dir"/> <root id="src.src.dir"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment