Add timestamp at game creation

This commit is contained in:
2026-01-05 16:17:33 +01:00
parent d6984ccf93
commit 6ac4e1610f
3 changed files with 6 additions and 3 deletions

View File

@@ -4,14 +4,16 @@ class Game:
_black_name : str
_time_control : int
_increments : int
_timestamp : int
_moves : list[str]
_base_fen : str
def __init__(self, white_name : str, black_name : str, time_control : int, increment : int):
def __init__(self, white_name : str, black_name : str, time_control : int, increment : int, timestamp : int):
self._white_name = white_name
self._black_name = black_name
self._time_control = time_control
self._increments = increment
self._timestamp = timestamp
self._moves = []
def add_move(self, fen : str):