mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
refactor: remove unused code
This commit is contained in:
parent
91ef2ca74e
commit
7896974496
1 changed files with 2 additions and 21 deletions
|
@ -29,30 +29,11 @@ import pysol_cards
|
|||
import pysol_cards.random
|
||||
assert getattr(pysol_cards, 'VERSION', (0, 0, 0)) >= (0, 8, 11), (
|
||||
"Newer version of https://pypi.org/project/pysol-cards is required.")
|
||||
from pysol_cards.random_base import RandomBase # noqa: I100
|
||||
import pysol_cards.random_base # noqa: I100
|
||||
from pysol_cards.random import \
|
||||
MTRandom, match_ms_deal_prefix # noqa: I100
|
||||
|
||||
|
||||
# ************************************************************************
|
||||
# * Wichman-Hill random number generator
|
||||
# * uses the standard python module `random'
|
||||
# ************************************************************************
|
||||
|
||||
# class WHRandom(RandomBase, random.WichmannHill):
|
||||
#
|
||||
# def __init__(self, seed=None):
|
||||
# if seed is None:
|
||||
# seed = self._getRandomSeed()
|
||||
# RandomBase.__init__(self)
|
||||
# random.WichmannHill.__init__(self, seed)
|
||||
# self.initial_seed = seed
|
||||
# self.initial_state = self.getstate()
|
||||
# self.origin = self.ORIGIN_UNKNOWN
|
||||
#
|
||||
# def reset(self):
|
||||
# self.setstate(self.initial_state)
|
||||
|
||||
# ************************************************************************
|
||||
# * Abstract class for LC Random number generators.
|
||||
# ************************************************************************
|
||||
|
@ -102,7 +83,7 @@ MS_LONG_BIT = (1 << 1000)
|
|||
CUSTOM_BIT = (1 << 999)
|
||||
|
||||
|
||||
class CustomRandom(RandomBase):
|
||||
class CustomRandom(pysol_cards.random_base.RandomBase):
|
||||
def __init__(self, seed=None):
|
||||
self.initial_seed = self.seed = MS_LONG_BIT | CUSTOM_BIT
|
||||
self.origin = self.ORIGIN_UNKNOWN
|
||||
|
|
Loading…
Add table
Reference in a new issue