mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Cleanup of Mahjongg. Fixed the old layout import scripts.
This commit is contained in:
parent
713f498068
commit
96700c59e1
6 changed files with 106 additions and 31 deletions
|
@ -598,10 +598,10 @@ class GI:
|
||||||
('fc-2.20', tuple(range(855, 897))),
|
('fc-2.20', tuple(range(855, 897))),
|
||||||
('fc-2.21', tuple(range(897, 900)) + tuple(range(11014, 11017)) +
|
('fc-2.21', tuple(range(897, 900)) + tuple(range(11014, 11017)) +
|
||||||
tuple(range(13160, 13163)) + (16682,)),
|
tuple(range(13160, 13163)) + (16682,)),
|
||||||
('dev', tuple(range(906, 959)) + tuple(range(11017, 11020)) +
|
('dev', tuple(range(906, 959)) + tuple(range(5415, 5419)) +
|
||||||
tuple(range(5600, 5624)) + tuple(range(18000, 18005)) +
|
tuple(range(5600, 5624)) + tuple(range(11017, 11020)) +
|
||||||
tuple(range(19000, 19012)) + tuple(range(22303, 22311)) +
|
tuple(range(18000, 18005)) + tuple(range(19000, 19012)) +
|
||||||
tuple(range(22353, 22361))),
|
tuple(range(22303, 22311)) + tuple(range(22353, 22361))),
|
||||||
)
|
)
|
||||||
|
|
||||||
# deprecated - the correct way is to or a GI.GT_XXX flag
|
# deprecated - the correct way is to or a GI.GT_XXX flag
|
||||||
|
|
|
@ -160,7 +160,7 @@ r(5007, "Bat", layout="0ecaeAaaabalbanb" +
|
||||||
"hobhodhofhaghCgh" +
|
"hobhodhofhaghCgh" +
|
||||||
"aihCi")
|
"aihCi")
|
||||||
#
|
#
|
||||||
r(5008, "Beatle", layout="0aeaagaauaawaaic" +
|
r(5008, "Beetle", layout="0aeaagaauaawaaic" +
|
||||||
"akcamcaocaqcasca" +
|
"akcamcaocaqcasca" +
|
||||||
"eeageaieakeameao" +
|
"eeageaieakeameao" +
|
||||||
"eaqeaseaueadgafg" +
|
"eaqeaseaueadgafg" +
|
||||||
|
@ -1027,7 +1027,7 @@ r(5060, "N for Namida", layout="0caaccaceacgacqa" +
|
||||||
"comcqmcsmcum")
|
"comcqmcsmcum")
|
||||||
|
|
||||||
#
|
#
|
||||||
r(5063, "New Layout 1", layout="0aeaagaaiaakabpa" +
|
r(5063, "Temple 1", layout="0aeaagaaiaakabpa" +
|
||||||
"auaawaayaaAaacca" +
|
"auaawaayaaAaacca" +
|
||||||
"Ccahdajdavdaxdaa" +
|
"Ccahdajdavdaxdaa" +
|
||||||
"eacealeateaCeaEe" +
|
"eacealeateaCeaEe" +
|
||||||
|
@ -1406,7 +1406,7 @@ r(5083, "Sun and Moon", layout="0dgaciabkaamabya" +
|
||||||
"enbBndgociobkoam" +
|
"enbBndgociobkoam" +
|
||||||
"obuovaevagvaivak" +
|
"obuovaevagvaivak" +
|
||||||
"Ckh")
|
"Ckh")
|
||||||
r(5084, "Temple 1", layout="0baaacaaeaalaana" +
|
r(5084, "Temple 2", layout="0baaacaaeaalaana" +
|
||||||
"apaaraataaAaaCab" +
|
"apaaraataaAaaCab" +
|
||||||
"Eaaacaccalcbncbp" +
|
"Eaaacaccalcbncbp" +
|
||||||
"cbrcatcaCcaEcajd" +
|
"cbrcatcaCcaEcajd" +
|
||||||
|
|
|
@ -1245,7 +1245,7 @@ r(5267, "Sukis", layout="0aaaaacaaeaagaai" +
|
||||||
"GgaGiaGkaGmaGoaG" +
|
"GgaGiaGkaGmaGoaG" +
|
||||||
"q")
|
"q")
|
||||||
#
|
#
|
||||||
r(5268, "Temple 2", layout="0aaaaaeaaiabchbd" +
|
r(5268, "Temple 3", layout="0aaaaaeaaiabchbd" +
|
||||||
"abghbhacahcbocca" +
|
"abghbhacahcbocca" +
|
||||||
"cehcfocgaciadchd" +
|
"cehcfocgaciadchd" +
|
||||||
"dodeadghdhaeaheb" +
|
"dodeadghdhaeaheb" +
|
||||||
|
@ -1273,7 +1273,7 @@ r(5268, "Temple 2", layout="0aaaaaeaaiabchbd" +
|
||||||
"ougauiavchvdavgh" +
|
"ougauiavchvdavgh" +
|
||||||
"vhawaaweawi")
|
"vhawaaweawi")
|
||||||
#
|
#
|
||||||
r(5269, "Temple 3", layout="0aacaagaakabahbb" +
|
r(5269, "Temple 4", layout="0aacaagaakabahbb" +
|
||||||
"abehbfabihbjacco" +
|
"abehbfabihbjacco" +
|
||||||
"cchcdacgocghchac" +
|
"cchcdacgocghchac" +
|
||||||
"kadahdbadeodehdf" +
|
"kadahdbadeodehdf" +
|
||||||
|
|
|
@ -284,7 +284,80 @@ r(5414, "Bridge 2", layout="0daadacdaedagdai" +
|
||||||
"cyicykcymdAadAcd" +
|
"cyicykcymdAadAcd" +
|
||||||
"AedAgdAidAkdAmdA" +
|
"AedAgdAidAkdAmdA" +
|
||||||
"o")
|
"o")
|
||||||
|
r(5415, "Spider", layout="0aaebcfaclacqbea" +
|
||||||
|
"begbelbeqbgabghb" +
|
||||||
|
"glbgqbibbidbihbi" +
|
||||||
|
"lbipbkdbkhbklbko" +
|
||||||
|
"alfaljhmgamhhmih" +
|
||||||
|
"mkamlbmnampbnban" +
|
||||||
|
"fanjonjonlaodhog" +
|
||||||
|
"aohoohhoihokaolh" +
|
||||||
|
"omaonoonhooaopao" +
|
||||||
|
"rhpeapfapjopjvpk" +
|
||||||
|
"oplhpqaptaqdhqga" +
|
||||||
|
"qhoqhhqihqkaqlhq" +
|
||||||
|
"maqnoqnhqoaqpaqr" +
|
||||||
|
"brbarfarjorjorlh" +
|
||||||
|
"sgashhsihskaslbs" +
|
||||||
|
"naspatfatjbudbuh" +
|
||||||
|
"bulbuobwbbwdbwhb" +
|
||||||
|
"wlbwpbyabyhbylby" +
|
||||||
|
"qbAabAgbAlbAqbCf" +
|
||||||
|
"aClaCqaEe")
|
||||||
|
r(5416, "Waves", layout="0eafeahabmacadcf" +
|
||||||
|
"dchadmaeacefcehh" +
|
||||||
|
"emhfaafmagacgfcg" +
|
||||||
|
"higmihaahmaiabif" +
|
||||||
|
"bihiimijaajmakab" +
|
||||||
|
"kfbkhikmilaalmam" +
|
||||||
|
"aamfamhhmmhnaanm" +
|
||||||
|
"aoaaofaohapmaqab" +
|
||||||
|
"qfbqharmasabsfbs" +
|
||||||
|
"hatmauacufcuhhum" +
|
||||||
|
"hvaavmawacwfcwhi" +
|
||||||
|
"wmixaaxmayadyfdy" +
|
||||||
|
"hiymizaazmaAaeAf" +
|
||||||
|
"eAhiAmiBaaBmaCah" +
|
||||||
|
"CmhDaaDmaEaaFmaG" +
|
||||||
|
"a")
|
||||||
|
r(5417, "Hot Coffee", layout="0aarbcradfadhadj" +
|
||||||
|
"adlaeaaencerbffb" +
|
||||||
|
"fhbfjbflafpagbbg" +
|
||||||
|
"ndgrchfchhchjchl" +
|
||||||
|
"bhpcindircjfcjhc" +
|
||||||
|
"jjcjlcjpCjrckndk" +
|
||||||
|
"ralaclfclhcljcll" +
|
||||||
|
"clpClrcmndmranbc" +
|
||||||
|
"nfcnhcnjcnlbnpbo" +
|
||||||
|
"ndorbpfbphbpjbpl" +
|
||||||
|
"appaqncqrarfarha" +
|
||||||
|
"rjarlbsratgatlau" +
|
||||||
|
"ravgavlaxhaxjaxl")
|
||||||
|
r(5418, "Zigzag", layout="0aabaajaaracahcb" +
|
||||||
|
"accacihcjackacqh" +
|
||||||
|
"cracsaebiecaedae" +
|
||||||
|
"hieiaejvejiekael" +
|
||||||
|
"aepieqaeragcigda" +
|
||||||
|
"gehgfaggighagihg" +
|
||||||
|
"jagkiglagmhgnago" +
|
||||||
|
"igpagqaidiieaifv" +
|
||||||
|
"ifiigaihailiimai" +
|
||||||
|
"nviniioaipakehkf" +
|
||||||
|
"akgakmhknakoamfa" +
|
||||||
|
"mnaqbaqjaqrasahs" +
|
||||||
|
"bascasihsjaskasq" +
|
||||||
|
"hsrassaubiucauda" +
|
||||||
|
"uhiuiaujvujiukau" +
|
||||||
|
"laupiuqaurawciwd" +
|
||||||
|
"awehwfawgiwhawih" +
|
||||||
|
"wjawkiwlawmhwnaw" +
|
||||||
|
"oiwpawqaydiyeayf" +
|
||||||
|
"vyfiygayhayliyma" +
|
||||||
|
"ynvyniyoaypaAehA" +
|
||||||
|
"faAgaAmhAnaAoaCa" +
|
||||||
|
"aCfaCnaCs")
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------
|
||||||
|
|
||||||
r(5801, "Faro", name="Double Mahjongg Faro", ncards=288, layout="0aaaha" +
|
r(5801, "Faro", name="Double Mahjongg Faro", ncards=288, layout="0aaaha" +
|
||||||
"baachadaae" +
|
"baachadaae" +
|
||||||
|
|
|
@ -325,27 +325,29 @@ r(5613, "Lion 2", layout="0aapabiablhbphcf" +
|
||||||
"hDeaDgaDohEgaEia" +
|
"hDeaDgaDohEgaEia" +
|
||||||
"EmhEohFiaFkhFmhG" +
|
"EmhEohFiaFkhFmhG" +
|
||||||
"k")
|
"k")
|
||||||
r(5614, "New Layout 2", layout="0CabCadCafacapca" +
|
# Contains floating tiles, so a usable tile may not be visible.
|
||||||
"hccvccacepcehcgv" +
|
# Unplayable without serious work.
|
||||||
"cgheaveaaecpeche" +
|
# r(5614, "New Layout 2", layout="0CabCadCafacapca" +
|
||||||
"eveeaegpegCfaCfc" +
|
# "hccvccacepcehcgv" +
|
||||||
"CfeCfgagapgahgcv" +
|
# "cgheaveaaecpeche" +
|
||||||
"gcagepgehggvggCh" +
|
# "eveeaegpegCfaCfc" +
|
||||||
"aChcCheChghiavia" +
|
# "CfeCfgagapgahgcv" +
|
||||||
"aicpichievieaigp" +
|
# "gcagepgehggvggCh" +
|
||||||
"igakaqkahkcwkcak" +
|
# "aChcCheChghiavia" +
|
||||||
"eqkehkgwkghmawma" +
|
# "aicpichievieaigp" +
|
||||||
"amcqmchmewmeamgq" +
|
# "igakaqkahkcwkcak" +
|
||||||
"mgaoaqoahocwocao" +
|
# "eqkehkgwkghmawma" +
|
||||||
"eqoehogwoghqavqa" +
|
# "amcqmchmewmeamgq" +
|
||||||
"aqcpqchqevqeaqgp" +
|
# "mgaoaqoahocwocao" +
|
||||||
"qgCraCrcCreCrgas" +
|
# "eqoehogwoghqavqa" +
|
||||||
"apsahscvscasepse" +
|
# "aqcpqchqevqeaqgp" +
|
||||||
"hsgvsgCtaCtcCteC" +
|
# "qgCraCrcCreCrgas" +
|
||||||
"tghuavuaaucpuchu" +
|
# "apsahscvscasepse" +
|
||||||
"evueaugpugawapwa" +
|
# "hsgvsgCtaCtcCteC" +
|
||||||
"hwcvwcawepwehwgv" +
|
# "tghuavuaaucpuchu" +
|
||||||
"wgCybCydCyf")
|
# "evueaugpugawapwa" +
|
||||||
|
# "hwcvwcawepwehwgv" +
|
||||||
|
# "wgCybCydCyf")
|
||||||
r(5615, "Big X", layout="0aacaamhbchbmacb" +
|
r(5615, "Big X", layout="0aacaamhbchbmacb" +
|
||||||
"occacdaclocmacnh" +
|
"occacdaclocmacnh" +
|
||||||
"dbhddhdlhdnaeaae" +
|
"dbhddhdlhdnaeaae" +
|
||||||
|
|
|
@ -18,7 +18,7 @@ def decode_layout(layout):
|
||||||
tx = alpha.find(layout[i+1])
|
tx = alpha.find(layout[i+1])
|
||||||
ty = alpha.find(layout[i+2])
|
ty = alpha.find(layout[i+2])
|
||||||
assert n >= 0 and tx >= 0 and ty >= 0
|
assert n >= 0 and tx >= 0 and ty >= 0
|
||||||
for tl in range(level, level + height):
|
for tl in range(int(level), int(level) + int(height)):
|
||||||
tiles.append((tl, tx, ty))
|
tiles.append((tl, tx, ty))
|
||||||
tiles.sort()
|
tiles.sort()
|
||||||
return tiles
|
return tiles
|
||||||
|
|
Loading…
Add table
Reference in a new issue