How do cards with "X" work?

I couldn't find any explanation inside the game. Maybe it's the number of the turns passed since the beginning of the current combat?


Solution 1:

The answer is:

Some cards can have X Energy cost. These cards consume all of your remaining Energy upon use, and their effect varies with how much Energy was consumed.