Skip to content

Commit

Permalink
fix derp with string value for matches
Browse files Browse the repository at this point in the history
  • Loading branch information
sverrejb committed Mar 23, 2017
1 parent bfb98f5 commit 6eb82a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions EA/fitness.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ def build_cmd(candidate_name, opponent_name, nr_matches):


def evaluate_deck_by_wins(individual):

number_of_matches = len(ct.OPPONENTS) * ct.MATCHES_PER_OPPONENT

number_of_matches = len(ct.OPPONENTS) * int(ct.MATCHES_PER_OPPONENT)
decklist = genome_to_decklist(individual)
filename = "candidate.dck"
write_decklist(ct.CARD_DIRECTORY + filename, decklist)
Expand Down

0 comments on commit 6eb82a0

Please sign in to comment.