entable = table1 enarm = arm1 face = face2 enface = face1 else: table = table1 arm = arm1 deck = deck1 entable = table2 enarm = arm2 face = face1 enface = face2 if deck: arm.append(deck.pop(randint(0, len(deck) - 1))) Description.screen(arm, table, entable, enarm, face, enface) inp = Scripts.select( "'pass' to pass the turn,'cast' to cast the card or 'attack' to attack with casted card\n", -1, ["pass", "cast", "attack"]) if inp == "pass": turn = not turn elif inp == "cast": inp = Scripts.select("select number of card to cast or 'cancel'\n", len(arm), [ "cancel", ]) if inp == "cancel": pass else: table.append(arm.pop(inp)) elif inp == "attack": inp = Scripts.select( "select number of card to attack with or 'cancel'\n", len(table), [