SabertheLost: Emm, I just passed the optimization score for Code vs Zombies by just doing x = lastZombieNextX and y=lastZombieNextY. That gives a score more then 40k.. I do not feel I optimized anything
jrke: simple start can give you score but for further you need algos which you have to optimize to get better score
jrke: then you have to find what went wrong in those 2 cases
ParticleBeam: Brute force? Check all combinations of Fizz and Buzz to see if they are consistent with the input sequence?
Aya_Noaman: calm down bro
Aya_Noaman: i always feel stupid too
Uljahn: i feel like some easy are medium in disguise and vice versa
Marchete: I don't understand the "oriented shape" in Blocking game
Marchete: it says " shapeLetter-[0-1]the flip number-[0-3]the rotate number"
Marchete: so it seems A##
Marchete: but suddenly is A###
Marchete: with numbers even of 5, like 0 0 K015
darkhorse64: The last number is the tile number that touches the corner you attach the shape too
darkhorse64: Don't know if I made it any clearer
Marchete: sorry, no :(
darkhorse64: When issuing your move, you place an oriented shape A##. The tile number x will be placed on (col, row). Movegen is going to be hard to code for this multi and I wonder if it's not going to detract people from it
darkhorse64: Is it better ?
Marchete: I still see the statement confusing
Marchete: I can't see the A### at all
Marchete: using the simplest piece, 0 0 A001
Marchete: what's that 1?
Marchete: also rotation coords, if I flip my piece then coords are negative?, or it's reset to 0 as top first?
Marchete: I'm still trying to figure the game, with a GUI and a mouse is easy to do it, but in text mode it's harder to do
Astrobytes: Marchete: the '1' is the number tile from the given shape which will be placed on the coordinates you specify
Astrobytes: well, the number in that case is '1', but could be any number tile from the shape
Astrobytes: I think so anyway. It is somewhat unclear in the statement tbh
Astrobytes: and yes darkhorse64, I think the movegen difficulty will affect the number of participants
MSmits: hey Astrobytes
MSmits: I wrote something cool for my course: https://trinket.io/library/trinkets/2f3651108d
MSmits: it has bfs, dfs, can generate a random maze and show the steps of the algorithm.
MSmits: for the search that is, not the maze generation
MSmits: (keys for this are in the introduction tab)
MSmits: I use it in an iframe, they cant see the code then. It's basically just an interactive animation for the students
Astrobytes: MSmits nice job man, that's awesome :)
Astrobytes: MSmits: do you think it's worth adding a manual step-through option? As well as displaying all steps
Astrobytes: There's a Hint button on the left andreimushat
Astrobytes: And make sure you update Thor's position when you output a direction
ProCoder3: hi !
ProCoder3: in mean max , I used SKILL x y command
ProCoder3: but i am not able to make my destroyer throw a grenade
ProCoder3: I have enough Rage
ProCoder3: guys please help me :cry:
Q12: what is the name of the game?
Matrix007: is there hint for "CODERS STRIKE BACK" i am just lvl 2 that angle and dist...idk wht to do
Matrix007: like use trignometry?
Matrix007: no idea
ProCoder3: @Q12 it is 'mean max'
eulerscheZahl: ProCoder3 is the target in range of your destroyer?
ProCoder3: it within a 1000
eulerscheZahl: share a replay where it goes wrong
ProCoder3: Okay will share !!
ProCoder3: sorry guys it was bug (caused by me)!! Now it working perfectly . Thanks
ProCoder3: for your help
Monstrux: looked for it aswell, didnt find anything :(
zenoscave: MSmits your turtle has a bug
jacek: hints should on the left?
Skynse: Just submitted my first CoC puzzle
Skynse: I based it on permutations
eulerscheZahl: then you got 1 more than me
eulerscheZahl: "men must sit opposite each other" does that mean the bus has 2 rows facing each other?
Skynse: not necessarily but yeah
Skynse: It means that no matter the number of seats, the two men must sit exactly adjacent each other
Skynse: perhaps I should change "opposite" to "adjacent" in the description
eulerscheZahl: yes, that would make it clearer
eulerscheZahl: and turn the bus into a bench ;)
eulerscheZahl: otherwise I have rows with 2 seats on each side in mind
eulerscheZahl: bench = 1 long line
eulerscheZahl: and sometimes those permutation task see each individual as different, sometimes they only distinguish between groups (so m1, m2, f1 is considered the same as m2, m1, f1)
318673: oh what do we do in this app
eulerscheZahl: with m=male, f=female
eulerscheZahl: congrats 318673, you just unlocked the chat
318673: any one what do we do in this app?
eulerscheZahl: which "app"?
Skynse: solve code puzzles, compete in bot contests, code with other people competitively
318673: thank you
318673: very much
318673: listen to this
318673: why to dark:smile:
318673: sorry wrong song
Legoracer: : |
318673: listen to this it is not dark... https://www.youtube.com/watch?v=9ucSeSSwrek:sunglasses:
eulerscheZahl: you risk a kick, don't you?
eulerscheZahl: yes. Does he, Astro?
Astrobytes: Yes, he does.
318673: why you say that??
eulerscheZahl: you are spamming random youtube links
Astrobytes: Which nobody is interested in.
Skynse: dang man, you're level 54
eulerscheZahl: yes, level up with this contribution: https://www.codingame.com/training/medium/minesweeper-1
Skynse: master :pray_tone5:
tobk: Just curious, what "quest" comes after "Create your first contribution"?
eulerscheZahl: "Add to the CodinGame Legacy" get 5 upvotes on your contribution
eulerscheZahl: and then a free harvest to finish the track
tobk: Huh, already says "get 5 upvotes" on "Create your first contribution"
eulerscheZahl: oh wait, I read the wrong part of that long block
tobk: Ah, it says it can be WIP, so I guess that level is about creating a contribution, and the next about getting it accepted.
eulerscheZahl: you don't only have to create a contribution. it must get approved for the last part
Skynse: dang, full blown minesweeper animation
eulerscheZahl: took me a weekend but well worth it :D
Skynse: Im gonna start off with the easier puzzles, then move up from there
Skynse: I still haven't figured out mars lander 2
Skynse: or the mouse and cat one
eulerscheZahl: i did all hard ones before the marslander 2. even did marslander 3 before 2 :D
eulerscheZahl: then i gave up my search approach for it and solved it with a few if-else
wlesavo: lol, i also strugled with it quite a lot, started it like 4-5 times, and only quest map made me finally do it
eulerscheZahl: story of me golfing "don't panic"
Dartisan: For the optimization tree? I have to solve it still under 200 chars in Dart ;-)
eulerscheZahl: in any language
Dartisan: Yeah, is a personal challenge, I try CodinGame in only Dart. Is for my training.
Dartisan: In the leaderboard I see it is possible, so I have to search.
Dartisan: Best in Dart currently 131 chars.
Dartisan: So my approach in Code is somewhere false.
Majeck: I'm confused with a CoC
Majeck: You have to determine the angle between the hour hand and the minute hand
Majeck: But in the example it says 12:30 -> 165
eulerscheZahl: you don't know how that 131 was achieved
eulerscheZahl: might be a system call
eulerscheZahl: with a shorter bash solution
Majeck: I'm confused: twelve o clock in the hour hand, and 30 minutes in the minute hand should give 180º, no?
ParticleBeam: No. Remember the hour hand moves slightly so it weill be between 12 and 1
Majeck: THANK YOU
Majeck: THANK YOUUUU
eulerscheZahl: but dbdr said his solutions are legit and without such tricks. so 142 should be doable. but sure if it would pass everything or just the given testcases
Dartisan: Thanks, I will find, I will invest some time later. Or wait for the next Dart version, they reduce the code from version to version ;-)
Drakkhonian: hey, anyone know if in this exercise https://www.codingame.com/ide/puzzle/equivalent-resistance-circuit-building
eulerscheZahl: C# will get better at golfing too
eulerscheZahl: in C#9 you don't have to write the Main() function anymore. You can just put the code outside of the function/class
Dartisan: Sounds good, than C# makes Python a bit concurrence.
eulerscheZahl: nah, still far away from python level
Majeck: Console.WriteLine("Hello World!");
eulerscheZahl: but the lambda syntax is shorter
eulerscheZahl: P(s)=>Console.WriteLine(s); P("Hello World");
eulerscheZahl: shorter when you need it again
Majeck: System.out.println("Hello World!");
dbdr: https://www.codingame.com/replay/433923512 interesting start by StOUb :D
dbdr: blocking above all
eulerscheZahl: a few contest bots did that too
eulerscheZahl: but none at the very top
Majeck: >> "Hello World"
Majeck: What language is that?
eulerscheZahl: the annual codejam
eulerscheZahl: as i said: rarely
eulerscheZahl: oh. see, i don't even know the acronyms :D
Hjax: is this site not competitive programming?
Hjax: ? clearly you are looking in the wrong place
Hjax: this site is far more about the contests and competitive games than the puzzles
Hjax: theres a contest starting in two weeks
eulerscheZahl: CG is competitive too. but in a totally different way than codeforces & co
eulerscheZahl: https://www.codingame.com/multiplayer/bot-programming/spring-challenge-2020 the last contest here on CG
Hjax: yeah clashes are easy (and boring imo)
eulerscheZahl: guiding multiple pacmen through a maze to collect the most pellets
leojean890: did CG delete some accounts or something like that ? I won like around 10 places in every multi in the same time ;) (or detected similar codes and removed some of them for multis ?)
Hjax: a few times a year
Dartisan: Next in 14 days.
Hjax: ^ which is the third contest this year
Hjax: you are free to play the games and join the leaderboards of games from previous contests
inoryy: uvaishzafri if all puzzles seem easy then I'm sure you've already solved https://www.codingame.com/training/expert/nintendo-sponsored-contest right? :)
Hjax: clashes are just like, an easy warmup thing
Hjax: not really the meat of this site
Skynse: anyone been able to solve escaping that cat?
Dartisan: Clashes is only one part. You Bot and Optimization for challenging and Code Golf for a bit of fun :-)
Westicles: One thing I've learned from the videos... clashers appear to be a bunch of weirdos
Dartisan: Can't believe only 655 persons tried A code of ice and fire. It is a funny one :-)
eulerscheZahl: 2160 in the contest
eulerscheZahl: no idea why so few bothered to resubmit
eulerscheZahl: now CG moves the whole contest leaderboard directly to the multiplayer section
Skynse: some clashers are pretty mysterious
eulerscheZahl: and the others are on twitch
Skynse: wait then that means I've clashed with a streamer before
eulerscheZahl: but the adblocker does a fairly good job at removing that button :P
Dartisan: Oh, that is real a pity, would cost nothing to commit the same code and the people would have twice the points.
Skynse: or theres a chance that I have given the number of clashes I've done
eulerscheZahl: click that and check the links to be on stream
Hjax: in two weeks the clashers will be briefly flooded out of chat by everyone playing the contest
Hjax: it will be wonderful
ParticleBeam: This "easy" puzzle is driving me nuts.
Hjax: which one ParticleBeam
ParticleBeam: Graffiti on the fence
LastRick: love that puzzle, and i would also add one that probably needs its difficulty changed
Dartisan: It is a tricky one, I tried in first to solve it by array, but as the numbers are Big, I had to switch to logic and compare.
leojean890: difficulties mentioned with community puzzles are not very accurate.. some hard are easier than some "easy";)
leojean890: about official puzzles, it's better;)
leojean890: (way more accurate)
Majeck: leojean890 agree 100%
Majeck: ParticleBeam try to solve it with pen & paper
Majeck: Use that same logic in your code
Majeck: Do you draw the whole fence to solve the problem when you have pen & paper?
Dartisan: Yeah, sometimes also the difference between easy and difficult is simply the basic knowledge of an concept, you know already at that point and apply, or you have to build that concept in first.
leojean890: sometimes yes, for example, no easy puzzles with simulation needed or dynamic prog..
leojean890: and difficulty is .. subjective about personal experience and knowledge..
Dartisan: Yeah, started some days ago with Bellmann Theory ;-)
Dartisan: Say, in my daily work there is no need for this part, but this is also why I like this place, it gives me the playground to pass in these domains.
jacek: bellmann theory?
jacek: temporal difference learning?
Skynse: is remi6 a bot?
eulerscheZahl: bots are with 50k+ clashes
Dartisan: jacek, I just started, say it is to replace my recursive approaches by calculated matrixes, for the simply pathfinder.
Skynse: Not sure if I made a mistake by deleting my contribution but eh
Skynse: it was a weird one anyways
Skynse: I mean, at least now I know the work that has to be put into puzzles
AntiSquid: speaking about leaderboard? dr db keeps rising going for 1st i guess
eulerscheZahl: doctor database?
Skynse: you guys ever write code in the moment *sometimes*, then when you look back at it, you wonder how you thought of it so quickly
th-mas: you like write a ton then read it and realize you dont even understand what you wrote :P
Skynse: I solved the defibrillators puzzle a week ago, and looking back at it, I thought someone came into my account and solved it lol
Drakkhonian: and https://www.codingame.com/ide/puzzle/equivalent-resistance-circuit-building done completely
eulerscheZahl: let's see if i can do this faster
jacek: can you make game in 2h?
Skynse: have you been able to solve the cat and mouse one?
eulerscheZahl: not today anymore, getting tired
eulerscheZahl: didn't really try the cat+mouse one yet
Skynse: I want to see if I can use angles, once I figure out a way to make a triangle from 2 coords
Skynse: my mouse is just too slow
Skynse: My bed is looking real nice right now
Skynse: It's calling me
Skynse: ughhhhh, I have to study a bit before a new topic tomorrow
AlPaca: when you click submit because you want to correct faulting code ... xD
eulerscheZahl: code is ugly but it passed the equivalent circuit puzzle
eulerscheZahl: bed time, good night
ParticleBeam: Finally solved that puzzle. My brain must have been dead.
zapakh: I know that feeling
Majeck: Is there any way to get code back after closing my browser :weary:
Majeck: I lended the computer that I'm using with the IDE open and they closed the browser lol
Majeck: Should've seen it coming
Majeck: Where does it say Solve?
Majeck: They're vastly different difficulties
philb32: ok, if you go to the same puzzle that you were trying to so, there is a button that says Solve, click this and you will get back to your previous session, I just tried it, Don't Panic episode 1 as it happens :)
Majeck: TheNoiselessGhost_65d3 If you're having problems with Don't Panic Ep1 I doubt you'll be able to complete Power of Thor Ep2
Majeck: When it first ran as a contest even the most experienced coders took more than two hours to complete it
Majeck: philb32 THANKS
Majeck: philb32 OH lol
Majeck: That's just the button to open up the puzzle lol
Majeck: Your prof is crazy if he thinks Don't Panic Ep1 is at the same level as Power of Thor Ep2
Majeck: I mean Don't Panic Ep1 can even be golfed
Majeck: Without anything too complicated I got it to under 200 characters in Python
Majeck: That's crazy, they're really different
Majeck: I doubt he'd let you get away with hardcoding
Majeck: In any case if you were to stoop so low as to hardcode you could just look up the solution online :shrugs:
Majeck: For sure thought that :shrugs: was an emoji!
MAKMED1337: Answer: malloc.c:2389: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
MAKMED1337: what does this mean ?
Majeck: MAKMED1337 what puzzle?
MAKMED1337: i found error
Majeck: Two possibilities: 1) The puzzle screwed up
Majeck: 2) You screwed up
Majeck: In any case it has something to do with pointers I think
MAKMED1337: it was out of range
MAKMED1337: in vector
Majeck: I hate Code vs Zombies cause since two years back I've been passing all tests but failing one or two validators
Majeck: And I honestly don't know how to fix i lol
MAKMED1337: An error occurred (#407): "You reached the limit of plays for a period of time.".
MAKMED1337: what i need to do ?
MAKMED1337: jsut wait ?
Majeck: A few minutes or so
Majeck: Stop hitting "Play all testcases" when the cool down runs out
Majeck: Just play the ones that interest you
zenoscave: No one is here FakeGhost
Skynse: what do you specialize in?
TBali: if you are good then a 'job offer'
Skynse: what field are you getting assessed in?
Skynse: or more specifically, what job
Skynse: Well, OOP knowledge is always required, some knowledge on data structures and algorithms, etc
zenoscave: [CG]BOUGA do you know of a way to get trueskill sigma mu values for a score? Are they ever represented in an API? PM me please
zenoscave: I dont wanna dig where I shouldnt
Majeck: Well, it depends on the employer
Majeck: They could ask you anything
Majeck: Like I've known some cases where you can't code and have to do solve problems in pen & paper
Majeck: Or worse, having to code in real time while sharing your screen (super stressfull)
Majeck: I'll DM you
Majeck: Could someone link the plugin that lets you work in CG with multiple files?
Majeck: Thanks for asking!
Majeck: No I didn't but it was only like +-20 minutes of work lost so no biggie
Majeck: I'm actually really excited
Majeck: I just finished a "semi" hardcoded solution for Mars Lander Ep. 3
Majeck: Oh, and it worked!
Majeck: I just need to implement two big classes (both of which I've already done similar ones in different games) and I'll be done :)
Majeck: It'll be the first very-hard puzzle I solve and it'll get me to level 20
ZarthaxX: gz :O
Majeck: philb32 Episode 1 and 2 of what game?
KiwiTae: ZarthaxX wtf
Majeck: Pardon my ignorance, what does gz mean?
KiwiTae: Majeck gz its not a easy one
Zenoscave: Hey KiwiTae long time
KiwiTae: yes~ Zenoscave pewpew
KiwiTae: im in between jobs so got some time ~
Zenoscave: Same here Kiwi
KiwiTae: im a bit scared of leaving my safe island lol
KiwiTae: im in covid free zonenow but im moving to europe in 5weeks