Modified Result as an Enum class

This commit is contained in:
Matthis FAUVET 2024-10-09 14:21:12 +02:00
parent ee380deb0e
commit a048b85ce7
2 changed files with 6 additions and 18 deletions

View File

@ -2,5 +2,4 @@ package fr.iut_fbleau.raw_api_body.entity;
public abstract class Ply {
}
}

View File

@ -3,19 +3,8 @@ package fr.iut_fbleau.raw_api_body.entity;
/**
* The type Result.
*/
public class Result {
/**
* The constant GAGNE.
*/
public final static int GAGNE = 1;
/**
* The constant EGALITE.
*/
public final static int EGALITE = 0;
/**
* The constant PERDU.
*/
public final static int PERDU = -1;
}
public enum Result {
GAGNE,
EGALITE,
PERDU;
}