Search:

Type: Posts; User: cutekill0

Search: Search took 0.09 seconds.

  1. Replies
    24
    Views
    3,154

    Re: Can't run Game of Life programm

    that's one place I'm having trouble with, I'm not sure where I need to use them
  2. Replies
    24
    Views
    3,154

    Re: Can't run Game of Life programm

    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...
  3. Replies
    24
    Views
    3,154

    Re: Can't run Game of Life programm

    ok but where should I initialize the other 5 variables?
  4. Replies
    24
    Views
    3,154

    Re: Can't run Game of Life programm

    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?
  5. Replies
    24
    Views
    3,154

    Re: Can't run Game of Life programm

    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...
  6. Replies
    24
    Views
    3,154

    Re: Can't run Game of Life programm

    Great idea, I'll try it out, thanks much :)
  7. Replies
    24
    Views
    3,154

    Re: Can't run Game of Life programm

    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...
  8. Replies
    24
    Views
    3,154

    Re: Can't run Game of Life programm

    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
  9. Replies
    24
    Views
    3,154

    Re: Can't run Game of Life programm

    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...
  10. Replies
    24
    Views
    3,154

    Re: Can't run Game of Life programm

    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 <...
  11. Replies
    24
    Views
    3,154

    Re: Can't run Game of Life programm

    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
  12. Replies
    24
    Views
    3,154

    Can't run Game of Life programm

    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...
Results 1 to 12 of 12