L3-Bataille-Navale/source/core/enums/bomb.py
2023-02-23 16:59:55 +01:00

14 lines
369 B
Python

from enum import Enum
class BombState(Enum):
"""
This class represent the state of a bomb after being place on the board.
"""
NOTHING = 0 # the bomb missed
TOUCHED = 1 # the bomb touched a boat
SUNKEN = 2 # the bomb touched the last part of a boat
WON = 3 # the bomb sunk the last boat
ERROR = -1 # the bomb could not be placed