Search:

Type: Posts; User: kitube

Search: Search took 0.20 seconds.

  1. Replies
    5
    Views
    989

    Re: multidimensional array 'advancing'?

    works now,
    my snake moves, the old gets deleted, it can eat apples, they get randomly generated ect...
  2. Replies
    5
    Views
    989

    Re: multidimensional array 'advancing'?

    i did this now:

    int y = 0;
    int x = 0;

    if (move == '8'){
    y++;
    }
    if (move == '5'){
    y--;
  3. Replies
    5
    Views
    989

    Re: multidimensional array 'advancing'?

    you mean like this:


    switch (move){
    case "a": x--;
    break;
    case "w": y++
    break;
    case "d": x++
    break;
  4. Replies
    5
    Views
    989

    multidimensional array 'advancing'?

    hi,

    when you have this for example:

    String[][] table = new String[4][4];
    table[0][0] = ". ";
    table[0][1] = ". ";
    table[0][2] = ". ";
    table[0][3] = ". ";
    table[1][0] = ". ";
  5. command prompt, acquiring input without enter?

    hi,

    iam not sure if the title came across correctly.
    i have a question, when you write a program which requires one letter input, so every input is always just one letter, is there a way to make...
Results 1 to 5 of 6