Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tests = [
- { # 1-card combo
- 'board_card': None,
- 'hand_names': [
- 'Gate Guardian',
- 'Blue-eyes Ultimate Dragon',
- 'Zera The Mant',
- 'Cosmo Queen',
- 'Blue-eyes Ultimate Dragon',
- ],
- 'field': None,
- 'max_fusion_length': 3,
- 'exp_result_name': 'Blue-eyes Ultimate Dragon',
- 'exp_ordering': [1],
- 'exp_equip_stage': 0,
- 'exp_result_max_stat': 4_500
- },
- { # 1-card combo, field shouldn't matter (.1)
- 'board_card': None,
- 'hand_names': [
- 'Twin-headed Thunder Dragon',
- 'Dark Magician',
- 'Zera The Mant',
- 'Cosmo Queen',
- 'B. Skull Dragon',
- ],
- 'field': 'Yami',
- 'max_fusion_length': 3,
- 'exp_result_name': 'B. Skull Dragon',
- 'exp_ordering': [4],
- 'exp_equip_stage': 0,
- 'exp_result_max_stat': 3_200
- },
- { # 1-card combo, field shouldn't matter (.2)
- 'board_card': None,
- 'hand_names': [
- 'Twin-headed Thunder Dragon',
- 'Dark Magician',
- 'Zera The Mant',
- 'B. Skull Dragon',
- 'Cosmo Queen',
- ],
- 'field': 'Umi',
- 'max_fusion_length': 3,
- 'exp_result_name': 'B. Skull Dragon',
- 'exp_ordering': [3],
- 'exp_equip_stage': 0,
- 'exp_result_max_stat': 3_200
- },
- { # 2-card combo, field shouldn't matter (.2)
- 'board_card': None,
- 'hand_names': [
- 'Twin-headed Thunder Dragon',
- 'Dark Magician',
- 'Zera The Mant',
- 'B. Skull Dragon',
- 'Cosmo Queen',
- ],
- 'field': 'Umi',
- 'max_fusion_length': 3,
- 'exp_result_name': 'B. Skull Dragon',
- 'exp_ordering': [3],
- 'exp_equip_stage': 0,
- 'exp_result_max_stat': 3_200
- },
- { # 3-card combo
- 'board_card': None,
- 'hand_names': [
- 'Flame Ghost',
- 'Petit Dragon',
- 'Niwatori',
- 'Air Marmot of Nefariousness',
- 'Niwatori',
- ],
- 'field': None,
- 'max_fusion_length': 3,
- 'exp_result_name': 'Crimson Sunbird',
- 'exp_ordering': [0, 2, 4],
- 'exp_equip_stage': 0,
- 'exp_result_max_stat': 2_300
- },
- { # 2-card combo due to max_fusion_length being reached
- 'board_card': None,
- 'hand_names': [
- 'Flame Ghost',
- 'Petit Dragon',
- 'Niwatori',
- 'Air Marmot of Nefariousness',
- 'Niwatori',
- ],
- 'field': None,
- 'max_fusion_length': 2,
- 'exp_result_name': 'Flame Cerebrus',
- 'exp_ordering': [0, 3],
- 'exp_equip_stage': 0,
- 'exp_result_max_stat': 2_100
- },
- { # Equip due to 2-card combo having priority over 1-card combo thanks to earlier card
- 'board_card': None,
- 'hand_names': [
- 'Megamorph',
- 'Gate Guardian',
- 'Turtle Tiger',
- 'Niwatori',
- 'Firegrass',
- ],
- 'field': None,
- 'max_fusion_length': 3,
- 'exp_result_name': 'Gate Guardian',
- 'exp_ordering': [0, 1],
- 'exp_equip_stage': 2,
- 'exp_result_max_stat': 3_750
- },
- { # No equip due to 2-card & 3-card combos comparison
- 'board_card': None,
- 'hand_names': [
- 'Megamorph',
- 'Mavelus',
- 'Turtle Tiger',
- 'Niwatori',
- 'Firegrass',
- ],
- 'field': None,
- 'max_fusion_length': 3,
- 'exp_result_name': 'Crimson Sunbird',
- 'exp_ordering': [1, 3],
- 'exp_equip_stage': 0,
- 'exp_result_max_stat': 2_300
- },
- { # Equip thanks to field
- 'board_card': None,
- 'hand_names': [
- 'Cosmo Queen',
- 'B. Skull Dragon',
- 'Megamorph',
- 'Megamorph',
- 'Zoa',
- ],
- 'field': 'Yami',
- 'max_fusion_length': 3,
- 'exp_result_name': 'Cosmo Queen',
- 'exp_ordering': [0, 2],
- 'exp_equip_stage': 2,
- 'exp_result_max_stat': 3_400
- },
- { # Equip from field combo
- 'board_card': None,
- 'hand_names': [
- 'Zoa',
- 'Yami',
- 'Skull Knight',
- 'Twin-headed Thunder Dragon',
- 'Yami',
- ],
- 'field': None,
- 'max_fusion_length': 3,
- 'exp_result_name': 'Twin-headed Thunder Dragon',
- 'exp_ordering': [1, 4, 3],
- 'exp_equip_stage': 1,
- 'exp_result_max_stat': 2_800
- },
- { # Equip from field combo and field
- 'board_card': None,
- 'hand_names': [
- 'Twin-headed Thunder Dragon',
- 'Skull Knight',
- 'Zoa',
- 'Yami',
- 'Yami',
- ],
- 'field': 'Yami',
- 'max_fusion_length': 3,
- 'exp_result_name': 'Skull Knight',
- 'exp_ordering': [3, 4, 1],
- 'exp_equip_stage': 1,
- 'exp_result_max_stat': 3_150
- },
- { # Different equip from field combo
- 'board_card': None,
- 'hand_names': [
- 'Twin-headed Thunder Dragon',
- 'Skull Knight',
- 'Zoa',
- 'Yami',
- 'Yami',
- ],
- 'field': None,
- 'max_fusion_length': 3,
- 'exp_result_name': 'Twin-headed Thunder Dragon',
- 'exp_ordering': [0],
- 'exp_equip_stage': 0,
- 'exp_result_max_stat': 2_800
- },
- { # Board fusion with no ambiguity
- 'board_card': {'name': 'Skull Red Bird', 'pos': 0, 'equip_stage': 0},
- 'hand_names': [
- 'Armed Ninja',
- 'Petit Dragon',
- 'Vermillion Sparrow',
- 'Tripwire Beast',
- 'Ameba',
- ],
- 'field': None,
- 'max_fusion_length': 2,
- 'exp_result_name': 'Crimson Sunbird',
- 'exp_ordering': [HACK_BOARD_POS, 2],
- 'exp_equip_stage': 0,
- 'exp_result_max_stat': 2_300
- },
- { # Board fusion with 3-card hand combo ambiguity
- 'board_card': {'name': 'Skull Red Bird', 'pos': 0, 'equip_stage': 0},
- 'hand_names': [
- 'Armed Ninja',
- 'Petit Dragon',
- 'Vermillion Sparrow',
- 'Tripwire Beast',
- 'Ameba',
- ],
- 'field': None,
- 'max_fusion_length': 3,
- 'exp_result_name': 'Crimson Sunbird',
- 'exp_ordering': [HACK_BOARD_POS, 2],
- 'exp_equip_stage': 0,
- 'exp_result_max_stat': 2_300
- },
- { # Keep board card as is
- 'board_card': {'name': 'Blue-eyes White Dragon', 'pos': 0, 'equip_stage': 0},
- 'hand_names': [
- 'Armed Ninja',
- 'Bright Castle',
- 'Vermillion Sparrow',
- 'Tripwire Beast',
- 'Ameba',
- ],
- 'field': None,
- 'max_fusion_length': 3,
- 'exp_result_name': 'Blue-eyes White Dragon',
- 'exp_ordering': [HACK_BOARD_POS],
- 'exp_equip_stage': 0,
- 'exp_result_max_stat': 3_000
- },
- { # Improve board card
- 'board_card': {'name': 'Blue-eyes White Dragon', 'pos': 0, 'equip_stage': -1},
- 'hand_names': [
- 'Armed Ninja',
- 'Bright Castle',
- 'Vermillion Sparrow',
- 'Tripwire Beast',
- 'Ameba',
- ],
- 'field': None,
- 'max_fusion_length': 2,
- 'exp_result_name': 'Blue-eyes White Dragon',
- 'exp_ordering': [HACK_BOARD_POS, 1],
- 'exp_equip_stage': 0,
- 'exp_result_max_stat': 3_000
- },
- { # No combo due to hand and board cards having the same position
- 'board_card': {'name': 'Blue-eyes White Dragon', 'pos': 0, 'equip_stage': -1},
- 'hand_names': [
- 'Bright Castle',
- 'Armed Ninja',
- 'Vermillion Sparrow',
- 'Tripwire Beast',
- 'Ameba',
- ],
- 'field': None,
- 'max_fusion_length': 2,
- 'exp_result_name': 'Blue-eyes White Dragon',
- 'exp_ordering': [HACK_BOARD_POS],
- 'exp_equip_stage': -1,
- 'exp_result_max_stat': 2_500
- },
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement