[스팀몬스터] rule set 추가

in #sct6 years ago

스몬의 난이도가 좀 더 올라갔습니다. 그만큼 다양한 카드가 사용될 기회가 많아진 것입니다.

이번에 추가된 rule set은 총 4가지입니다. 이중 mana 값이 짝수 혹은 홀수만 사용하는 룰셋의 난이도가 상당히 높습니다. 사용할 수 있는 카드가 완전히 변경이 되다보니, 새로운 전략이 필요한 것 같습니다.

자동 봇을 거의 완성했는데, 추가로 나온 룰셋을 또 반영을 해야하는군요.

홀/짝 룰셋은 mana 값을 기준으로 홀짝을 나누면 되기 때문에 간단합니다. Closed Range도 모든 카드를 사용할 수 있으니 문제가 없죠. 다만 배치면에서 1열에도 range가 올 수 있으니 전략 수정은 필요합니다.

마지막으로 Weak Magic 룰에서는 magic stat이 있는 몬스터를 사용하지 못합니다. 모든 몬스터 중 magic stat을 가진 몬스터를 빼고 출력을 하면 Weak Magic에 사용할 수 있는 몬스터가 됩니다.

일전에 만든 splinter 별 stat 기능을 가진 몬스터를 출력하는 함수를 수정해서 관련 몬스터를 뽑아 보았습니다.

즉 'magic' stat을 뽑는 함수를 수정하여 magic stat이 아닌 몬스터를 뽑는 방식으로 수정을 했습니다.

def print_cards_based_on_stat(splinter, stat) :
    cards = get_card_detail_info(0)
    color = SPLINTER_TO_COLOR[splinter]

    wanted = []
    wanted_neu = []
    for card in CARDS :
#        if card['color'] == color or card['color'] == 'Gray':
        if 1:
            if card['type'] == 'Summoner' :
                continue
            else :
                mana = card['stats']['mana'][len(card['stats']['mana'])-1]
            val = get_stat_value(card, stat)
            if ( val == 0 ) :
                print(card['id'], ',')
    return


Sort:  

naha님이 tradingideas님의 이 포스팅에 따봉(7 SCT)을 하였습니다.

즐몬하세요 ^^

Hi @tradingideas!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 4.398 which ranks you at #2480 across all Steem accounts.
Your rank has not changed in the last three days.

In our last Algorithmic Curation Round, consisting of 82 contributions, your post is ranked at #33.

Evaluation of your UA score:
  • Some people are already following you, keep going!
  • The readers like your work!
  • Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!

Feel free to join our @steem-ua Discord server

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.082
BTC 60783.65
ETH 1557.84
USDT 1.00
SBD 0.47