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-07-18 21:35:45 +03:00
parent 6d4a1191cc
commit dba230b40a

View file

@ -55,9 +55,6 @@ class BasicRandom(RandomBase):
ORIGIN_SELECTED = 3 # manually entered
ORIGIN_NEXT_GAME = 4 # "Next game number"
def __init__(self):
self.seed_as_string = None
def getSeedStr(self):
return str(self.initial_seed)
@ -85,15 +82,6 @@ class BasicRandom(RandomBase):
t = (t ^ (t >> 24)) % (self.MAX_SEED + 1)
return t
def setSeedAsStr(self, new_s):
self.seed_as_string = new_s
def getSeedAsStr(self):
if self.seed_as_string:
return self.seed_as_string
else:
return str(self)
# ************************************************************************
# * Mersenne Twister random number generator