Untitled
unknown
java
4 years ago
638 B
8
Indexable
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author kevinpg
*/
public class Jugador extends Thread {
private int id;
private Arbitro arbitro;
public Jugador(int id, Arbitro arbitro) {
this.id = id;
this.arbitro = arbitro;
}
@Override
public void run() {
int numero;
while (!arbitro.isAcabado()) {
numero = (int) (Math.random() * 10) + 1;
arbitro.comprobarNumeroAleatorio(numero, id);
}
}
}Editor is loading...