Repository: enowars/enochecker

Issue:
Deprecate self.round or self.current_round
I'm not sure which one to keep, but I would replace the other one with:

```
@property
def current_round(self):
    raise DeprecationWarning(...)
    return self.round
```

Discussion:

Patch:
diff --git a/src/enochecker/enochecker.py b/src/enochecker/enochecker.py
index fc8dbbc..976688e 100644
--- a/src/enochecker/enochecker.py
+++ b/src/enochecker/enochecker.py
@@ -287,7 +287,6 @@ class BaseChecker(metaclass=_CheckerMeta):
             )
             round_id = round_id or round
         self.round: Optional[int] = round_id
-        self.current_round: Optional[int] = round_id
         self.flag_round: Optional[int] = flag_round
         self.round_length: int = round_length
         self.flag: Optional[str] = flag
@@ -359,6 +358,18 @@ class BaseChecker(metaclass=_CheckerMeta):
         self.error: Callable[..., None] = self.logger.error
         self.critical: Callable[..., None] = self.logger.critical
 
+    @property
+    def current_round(self) -> Optional[int]:
+        """
+        Deprecated! Only for backwards compatibility! Use self.round instead.
+
+        :return: current round
+        """
+        warnings.warn(
+            "current_round is deprecated, use round instead", DeprecationWarning
+        )
+        return self.round
+
     @property
     def noise(self) -> Optional[str]:
         """


Test patch:
diff --git a/tests/test_enochecker.py b/tests/test_enochecker.py
index 948b888..91009c1 100644
--- a/tests/test_enochecker.py
+++ b/tests/test_enochecker.py
@@ -267,6 +267,13 @@ def test_checker():
 
     assert CheckerExampleImpl(method="havoc").run().result == Result.OFFLINE
 
+    c = CheckerExampleImpl(method="putflag", round_id=1337)
+    with pytest.deprecated_call():
+        assert c.current_round == 1337
+    c.round = 15
+    with pytest.deprecated_call():
+        assert c.current_round == c.round
+
 
 @temp_storage_dir
 def test_useragents():