1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

moved functionality to pysol-cards.py

This commit is contained in:
Shlomi Fish 2019-08-04 18:47:19 +03:00
parent 0082962a93
commit fd5bf10ddd

View file

@ -37,7 +37,7 @@ except ImportError:
"https://pypi.python.org/pypi/random2 using pip or similar.")
assert ((pysol_cards.VERSION if 'VERSION' in pysol_cards.__dict__
else (0, 0, 0)) >= (0, 8, 4))
else (0, 0, 0)) >= (0, 8, 5))
from pysol_cards.random_base import RandomBase # noqa: I100
from pysol_cards.random import match_ms_deal_prefix # noqa: I100
@ -53,16 +53,6 @@ class BasicRandom(RandomBase):
def reset(self):
raise SubclassResponsibility
def copy(self):
random = self.__class__(0)
random.__dict__.update(self.__dict__)
return random
def increaseSeed(self, seed):
if seed < self.MAX_SEED:
return seed + 1
return 0
def _getRandomSeed(self):
t = int(time.time() * 256.0)
t = (t ^ (t >> 24)) % (self.MAX_SEED + 1)