Hey ! I think I spotted a small issue on description of Bronze league, in French:
“Pour cette ligue, le jeu dure le temps qu’il faut au soleil pour tourner autour du plateau 6 fois . Ce qui signifie que les joueur disposent de 24 jours pour jouer”
Looks like it’s not “6 fois” but “4 fois”. The sun moves in 6 positions, so 6 x 4 => 24
Les arbres de taille 1 projettent une ombre sur 1 case.
Les arbres de taille 2 projettent une ombre sur 2 cases.
Les arbres de taille 1 projettent une ombre sur 3 cases.
It should probably be :
Les arbres de taille 1 projettent une ombre sur 1 case.
Les arbres de taille 2 projettent une ombre sur 2 cases.
Les arbres de taille 3 projettent une ombre sur 3 cases.
“Faîtes entrer votre entreprise dans le top 100.
Invitez vos amis et faîtes péter le classement !”
2 x faîtes -> faites
" Ils sont responsable" => “Ils sont responsables”
“37 cases hexagonales, arrangée en un plus grand hexagone” => “37 cases hexagonales, arrangées en un plus grand hexagone”
“pour pointer vers la directions suivante” => “pour pointer vers la direction suivante”
2x" menaçante sur l’arbre petit" => " menaçante sur le petit arbre"
“Les points seront données” => “Les points seront donnés”
“chaque joueurs effectuent” => “chaque joueur effectue”
“ce qui signifies” => " ce qui signifie"
“aucun des deux graines n’est planté” => “aucune des deux graines n’est plantée”
“une graine est aussi considéré” => “une graine est aussi considérée”
Looks like a bug in winning conditions: the player who haven’t provide an input, won the match. I suppose any wrong output should lead to lose, current score doesn’t matter:
Can’t able to Play My code.
Found the following error on console
48284453e60bbb98f5221d66f3b10840.html:67 Uncaught (in promise) Error: Could not load library, path not found: https://static-aznet.codingame.com/9c18438eadb420f360bbfeb5c53dca4f.js
at error (48284453e60bbb98f5221d66f3b10840.html:67)
at o (48284453e60bbb98f5221d66f3b10840.html:67)
at 48284453e60bbb98f5221d66f3b10840.html:67
at r (48284453e60bbb98f5221d66f3b10840.html:67)
at HTMLScriptElement.s.onload.s.onerror.s.onbeforeload (48284453e60bbb98f5221d66f3b10840.html:67)
Windows 10, chrome Version 90.0.4430.93 (Official Build) (64-bit)
I’m suffering from the grey screen instead of seeing the gameplay (Macbook Pro, MacOs Big Sur (11.3) Chrome Version 90.0.4430.93 (Official Build) (x86_64)
Top of Console dump follows. I see a note about webgl – is there a more concrete fix?
api2.amplitude.com/:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
pushMessage.js:89 Log on pushmessage server as 829018
angular.js:15697 Possibly unhandled rejection: undefined undefined
(anonymous) @ angular.js:15697 api2.amplitude.com/:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
angularjs.js:308 Starting language server for language cpp
angular.js:15697 Error: Timed out.
at cg-analytics.js:17
at angular.js:18075
at angular.js:18123
at c.$digest (angular.js:19241)
at c.$apply (angular.js:19630)
at angular.js:21773
at ji.t.completeTask (angular.js:21403)
at angular.js:6879 “Possibly unhandled rejection: {}”
(anonymous) @ angular.js:15697 api2.amplitude.com/:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
index.js:29833 grammar not found source.asm
loadGrammar @ index.js:29833
index.js:29833 grammar not found source.x86
loadGrammar @ index.js:29833
index.js:29833 grammar not found source.x86_64
loadGrammar @ index.js:29833
index.js:29833 grammar not found source.arm
loadGrammar @ index.js:29833
index.js:29833 grammar not found source.cpp.embedded.macro
loadGrammar @ index.js:29833
Error: WebGL unsupported in this browser, use “pixi.js-legacy” for fallback canvas2d support.
a._initDrawer @ 48284453e60bbb98f5221d66f3b10840.html:67
Trying another canvas
TypeError: Cannot read property ‘resize’ of undefined
a._initDrawer @ 48284453e60bbb98f5221d66f3b10840.html:67
TypeError: Cannot read property ‘resize’ of undefined
(anonymous) @ 48284453e60bbb98f5221d66f3b10840.html:49
angular.js:15697 Error: Timed out.
at cg-analytics.js:17
at angular.js:18075
at angular.js:18123
at c.$digest (angular.js:19241)
at c.$apply (angular.js:19630)
at angular.js:21773
at ji.t.completeTask (angular.js:21403)
at angular.js:6879 “Possibly unhandled rejection: {}”
(anonymous) @ angular.js:15697
TypeError: Cannot read property ‘resize’ of undefined
(anonymous) @ 48284453e60bbb98f5221d66f3b10840.html:49
TypeError: Cannot read property ‘resize’ of undefined Possibly unhandled rejection: {}
(anonymous) @ 48284453e60bbb98f5221d66f3b10840.html:49 api2.amplitude.com/:1 Failed to load resource:
I think the comment on the Python portion of the code is backwards in relation to the is_dormant boolean. When it is set to 1 (True) you can perform actions on the tree, and when it is set to 0 (False) you cannot.
cc @alchemsti we have a fix to solve the gray screen issue. Updating our PIXI.js library will fix it, however upgrading the library is a slower process. It should be solved by tomorrow
I had turned off hardware acceleration in Chrome (Settings -> Advanced -> System) and turning that back on, and reloading this morning, let’s me see your beautiful UI
int distance = sourceCoord.distanceTo(targetCoord);
if (distance > sourceTree.getSize()) {
throw new TreeTooFarException(sourceCell.getIndex(), targetCell.getIndex());
}
So it would seem than an error is triggered only if the distance exceeds the source tree size. In other words, a distance less than or equal to the source tree’s size is admissible.
EDIT (a few minutes later after the post): Sorry , I realize now that the instructions say “within a distance”, “within” being a key word here as it implies that any distance equal or lower is admissible. Since English is not my main language, I didn’t pick up the subtlety. Still, a less subtle wording may be clearer for other people.
In the french rules, there is a typo:
EN: “Your program does not provide a command in the allotted time or it provides an unrecognized command.”
FR: "Vous effectuez une action invalide ou votre programme ne répond pas dans les temps. "
The defeat condition is the one in the english rules, with an “unrecognized command”. Playing a valid command that cannot be played (an invalid action as in the french rules) does not make the player to loose the game.