Not a bug, but I think there is an error with the “translation” from the card game to the codingame challenge
According to the first 4 basic spells, the order of the ingredients would be: blue < green < orange < yellow. But for the recipe and spells deck, the order is instead: blue < orange < green < yellow, so the green and orange ingredients have been swapped. For example we have :
Am I misunderstanding or is there absolutely no way to know what your opponent casted? If this is the case how one would even know if the +3 bonus rupees is still available or not? I don’t see in any input any information that can be read to know if your opponent brewed or not the first order in the list with the bonus.
…is there absolutely no way to know what your opponent casted? If this is the case how one would even know if the +3 bonus rupees is still available or not?
As I understand, you don’t actually need to know that.
When you and you’re opponent cast/brew the same thing, you both get the result and the points.
This is described in the lower section “Technical Details” of the rules (Bronze League), just before “Game Protocol”.
Visuals.
The spells that are repeatable and the ones that are not, are visually indistinguishable from each other in the “magic tome” and in personal “tomes”.
xoposhiy had one point more than Malcoriel before the last turn. On the last turn players brewed the same potion. But Malcoriel stated as a winner with the score 2 points higher than should be. Why?
It’s explained in the rules and works as intended. Players gain 1 rupee for each tier-1 ingredient or higher in their inventory. malcoriel had 2 of those ingredients, so he got 2 extra points
Maybe that is a pun, intended…
Or this is the Wood league of the CG Tongue Twister contest. In its Legend league you will have to say the sentence loud 100x per minute.
Suggestion: Make it easier to figure out the urgency bonuses. It’s always possible to find out, but right now you need to keep track of which potions have been brewed and it’s annoying to do so.
I guess it is not good when the side that got timeout can become a winner if it has better score. It encourages to include timeouts to strategy when one temporary has better score.
Using Rust, reading input is taking way to long … I measure the duration from the start of my program to after reading all input. According to my code, this takes nearly 3 seconds the first time, and anywhere from 30 to over 80 ms thereafter. I can run my program successfully though, with “Play My Code”, but it fails on the 1st or 2nd turn when Submitting my code (fails to output an action/command). It seems that before I can even read the input, the 50 ms turn limit has expired. Can’t proceed with the tournament this way. It is the 1st line of input that takes all the time.
If I start my timer after, it still times out. The time to read the input is still counted against my time limit. Other challenges have not had this problem.