that's one place I'm having trouble with, I'm not sure where I need to use them
Type: Posts; User: cutekill0
that's one place I'm having trouble with, I'm not sure where I need to use them
the ranges: birthLow, birthHigh, liveLow, and liveHigh 4 in total my mistake
For a birth to occur, the cell must be empty and the neighborhood density be in the birth range. The birth range can be...
ok but where should I initialize the other 5 variables?
that's one of my question, do I have to do the console.nextInt() in the same readInput method, or do I need to create a new one?
so now my program needs to read the parameters from standard input. The new inputs for this part are the values for the ranges, birthLow, birthHigh, liveLow, and liveHigh. I need to read the matrix...
Great idea, I'll try it out, thanks much :)
Its not really a problem, I was just trying to create an if loop trying to stop the program after just 2 inputs, but when I run the program and I write just 2 numbers, it just continues running...
I tried it and the program just waits for a third input, after a third input its when the program stops, I guess making it so it stops at 2 inputs would not matter
Hello again guys, I was cleaning up my code and doing tests and I wanted to ask if you recommend any way to stop the program if only 2 inputs are typed, like throwing an exception if the user only...
ok so I changed the printMatrix method to look like this
private static void printMatrix(boolean[][] matrix)
{
for(int r = 0; r < matrix.length; r++)
{
for(int c = 0; c <...
Wow thank you very much, also on my printMatrix method the output should be a '-' for false and a '#' for true, any ideas how I can do this?
Again thank you a lot
Hello guys, I'm new here, I was trying my homework for computer science which consists of making a basic Game of Life program with a 2D boolean array and a Random number with a seed, this is what I...