14 lines
330 B
Java
14 lines
330 B
Java
package com.humanbooster.exercices;
|
|
|
|
public class JeuDevinette {
|
|
|
|
private int nombreADeviner;
|
|
private int nombreDeTentatives;
|
|
private int[] tentatives;
|
|
private final int MAX_TENTATIVES = 10;
|
|
|
|
private int getRandomBetween(int min, int max) {
|
|
return (int)(Math.random() * (max - min + 1)) + min;
|
|
}
|
|
}
|