Chat:World/2021-08-31
mufar: hey i have been take the first test for interview in codingame and there is a problem about how many robot visit the same start point, i dont finished yet because my time is out. So how i want to try that problem for practice? i have been search on google but i cant get it. Anyone can help me to find out the same problem in codingame or another website?
DaNinja: Search for puzzles here https://eulerschezahl.herokuapp.com/codingame/puzzles/
TimothyAlexisVass: I need meaningful work
TimothyAlexisVass: What about you?
thaptai: Hi
EthanLu34: hi
EthanLu34: do u like curry?
EthanLu34: horse-racing duals is hard
EthanLu34: but im only 11 so like
EthanLu34: yeh
grindy: hi
derjack: ohai
derjack: :thinking:
Thyl: Hi
Thyl: do you know a web site for minimax implementation
Thyl: transposition, alpha-beta
Thyl: iterative deepening...
derjack: maybe connect 4 solver
derjack: http://blog.gamesolver.org/
Thyl: tx
Coder_noob001: do anyone know website for 1v1 clashing of codes
Baltraz: i mean you can do private clashes
Coder_noob001: but private clashes questions wil be too simple
Uljahn: why? aren't they random?
Coder_noob001: they are random but the difficulty level of those questions will b very low
TimothyAlexisVass: What are you talking about?
WhaIe: @Coder_noob001 there's a website called binarysearch. You can create a private room, invite whoever you want, and solve harder problems
Coder_noob001: thanks
Wontonimo: :wave:
Y.Srihari: Hi
Y.Srihari: Can you answer my question
Wontonimo: i can, i am all knowning. without even knowing the question I know the answer. 42.
Wontonimo: jk, what's your question
thunderegg: im new can i get help
Wontonimo: ask here
Wontonimo: be specific
thunderegg: im new can i get help coding
Wontonimo: what are you trying to code?
thunderegg: im trying to compete in clash of code
Wontonimo: how much coding experience do you have and in what language?
thunderegg: im a noob but i started this to learn to code games
thunderegg: in javascript
thunderegg: or even help in coders strike back
thunderegg: whats the code for coders strike back
Wontonimo: i'll send you private message thunderegg
jacek: oO
thunderegg: http://chat.codingame.com/pastebin/f9907ecf-8c99-4614-839f-7cffdc7a0771
thunderegg: http://chat.codingame.com/pastebin/cf64b0b0-a166-4b23-9fe5-f5bf91cb46e1
thunderegg: http://chat.codingame.com/pastebin/0fc2d889-2e16-4070-8d62-67b55101e10c
thunderegg: http://chat.codingame.com/pastebin/09cfa604-916e-4dd6-b38d-0d3a031a95ea
thunderegg: http://chat.codingame.com/pastebin/696a56aa-d8f5-4d81-8ca0-de5c6a88f943
Wontonimo: stop that
thunderegg: http://chat.codingame.com/pastebin/1b2f7867-2a6d-4e73-be45-44917674f214
thunderegg: what is that cade
Wontonimo: that's php
jacek: 404?
Maxim251: I have interesting Question. When I have Base object BUILDING and I have assigned values in that obiect, and later on in game I want assigh child like " BUILDING *a = new BARRACK_ARCHER " its normal that all data from base class is deleted?
BlaiseEbuth: Isn't "new" clear enough?
Maxim251: Yes, But new is for child class
Maxim251: I am using inheritance using base class and child class
BlaiseEbuth: And "=" is for "overwrite"
Maxim251: then if I want change behavior of class to another, that means that assighning new behavior is rewritenning whole class? Not only replacing virtual functions?
jacek: umm child class will have all the data of base class, and will overwrite virtual functions by default
BlaiseEbuth: Not sure of what you're asking... If you mean changing the class at runtime, you can't.
Maxim251: Then How I can change behavior of class, like my heroe can shoot, then my heroe drink poison, and my heroe canot shoot anymore?
Wontonimo: instead of "is a" , refactor your code to be "has a"
BlaiseEbuth: ^this
Maxim251: Yes, that I mean, change it on run time, but keeping all data.
Wontonimo: instead of your code "is a drunk archor", it "has" a list of effects
Wontonimo: have a separate class called "effect"
Wontonimo: one instance is 'drunk', or 'on fire'
Wontonimo: and your hero has a list of effects
Wontonimo: during your game loop, also iterate through all the effects of each entity
Maxim251: and then at run time, how I can change behavior on run time?
Wontonimo: each effect should keep track of such things as how long it should last
Wontonimo: i think i just explained how
Wontonimo: a bottle of vodka would create an instance of the 'drunk' effect and append it to the list of effects of the entity that drank it
Maxim251: then updating hero, I should also update that list?
Wontonimo: yeah. the 'drunk' effect could have a time or turn expiration
Wontonimo: it's important that the code for the effect is in the effect class and not in the entity class
jacek: your game loop logic would iterate over effects and apply things to the hero
Maxim251: Because I am on Code Royal. The input is desighned that first I get empty fields for building structure. And I use base class of BUILDING, and create instance of EMPTY_FIELD to assighn this behavior. Then at the another for loop, I have game where ID of the field is given, indicating if I can build something on that place. If I decide to build something there, then I wand change behavior from EMPTY_FIELD, to BARRACK_ARCHER
Maxim251: I want keep all data from base class like Id, x, y, Position, size, but also the new behavior of BARRACK
Maxim251: Another idea what is coming on my mind, is make copy of all data, then assign new behavior and transfer back all data... But in My opinion, this don't have sense...
Uljahn: guess it's easier to keep different types of entities like sites, buildings, units separated
BlaiseEbuth: Muahaha! https://imgur.com/a/1ORFBSH :rofl:
eulerscheZahl: so Thibaud is new? welcome Thibaud!
eulerscheZahl: i only noticed that I had some old chat (private message) showing when I opened a new tab. then in another new tab I kept chatting more in that private message. That resulted in one of the older messages getting grouped
eulerscheZahl: so eulerscheZahl (time): message eulerscheZahl (time2): message2
eulerscheZahl: became eulerscheZahl (time): message message2
Maxim251: http://chat.codingame.com/pastebin/19bc1cf3-8674-44ec-af94-3ba6051eaa50
Maxim251: Then I try change behavior Site[count] = new BARRACK_KNIGHT;
Wontonimo: that is so weird BlaiseEbuth ... what the heck?!?!
Maxim251: http://chat.codingame.com/pastebin/e057367c-361d-4df4-b13c-070cf6d0f98d
BlaiseEbuth: Wontonimo I really thought you were joking with tibo at start ^^
eulerscheZahl: one day CG had a funny bug where it showed the same profile pic for every user
Wontonimo: the private messages really seemed like an ethical test tbh. stuff like "send me the code" and such
Wontonimo: if I was into conspiracies, I'd say this all was very suspicious. but i'm not, so instead I'll say "what a funny coincidence"
BlaiseEbuth: I fail such ethical tests... I alaways kill the guy. Not really ethic.
Wontonimo: if your country is at war with the other country and you've been told to or you are "defending" yourself then somehow it becomes okay. Maybe you are just defending yourself from their attacks on your sovereignty.
Wontonimo: sounds like Tshirt "it's not Murder, I'm defending the sovereignty and tranquility of my mental well being"
JHowell: Where can we find the puzzle of the week? My notification went away when I clicked on another notification X, and now I can't find it.
MeBen: Somehow I got promoted to Wood 1 from Wood 2 without changing anything
jacek: where
JHowell: I've gotten promoted a couple times without changing my code and coming back after a couple weeks. Sometimes there's more weaker players and so you win more games and get a higher score.
MeBen: Still don't quite know how those League games work
jacek: you should be higher than boss in leaderboard and youll get promoted automatically
jacek: boss was so weak a random bot could beat it
JHowell: Ooh, is Space Shooter new? I think I remember seeing it recently in Contributions.
MeBen: Seems like it. It gave me some new features when I reached the new League, like missiles and stuff. Apparently they're not needed.
jacek: some games have new rules in higher leagues
Hydrazer: https://www.codingame.com/clashofcode/clash/19429083e5950cbf374806433cbb02f1f5b7fc3 only even ascii sum languages lol
Westicles: is that a new thing?
Westicles: or a private clash thing?
samtheman_: can someone help me wih the second bot level I just started and am really confused
Westicles: CSB? I know a guy
BrunoFelthes: What is the meaning of the coding game icon?
KalamariKing: so many questions all at once
KalamariKing: BrunoFelthes it could just be a cool logo
KalamariKing: samtheman_ for what bot battle
Westicles: okay, well now I also want to know what the logo signifies
BlaiseEbuth: There was an explanation on dsicord months ago... Search the logs
Westicles: That's okay, I'll just assume it is a little leaning bot man
Westicles: With no arms or neck and wearing a dress
BlaiseEbuth: :upside_down:
BlaiseEbuth: Found it. Here's the explanation https://youtu.be/vY6IfT_pZFk?t=31
eulerscheZahl: welcome back BrunoFelthes. haven't seen you in ages
BlaiseEbuth: Just the last 'e' of "CodinGame" that ejaculate.
jacek: oO
BlaiseEbuth: On a yellow post-it. :thinking: Probably a subliminal message to say that agile is intellectual masturbation.
eulerscheZahl: i know i'm bad at interpreting art. always hated that in school. but you are much worse
BlaiseEbuth: Hmm... You're right, perhaps the 'e' is spitting... :thinking:
BrunoFelthes: hi @eulerscheZahl, I'm more active at the challenge time
eulerscheZahl: most of us are
eulerscheZahl: i wonder if the fall challenge will be what we are hoping for
BlaiseEbuth: 5% talking
jacek: escape thing?
eulerscheZahl: that's exactly what i'm not hoping for
BrunoFelthes: What are you hoping for?
eulerscheZahl: there is the new toy of CG: https://escape.codingame.com/games
eulerscheZahl: and this forum post: https://www.codingame.com/forum/t/solo-contests/1114/3
Astrobytes: I am less than confident.
eulerscheZahl: and the statement "we don't know if it will be a multiplayer game yet" (quoted from memory) which was told 1-2 months ago
jacek: have more hope. maybe it would be long clash
BlaiseEbuth: Do not trust to hope. It has forsaken these lands.
Astrobytes: Plus the omission of contest type on the contest page.
BrunoFelthes: But, what is a solo game, if it is not an optmization problem?
eulerscheZahl: an escape room
BrunoFelthes: meh....
jacek: escape from CG
eulerscheZahl: https://www.youtube.com/watch?v=LivwEyf_q8I (haven't watched before, probably contains spoilers)
Astrobytes: That's what many will do I fear.
BlaiseEbuth: "You're a 5% guy, CG fucked up. You have to... Escape from CG"
BrunoFelthes: it should not be at the CG challenge schedule, they could do it beside the challenge
eulerscheZahl: you sound reasonable
eulerscheZahl: fix it
Astrobytes: BrunoFelthes: It's not about it being at the same time - it's going to be a replacement for the usual contests (whatever it is)
eulerscheZahl: in the end CG wants to make money to pay the bills. they have this new format and want to promote it. having such a contest sounds like a good way to do so (advocatus diaboli speaking)
Astrobytes: Sure. It's sensible in some way, somewhat alienating in another.
BlaiseEbuth: I never hired you eulerscheZahl...
Astrobytes: :P
BrunoFelthes: the hiring tool is not profitable?
BlaiseEbuth: Hiring contest!
Astrobytes: It is, and they're growing it
eulerscheZahl: just offering team building events on top of the hiring
Astrobytes: But the escape room idea is going to be what they push to companies for teambuilding/hackathons instead of the usual contest format
eulerscheZahl: in the past they organized private clash of code rounds and some variation of old contest games
BrunoFelthes: very sad...
eulerscheZahl: they won't continue with the old contests (i don't know the reason)
Astrobytes: We shall wait and see what transpires.
BlaiseEbuth: You?
eulerscheZahl: 3 months and we know more
BrunoFelthes: Maybe we will need to go to kaggle?
Astrobytes: Eugh.
Astrobytes: If there is no real contest, there is no RAIC either, I will wilt and die.
BrunoFelthes: @eulerscheZahl are you the toad brigade at the lux competition?
jacek: i never tried other hackaton things. CG so far is the best, why it promotes crap like clash or escape :c
BrunoFelthes: agree @jacek
eulerscheZahl: i don't play Lux AI
jrke: is there any chance of community contest in future like OOC?
eulerscheZahl: very unlikely
Astrobytes: That's it in a nutshell jacek. CG is the best out of them all.
eulerscheZahl: they even consider OoC as a mistake
jrke: why?
Astrobytes: Ah yeah, forgot about that.
jacek: yes, it was mistake it wasnt :notebook: :soccer:
eulerscheZahl: and turned down TryAngle Catch despite being almost ready
Astrobytes: TAking contestants away from the Spring Challenge
eulerscheZahl: "canibalizing their 2 major contests"
Astrobytes: What was the one after OOC anyway?
jrke: SC20 i think
Astrobytes: I know THAT :D
jrke: the pacman
Astrobytes: I mean what was the game :D
jacek: starcraft 2020?
Astrobytes: Oh, that.
jrke: what was the reason behind starting community contest?
jrke: when they did first time?
BlaiseEbuth: Don't have to create contest themselves...
eulerscheZahl: but then it turned out that mentioning users with mediocre Java experience takes even more time than doing it on your own
eulerscheZahl: plus some discussion about the rules, keeping complexity somewhat low for the "easy to enter" part
jacek: onitama is easy, so it all checks out
500plus: is it possible to order tasks from easiest to hardest. I have just begun and obtained a task with LOOP with SORTING which is advanced I think
jacek: clashes are random
500plus: so I shouldnt have chosen Algorythims for a start?
BlaiseEbuth: That's puzzle
jacek: try easy puzzles. they are predictable
500plus: I took Horce-racing Duals as a first task
BlaiseEbuth: sorting is not really advanced
jacek: welp the point of pony racing is sorting. some language have built-in sorting functions
500plus: I am in Classic puzze categgory - Easy. How to know the task is easy by its name
BlaiseEbuth: Difficulty is a personnal feeling... The puzzle categories are just indicative
jacek: most of them are easy. but "easy" is different for every individual
500plus: Jacek so I am allowed to use for example Array.Sort ?
jacek: yes
500plus: oh thats more simple then
jacek: graph things sound 'hard' but im used to graphs. string manipulation is 'easy' but i havent done much in this field, so its harder for me
Allison: Easy puzzles being predictable makes me feel dumb af. :( I can't figure out the stupid Enigma machine one.....
eulerscheZahl: some are just no fun to solve. it's perfectly fine to skip them and try a more interesting one
500plus: do you think this games will improve your skills in general or only the specific once ?
Astrobytes: Depends if you learn something from it or not
Astrobytes: (something new)
500plus: solving can be cosidered as learning right ?
Westicles: I still have to google how to read in space separated input in c++, after hundreds of times
Astrobytes: Otherwise, can be helpful to get used to using some techniques
Astrobytes: lol Westicles, not unusual :D
jacek: game consists of simulation and appriopate algorithm to use it
BlaiseEbuth: std::cin >> Westicles;
jrke: happens Westicles like i have one thing that i always forgot - 'reading and writting JSON in python' i have added bookmark for that sol so i always look at it
jacek: echo BlaiseEbuth > /dev/null
BlaiseEbuth: deluser jacek
BlaiseEbuth: rm -rf /hom/jacek
BlaiseEbuth: Oh. Folder autocompletion doesn't work on the chat. :thinking:
eulerscheZahl: /hom?
BlaiseEbuth: As I said
jacek: nyoro~n
eulerscheZahl: "home is too much to type, i'll better just write hom and then tab to save a total of 0 key hits"
Astrobytes: :D
eulerscheZahl: i do those all the time :D
jacek: like using up up up up arrow until you hit rm
jacek: instead of just typing rm
Illedan: Always up arrow
jrke: euler looking at your module i saw that you replace normal viewer with your div right? can we not directly add content to pre defined viewer?
jrke: like viewer.appendChild()
eulerscheZahl: might work as well, wasn't sure. wanted to kill the pixi canvas as it still costs CGU resources
Astrobytes: CGU?
AllYourTrees: codingame university
jacek: oO
Astrobytes: Costly Graphical Units
eulerscheZahl: GPU :/
eulerscheZahl: was in a hurry, hungry cat
BlaiseEbuth: Cat Get Ungry
Astrobytes: Mine are asleep thankfully. They were very 'lively' earlier.
Astrobytes: lol BlaiseEbuth
jacek: :3
BlaiseEbuth: Mine is 'lively' outside.
eulerscheZahl: mouse in my room :o
jacek: oO
eulerscheZahl: stealing peanuts
Astrobytes: Well, the cat is hungry . . .
eulerscheZahl: entered through the open window
BlaiseEbuth: Take back the cat plate!
eulerscheZahl: i'll try to get her
Astrobytes: catch the mouse
Astrobytes: And film it please :P
jrke: try-cat catch
Astrobytes: try-strangle mouse
jrke: lol
BlaiseEbuth: Escape the toad
Astrobytes: :D
Westicles: that reminds me, need to watch that numberphile video to solve that stupid puzzle
jacek: welp https://arstechnica.com/science/2021/08/in-australia-cane-toads-turn-to-cannibalism/
Astrobytes: lol, I saw that before jacek
Astrobytes: Westicles: which puzzle?
Westicles: https://www.codingame.com/training/medium/escaping-the-cat
Astrobytes: Oh that one
BlaiseEbuth: Numberphile is about people that rape innocent numbers?
Astrobytes: Oh ffs
jacek: keep the channel PG-13
BlaiseEbuth: Porn Gay?
jacek: as expected from former mod
BlaiseEbuth: Pasta gorgonzola... I'm starving
Astrobytes: Meh. Not fussed on Gorgonzola.
jacek: omelette du fromage
Westicles: I'd starve in france these days
BlaiseEbuth: Why?
Westicles: Er, that cafe law thing
jacek: :thinking:
Astrobytes: pass sanitaire
BlaiseEbuth: Oh. You're not vaccinated?
jacek: Oo
Westicles: jk, I'm on my 3rd booster now. Nothing to see here
Astrobytes: I can't wait for my second one, I'll be able to stick to aircraft and communicate with Bill Gates over 5G! And get autism! And and and, it's just too exciting :D
eulerscheZahl: so, now i have a cat watching out of the window and a mouse hiding under a cupboard
Astrobytes: :D
Astrobytes: Damn cats. Same as my two.
BlaiseEbuth: Critical failure
Westicles: Astrobytes, spike proteins in your ovaries I believe
eulerscheZahl: should have just ignored it. the mouse comes inside, eats 1 or 2 peanuts and then leaves again every night
eulerscheZahl: i'll just try to build a ladder up to the window and hope for the best
Astrobytes: Westicles: I'm not fully convinced on the accumulation thing there. Also the brain they are concerned about. Not much substantial evidence so far tbh.
Astrobytes: Why would the spike proteins be any different from any other proteins in the body?
Astrobytes: They'll be gobbled up by the appropriate mechanisms, as all proteins are, whether native or not
Astrobytes: *covid spike proteins
Westicles: I don't know. They keep putting up videos on papers about it, but they all get banned
Westicles: Over here everything is banned that isn't 100% pro
Astrobytes: That's because an awful lot of it is total bullcrap :D Valid concerns shouldn't be banned, just addressed in the correct manner.
Westicles: That japanese paper tracking where it goes in your body vs. time seemed legit
500plus: 'A contribution by Bob' Loop task I dont even get the What to do in this Task
Mohammed_Galal: hello Asrobytes
Astrobytes: It doesn't particularly matter where it goes elsewhere in your body, it'll be consumed.
Astrobytes: Mostly accumulates in lymph nodes around the injection site iirc
Astrobytes: Hello Mohammed_Galal
Westicles: It was all bone marrow and ovaries
Astrobytes: I saw one where they traced to the brain as well. I still see no cause for concern.
Westicles: Not for me :P
Astrobytes: Also, you realise bone marrow is where white blood cells are actually produced right?
Westicles: Well, the guys in the video seem concerned. It was that 'discoverer of mRNA' guy who gets in trouble everywhere
Westicles: Anyhow, killing the chat...
Astrobytes: I didn't see any evidence for neutropenia as a result of vax so I wouldn't worry about the bone marrow thing
Astrobytes: Discoverer of mRNA?
Astrobytes: First observer or Crick et al?
Astrobytes: But yeah, killing chat. Apologies all
Mohammed_Galal: I'm backing often everyday to play new clashes
Mohammed_Galal: Thanks God I'm improving in PHP
Mohammed_Galal: ^_^
Mohammed_Galal: btw how can I mention someone
Astrobytes: Mohammed_Galal just type the username and it will appear red for the user you mentioned
Mohammed_Galal: Astrobytes
Astrobytes: Mohammed_Galal
Astrobytes: :)
BlaiseEbuth: Staline
Allison: Anyone have any suggestions for River II? Currently running into issues due to processing time and not sure how exactly to fix it. ;- ;
Wontonimo: how are you doing it Allison ?
Allison: http://chat.codingame.com/pastebin/27f985c6-c82d-4480-a64f-310f91fde035
Allison: Might as well have just pasted my code at that point. xD
Wontonimo: paste your pseudo code in a private chat please
Astrobytes: I think that's ok tbh
Astrobytes: (what Allison pasted)
Allison: It doesn't like going up to 90,000 or 89,696. :(
Allison: Oh crap, I closed the private chat, Wontonimo. :O
Astrobytes: just message him again
BlaiseEbuth: /spamattack Wontonimo
Allison: He messaged me again, so it came back.
Astrobytes: :)
BlaiseEbuth: (╯°□°)╯︵ :upside_down:
Wontonimo: "I get knocked down, but i get up again. You ain't never gonna keep me down..."
Astrobytes: Ohhh Danny boy, Danny boy
Westicles: Speaking of Daniel, did Swyfti get banned?
Astrobytes: Kicked a few times, didn't see him get banned, I've nto been around a lot though
Astrobytes: *not
BlaiseEbuth: swifty?...
varolbora5: Hi everyone, I'm new here, how are ya'll doing??
Wontonimo: we are all doing well. all of us.
Demurator: im terrible i want to die all the time
Demurator: not all of us
Demurator: yes
Westicles: If you die, who will rub your grandma's bunions?
LittleFlea: wanting to die is the proof that you have the gift of life.what you do with your gift is being here with us right now.
LittleFlea: also.hello to everyone.
LittleFlea: Wontonimo, are you familiar with the difibrillator puzzle
RoyGerman: How good is this website for getting job interviews ?
RoyGerman: Does companies recruit coders from this website ?
LittleFlea: supposed to.
Wontonimo: :wave:
LittleFlea: :ghost:
MutantGene: i dont have school yet
Wontonimo: this is school
Allison: School is a place of learning. If you're in a place where you're actively learning something, you're in a type of school. :>
JoeyBalardeta: :grinning:
Justin-Truong: Yes this is school cause I'm 13
Justin-Truong: I can learn code from this web easier than learn from school
**borrel learned to code from wikipedia
**borrel goos to scool to learn to code
**borrel gets send back to wikipedia
Wontonimo: sounds about right
Justin-Truong: ok
Justin-Truong: How to learn code from wikipedia
ProCoder03: For the puzzle of week quest, is it enough to just try it ??
ProCoder03: I just tried doing it and my quest got unlocked
Justin-Truong: What do you mean the algorithms
Justin-Truong: yeah Just rank up in the puzzle of the week
ProCoder03: can we use any no of strikes for Power of Thor episode 2 ??
Justin-Truong: How possible
ProCoder03: ???
Justin-Truong: How can use no strikes to win in power of thor
ProCoder03: any number*
Justin-Truong: Typing mistake sorry
Justin-Truong: Is there anyone free
Justin-Truong: Could you guy play coding escape with me
Husoski: ProCoder03 The input tells you how many strikes you get to make. There's only one strike per move, if that's what you were asking. One is fatal to all giants in range, so multiple strikes per move doesn't make sense.