mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
refactor: clean up imports
This commit is contained in:
parent
7896974496
commit
bea4266889
1 changed files with 4 additions and 5 deletions
|
@ -26,12 +26,11 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
import pysol_cards
|
import pysol_cards
|
||||||
import pysol_cards.random
|
|
||||||
assert getattr(pysol_cards, 'VERSION', (0, 0, 0)) >= (0, 8, 11), (
|
assert getattr(pysol_cards, 'VERSION', (0, 0, 0)) >= (0, 8, 11), (
|
||||||
"Newer version of https://pypi.org/project/pysol-cards is required.")
|
"Newer version of https://pypi.org/project/pysol-cards is required.")
|
||||||
|
import pysol_cards.random # noqa: I100
|
||||||
import pysol_cards.random_base # noqa: I100
|
import pysol_cards.random_base # noqa: I100
|
||||||
from pysol_cards.random import \
|
from pysol_cards.random import match_ms_deal_prefix # noqa: I100
|
||||||
MTRandom, match_ms_deal_prefix # noqa: I100
|
|
||||||
|
|
||||||
|
|
||||||
# ************************************************************************
|
# ************************************************************************
|
||||||
|
@ -127,7 +126,7 @@ class LCRandom31(pysol_cards.random.LCRandom31, MFXRandom):
|
||||||
# select
|
# select
|
||||||
# PysolRandom = LCRandom64
|
# PysolRandom = LCRandom64
|
||||||
# PysolRandom = WHRandom
|
# PysolRandom = WHRandom
|
||||||
PysolRandom = MTRandom
|
PysolRandom = pysol_cards.random.MTRandom
|
||||||
|
|
||||||
|
|
||||||
# ************************************************************************
|
# ************************************************************************
|
||||||
|
@ -159,7 +158,7 @@ def constructRandom(s):
|
||||||
seed = int(s)
|
seed = int(s)
|
||||||
if 0 <= seed < 32000:
|
if 0 <= seed < 32000:
|
||||||
return LCRandom31(seed)
|
return LCRandom31(seed)
|
||||||
return MTRandom(seed)
|
return pysol_cards.random.MTRandom(seed)
|
||||||
|
|
||||||
|
|
||||||
def random__str2long(s):
|
def random__str2long(s):
|
||||||
|
|
Loading…
Add table
Reference in a new issue