How to change the language from JS to Python in The Battle of Red Cliffs?
Yes I second that question. I am guessing Javascript is “outlawed” in the tournament?
no i’ve seen people using it.
How do you get your troops to attack the weakest enemy anyway?
You can write findWeakest() function.
@Deadpool198 @AnSeDra and others: I’m looking at this bug where you sometimes see default code (all archers) for enemies on the ladder. Can you share any more information? Do you see this all the time, or just sometimes? For red or blue or both? Against certain opponents and not others? Does refreshing sometimes, always, or never fix it?
@weary @2Flowers You can use JavaScript if you want. To change your code language, take a ladder URL, like this one:
https://codecombat.com/play/level/battle-of-red-cliffs?team=ogres&opponent=5f25a096f37fad002465b4d1
and add &codeLanguage=javascript or &codeLanguage=python to it:
https://codecombat.com/play/level/battle-of-red-cliffs?team=ogres&opponent=5f25a096f37fad002465b4d1&codeLanguage=python
Then rewrite your code in the new language and resubmit to the ladder.
It’s very inconsistent for me. Mostly it’s happened against AnSeDra, (on the moment on the blue side, but it’s happened on both), normally it fixes after one reload. However it also happened against cqfuzhengyuan (23, blue) and it only fixed after two reloads. I had thought it was only against people I lost to, but in both of these examples I won. I can’t really link anything between them further than that. But it doesn’t happen very often to me at the moment.
For me it happened against @Deadpool198 on both sides and after I refreshed, I saw that he had a different code. This also happened when I wanted to see why do I lose battles, but after one refresh (and one time two refreshes) I could see the oponent’s army, not the archers.
Andrei
Look, I don’t think that @AnSeDra has archers.
But when I refresh the page I see:
Sometimes it isn’t working.
When’s the next stage coming out after Red Cliffs?
Four bugs:
-
Not critical - sometimes I simulate matches with me and lose points ! bu|690x204
-
Critical - in duels with cqlantianxiang my Thieves became dumb after first frame of round.
I have custom tactic for them through setActionFor, but they use it only for first frame of round and then switches to just straightforward close battle like there is no setActionFor…
All other duels with other players are fine. game.log without any errors
UPDATE: duel with cqchensibei is dumb too, but only for first two rounds with enemy wizards…
I even tried to comment out all my Thieves tactic code except one line with “continue” in “while True” loop, but it didnt help to get it working past first frame. -
Critical - in all duels - for the first frame of second/third round all units became dumb - they just go to enemy or shoot arrow if there is somebody in their range during first frame of round… from the second frame - they start acting with setActionFor instructions…
-
Strange bug… First round - thieves act first, then wizards act. Second and third round - wizards act first, then thives (so in 1st round wizards shoot arrows to predicted thieves pos, in other round wizards shoot arrows to thieves assuming they stay in place). May be it is related to “dumb” units first frame of 2nd and 3rd rounds I described above.
The “dumb” units thing also happen to my wizards in round 2 against some opponents.
Andrei
From last ~150 duels I lost points because of bugs (match with myself, matches with cqlantianxiang where thieves became dumb after first frame)
Different bug, which seems related to previous ones:
- in duel with cqyangshunian in 2nd round my Thieves became dumb every other frame… so they act one frame as desired by setActionFor, next frame they are dumb rush toward nearest enemy, next frame again they are fine and smart, etc…
Same I only lost to cqlantianxiang and myself
oh, wow… It appears that Hydrobolic stole my code!
It is my yesterday’s code with about 400 lines of custom tactics which I worked on for a whole week… Who can help me with that?
idk, just click run and hope the random winner is you?
Why when I encounter @SocialBlunder, the first round goes well, but in the other rounds my troops just go rouge and ignore all of my commands? Why is this “dumb” units thing happen?
Andrei
So, what’s happening in the quest now?