Hey guys i’m new in this forum, and i would like some help with a game i have to developed in console.
I’m creating a game like bejeweld when 3 pieces are equal they disapear. When the game starts the line 1 and 2 are already fill with random letters.
So i have this code:
http://pastebin.java-gaming.org/54a6b6d84
and in other class i got a random number generating and pass to ‘a’ ‘v’ or ‘u’ like this:
int i = random.nextInt(3);
public String converterLetra() {
if (i == 1) {
return "u";
} else if (i == 2) {
return "a";
} else {
return "u";
}//converterLetra1,2,3 and 4 is the same methods with another var.
}
My Question is how can i pass the letters that appear on top of the board to inside of the board and if you can give me some recommendations on how i can make the code so that the 3 letters are equals they dessapear i apreciate it
Thanks