OOP_G1_Project/src/Simulator.java

12 lines
285 B
Java

public class Simulator {
private int width;
private int height;
public Simulator(int numRows, int numColumns) {
// Calculate the width and height based on the number of rows and columns
this.width = numColumns;
this.height = numRows;
}
}