I have assumed the value of array "arrayPOINTS" in omGang-method. Here:
next_kast = terning.roll();
sum = sum + next_kast;
System.out.println(sum);
...
Type: Posts; User: OPTYMISTA
I have assumed the value of array "arrayPOINTS" in omGang-method. Here:
next_kast = terning.roll();
sum = sum + next_kast;
System.out.println(sum);
...
Player object:
package practice5;
import java.util.Scanner;
public class Player {
String player;
Now I've figured out how I refer each player object to different array-position. Such as 1779. Now I want to do the same thing with points. I've written an extra statement in "omGang()" that says:
...
I have to write a simple "Black Jack" game with dices. Game can have random number of players.
At the beginning of the game each player roll 3 dices. Program have to add values of the dices and show...