Legends of Code & Magic - Puzzle discussion


#1

Feel free to send your feedback or ask some help here! :game_die:


#2

The forum link on the sidebar of the IDE links to https://www.codingame.com/forum/t//t/legends-of-code-magic-puzzle-discussion/54294
That's wrong and leads to nowhere.


#3

Fixed :slight_smile:


#4

For anyone trying to reuse contest code:

  • First two input lines have an extra int on the end (card draw)
  • Third line has an extra int on the end (number of opponent actions)
  • Then there are is a line for each opponentaction - these are slightly awkward to parse if you aren't reading entire lines in as they can have 3 or 4 fields.I'm just reading the entire line as a string and ignoring for now.
  • After that all inputs are the same as the contest (number of cards, then lines of card details).

#5

According to my preliminary local self-play testing, and hoping I have no bugs related to changes, my winrate as P1 between contest and multi decreased from 67.5 to 57.8%. So it seems the balance has gotten significantly better as a result of the mana change, though not entirely fixed. It's also possible the gap can be further closed by adjusting the P2 AI and etc. to the new rule.


#6

The inputs changed but the statement is pretty messy. For example the english statement says First 2 lines: for each player, playerHealth, playerMana, playerDeck and playerRune, but we now have a additional int (playerDraw).


#7

I noticed the the list of cards available for the draft is displayed in the viewer at the very beginning of games.

It doesn't seem to be available in the game inputs though. Am I missing something?


#8

What did you change at your strategy after the extra Mana update?

I didn't change anything yet...


#9

I notice someting strange in attack resolution :
[Warning] Action is not legal: ATTACK 5 16 : 5 is a Flying Corpse Guzzler(6/6), and 16 is a Giant Louse(2/7).
This action is not performed on it's summoning turn.
I don't understand. Does this mean that Creatures with Charge can only attack on summoning turn ?
Or does this mean that Breakthrough creatures must attack opponents with lower defense?


#10

Found it ! We must kill Guard creatures BEFORE attacking others .
This should be written in wood league documentation.


#11

Can someone explain me the scoring system? I'm in bronze league. The BattleMage have a score of 21,95. Is this score reset with league change ? If no, there is something stange, because, 21.95 correspond to mid gold league. There is also another strange.thing : BattleMage score always raise. As I approach this score, it raises, so I can't defeat it. How this score is computed ? Currently bronze league scores goes from 5,72 to 20,95, silver league goes from 13,77 to 20,48 and gold goes from 14,82 to 30,11, so I think 21,95 for Bronze boss is pretty high according to me.


#12

Don't compare scores in-between leagues, they're unrelated and not comparable.
About boss being high, yes that's an issue, the only solution is to wreck him. When you're in bronze, it's definitely doable.


#13

Scores are based on the trueskill algorithm - you get points for winning and lose for losing based on how likely you were to win, so scores are relative to people in your league. The actual value of the score doesn't really mean anything, it's only useful for comparing two people in the same league.