You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
470 B

import javax.sound.midi.Soundbank;
import java.util.Arrays;
public class Player {
String name;
Figure[] figures;
public Player (String name) {
this.name = name;
figures = new Figure[4];
for(int i = 0; i < 4; i++) {
this.figures[i] = new Figure();
}
}
@Override
public String toString() {
return name;
}
public int rollDice() {
return (int) (Math.random() * 6 + 1);
}
}