eulerscheZahl: patience. there are > 100 waiting for moderation at the moment
eulerscheZahl: and it's not first come first serve. the interesting and simple ones will be moderated first
eulerscheZahl: my contrib is waiting for 4 weeks already
Noo8: Hi guys! How long have you been coding?
proogrmr: me beginner
jrke: hover over clash page
jrke: or goto - compete->leaderboard->clash
eulerscheZahl: win clashes
eulerscheZahl: or try out the other leaderboards like https://www.codingame.com/leaderboards/bot_programming/global
eulerscheZahl: to climb there, you have to play those games: https://www.codingame.com/multiplayer/bot-programming
jacek: click submit
jacek: good. you solved the puzzle
jacek: try other one or multiplayer game bot
jacek: once a day
VizGhar: What data structure u used for memoization in RollerCoaster puzzle whensolving it with clojure? I've used hash-map, it works, but it's still slow
VizGhar: because assoc function simply copies whole map
eulerscheZahl: transient(vec (for [i (range groups) ] 0
eulerscheZahl: is that my data structure?
eulerscheZahl: i can't read that anymore
VizGhar: :D not sure... vec is vector i believe, so probably yes
eulerscheZahl: surely wasn't the easiest quest to complete
VizGhar: And you have seen a lot
eulerscheZahl: had some help from Zenoscave here on chat as my first approach was too slow as well
VizGhar: I have to complete clojure achievement while I have vague idea how to use it
eulerscheZahl: i missed that moment
eulerscheZahl: now i'm at 0 again
eulerscheZahl: so i have to create more contributions like 2048 where the default code gives you 100% correctness
VizGhar: :grinning: I'll help don't worry
VizGhar: thinking about this one: http://entanglement.gopherwoodstudios.com/en-US-index.html
eulerscheZahl: you can cheese your way to about 50% of the quest
eulerscheZahl: oh, that looks cool
VizGhar: great candidate for optim
VizGhar: but u know... ainobody got time for this
VizGhar: omg, I've solved 6 hard puzzles in 2 days and cannot solve that clojure thing... frustrating
eulerscheZahl: no time, true... blockout is sitting there for 4 weeks already
eulerscheZahl: contrib page is too cluttered
VizGhar: I'll check it next week most probably... how many times u can re-send puzzle?
Q12: should be less CoC type contributions
eulerscheZahl: until 3 users refuse it
eulerscheZahl: space maze needed 4 attempts iirc
mzbear: blockout seemed far too complicated to even try, tbh
mzbear: also, i'm offended that blockout's rotation pivot is at the corner and not at the center ;)
eulerscheZahl: yeah, probably the problem for many. same reason as for space maze which was pending for ages
mzbear: also, the pivot moves when you pan the model, which is annoying
eulerscheZahl: three.js orbit controller
eulerscheZahl: not my invention
mzbear: well, it really needs a button to reset the camera, and the camera should be initially pointing towards center of the play area
mzbear: it's way too easy to mess up the camera in a way that's impossible to recover from
eulerscheZahl: hm, i'll see what I can do
eulerscheZahl: first time that i'm working with that library
mzbear: capping the minimum/maximum distance might make sense too, to make sure the camera is always in a sane state
mzbear: the reset isn't really needed if you can't mess up the camera, after all
jacek: good morning
VizGhar: eulerscheZahl in that clojure thingy u used volatile/atoms a lot? Looks like keyword def for re-setting variable is slow too (allocating space in memory each time)
VizGhar: I've used array for memoization and the solution is still slow o.O
jacek: AutomatonNN do you use closure
AutomatonNN: keep the one coming out of the contest
eulerscheZahl: i have no idea what I did
eulerscheZahl: solve on 9th of september 2017
VizGhar: :D ok thanks... AutomatonNN you are talking to me? didn't wuite got you
AutomatonNN: what do you mean by the same as a fire?
mzbear: AutomatonNN what's the meaning of life?
AutomatonNN: why no same thing then?
jacek: you get XP for any quest
VizGhar: no XP, just rank :)
VizGhar: if you want to level up, solve some puzzles 50p for each one
jacek: or reach legend in multiplayer games
eulerscheZahl: wood to legend is close to 1000XP, give it a chance
eulerscheZahl: for easy points: coders strike back, tron
eulerscheZahl: for fun while playing: something else
VizGhar: I did it... forsaken clojure :D
VizGhar: note to myself - never use def with clojure
VizGhar: tnx zhoubou
mzbear: never say never
VizGhar: do not count on CG IDE :
VizGhar: you can replace him by any player in ladderboard
Westicles: They should rename #fr the 24-hour westicles discussion channel
Westicles: Really quite flattering :)
XIlayPVPX: yo guys, so I'm doing the "Horse-racing Duals" puzzle, I for some reason made a for loop inside a for loop, and that reuslts in me failing the third stage in which the game throws 100k values at you to check if the code was efficient. Is there a more simple way to do it without 2 for loops?
jacek: 1 and log
Stilgart: XIlayPVPX: what you need to know is that an array can be sorted more efficiently than with a loop inside a loop
Stilgart: your language provides an efficient sort function, which is the key to solve this not so easy puzzle
jacek: puzzle is easy, with a twist
Stilgart: jacek: guessing that one can sort an array more efficiently than quadratic time is far from easy
Stilgart: gg XIlayPVPX
jacek: just use language's sort
Stilgart: why should I, when I do not know that my bubble sort is suboptimal
Stilgart: (common beginner mistake)
jacek: why even try to write own sorting :v
Stilgart: because it is a good exercice for loop nests
Westicles: We don't want the wrong sort around here
Stilgart: (and people will say in the forum that I do not care about newomers :( )
MSmits: are these newcomers who are women?
MSmits: are they accusing you of sexism?
Stilgart: MSmith: should be, but does it matter ?
MSmits: no idea, I'm just randomly chiming in
MSmits: jacek missed it, so i felt i had to
jacek: oh, i really missed it
MSmits: jacek, be a better troll plz
jacek: im getting old
Stilgart: (now i feel like the only one missing it... :( )
MSmits: you spelled newcomers wrong :P
Astrobytes: Stilgart: "newomers"
jacek: or did he?
jacek: stupid 2048. i cant get the learning to work at all o.O
Stilgart: are you trying a NN for 2048 ?
Astrobytes: How many? There are a lot of possibilities no?
jacek: i made this before for multiplayer games. but this time there is intermediate reward and the papers dont mention any activators like tanh
jacek: for starters i used the one from the paper
jacek: but it doesnt learn at all. must be bugged somewhat
Westicles: I always meant to try the reverse solution for 2048. The board is full in a certain way before you get the 131k tile, so run it backwards until it intersects your search.
Westicles: One of the russians tried it but no luck apparently
darkhorse64: I looked at the n-tuples thing for 2048 but a 4-tuple is 18**4 weights and I wonder if it really makes sense to use smaller tuples. So I just went back to beamsearch and snake pattern. I got 22M but when I get deeper, I score less. How many nodes do you explore in 50 ms ?
darkhorse64: clashes are randomly chosen, I believe
eulerscheZahl: const int searchDepth = 120;
const int beamWidth = 60;
eulerscheZahl: that's enough for 54M points for me
Westicles: darkhorse64, I just do a brute force 7 deep with offline search through the tough patches
darkhorse64: There must be something wrong with my eval (a vanilla weighted sum) because the deeper I get, the larger my beam. My weights are increasing powers of 2 in a snake pattern
eulerscheZahl: most of us use an offline IDE anyways
eulerscheZahl: so i don't have an opinion on the popups
eulerscheZahl: and I can code in multiple files
eulerscheZahl: with a script to merge them
jacek: sometimes its annoying, but i mostly copy paste from my IDE and do minor modification in CG IDE
eulerscheZahl: : +1 : for less typing
darkhorse64: Except for puzzles, a powerful IDE is needed for bug hunting. However, CG editor is now really decent
eulerscheZahl: for clash and easy puzzle it's totally fine, true
eulerscheZahl: i might be biased as i mostly play multiplayers
eulerscheZahl: the debugger is the killer argument for me
darkhorse64: "VS debugger"
eulerscheZahl: no VS on linux :/
darkhorse64: VS debugger is the killer argument for windows :stuck_out_tongue_winking_eye:
eulerscheZahl: windows is the killer argument for windows sadly
eulerscheZahl: i'm much faster switching window focus and arranging the windows on my screen with i3
eulerscheZahl: and it's free
darkhorse64: i3 ?
eulerscheZahl: minimalistic user interface
darkhorse64: Nice. Yes, MS window manager is not that great. You too easily end up with lots of clutter. Anyway, I ru mainly Firefox (with dozens of open tabs) and VS
eulerscheZahl: on windows i'm always lost with 5-6 open windows explorers
eulerscheZahl: the default file browser on ubuntu supports tabs :P
struct: doesnt window support tabs?
jacek: then it would be called tabs not windows
darkhorse64: Explorer user experience has not really changed since the first ever windows. You weren't born
Astrobytes: lol jacek
MSmits: jacek has regained his focus
jacek: new moves in othello?
MSmits: 3 new moves
MSmits: thats all it takes with old john
MSmits: he books all the way to the end, at least vs me, so it's just the same line of play
MSmits: it's a dose of my own medicine really
MSmits: he's just not relentless enough about it
eulerscheZahl: well, there are extensions like clover: https://clover.en.uptodown.com/windows
eulerscheZahl: but i'm not sure if i want to explain the installation to my company in case someone finds out
Astrobytes: just use linux at work, have a windows desktop image fullscreen in another workspace and switch to it when needed :P
eulerscheZahl: i'm writing windows desktop applications and plugins for other windows software
jacek: or use https://fakeupdate.net/ on fullscreen and do your business
eulerscheZahl: classic, I know that site
Astrobytes: Yeah yeah, I know. It's a fun idea though.
Westicles: I had all my personal code on work PC when they started tracking USB activity. I get an email asking why I just offloaded 107k c++ files
MSmits: 107k !!!
MSmits: do you put every function in a new file or something?
eulerscheZahl: tell them because you didn't want to type it again
eulerscheZahl: sounds like your company is logging a lot
eulerscheZahl: not even sure if it would be legal here
Westicles: Hmm, well I guess some were txt files. They had such nice backups running, I couldn't resist the free service
MSmits: what did they say when you said it was personal files?
eulerscheZahl: first of all: did he admit that?
Westicles: Yeah, I said they were personal. They just asked my boss if he was okay with it. Sent him excel with all the file names, kind of embarrasing actually
MSmits: you IT department is evil
jacek: youd send them your files' names?
jacek: shame on you
Westicles: They were all like scrabble.cpp, scrabble1a.cpp, etc etc
MSmits: mmh better than my file names
MSmits: muahahahanr1, cpp
MSmits: wouldnt want to explain that to the boss :P
Astrobytes: wait til they saw your function names...
MSmits: they are worse, I agree
jacek: just use https://projects.haykranen.nl/java/
Astrobytes: He doesn't even need that. His brain does it automatically :P
MSmits: this is why it is good cg bots are generally small
MSmits: in a large project i would start to have huge function names
MSmits: I dislike commenting
jrke: MS D&B leaderboard is getting tough and tough
jacek: it still 2 ppl then...... then the others
jrke: my offline c++ compiler is mingw for c++ are pragmas syntax same as on CG
jacek: what are your pragmas
jacek: #pragma GCC optimize "Ofast,omit-frame-pointer,inline,unroll-loops"
- pragma GCC option("arch=native", "tune=native", "no-zero-upper")
- pragma GCC target("rdrnd", "popcnt", "avx", "bmi2")
jrke: happy new near gn
jacek: oh euler already asleep
**eulerscheZahl slaps jacek around a bit with a large fishbot
eulerscheZahl: can't sleep, got System.IndexOutOfRangeException
jacek: ouch AutomatonNN help me
AutomatonNN: aktroached is the complete game you will need to be wrong
jacek: sounds like nice game
IsaacSvi: howdy people
Kitkat260: how are you
IsaacSvi: doin good
IsaacSvi: gonna start a clash rn
Kitkat260: but ok
IsaacSvi: ok, n' back
IsaacSvi: when i'm tired, it's either coffee, push ups, or sleep xD
IsaacSvi: hi again lol
IsaacSvi: love this mix btw: https://www.youtube.com/watch?v=UTN2YKLNDFc
IsaacSvi: back lol
IsaacSvi: ok, going back to another one xD
jacek: is optim still bugged? i use 45ms and still get timeouts ocassionally
Astrobytes: for 50ms limit?
Astrobytes: People were going down to 30-35ms prior to the contest to avoid timeouts (at least in SR). Not sure if there's been an improvement tbh
eulerscheZahl: while playing coders of the realm I didn't notice any unexpected timeouts
Astrobytes: Optim though
eulerscheZahl: can it be that different?
eulerscheZahl: well, it's the CG website. so probably yes
Astrobytes: Different servers aren't they?
eulerscheZahl: optim has less different ones at least
eulerscheZahl: (never analyzed anything myself)
Astrobytes: been a while since I bothered looking tbh
ZarthaxX: hey guys
ZarthaxX: happy new year everyone in your countries :D
eulerscheZahl: you are early, still 2020 here
eulerscheZahl: but going to bed now, good night
ZarthaxX: i know but it's hard to time
ZarthaxX: bye bye toad :P
Toby75: A question to the Challenge "Goro Want Chocolate": Why is the answer to Test Case 2 the number 10? I calculated it by hand, and I also came to 16. Does someone know why it is 10?
Astrobytes: Toby75: I can't help you I'm afraid, I don't think I've solved that one
Toby75: https://pastebin.com/i1MkqtPN can you have a look at this one? Why is it wrong?
Astrobytes: ZarthaxXman that must be the best one so far :D
Astrobytes: Guys, don't ask me about puzzles right now. I'm drinking and merely moderating/chatting.
ZarthaxX: hehe :P
ZarthaxX: what time is it there astro
Astrobytes: just about 8pm Zartho
ZarthaxX: i will say happy new year later i guess hehe
ZarthaxX: wanted to say it to toad before he went bed
Astrobytes: Yeah, I tend to say it on the day, for timezone reasons ;)
Westicles: Hii TheAwardWinningSpongeInSpace_24c6
ProgrammerDog: Happy New year!
Astrobytes: steady on there brother, not yet
ZarthaxX: ban for lying
Astrobytes: /ban everything
Westicles: should we give e uler a new year's and approve blockout without actually solving?
Astrobytes: How many approvals has he got on it?
Westicles: Rockstar approved, then it disappeared. So none
laPetiteGrenouille: Hello ! someone knows how put 1.2, 1 and not 1.0 in Python
laPetiteGrenouille: happy new year =)
laPetiteGrenouille: for example if i seach the mass of a grid ;) ;)
Westicles: oh my!
laPetiteGrenouille: yeah i didn't understand it ^^
Astrobytes: without using strings laPetiteGrenouille
laPetiteGrenouille: and why ?
laPetiteGrenouille: how search in internet ?
BrainWart: idk. googled it earlier. string format python no decimal or something like that
laPetiteGrenouille: kk thx
Astrobytes: but you said without str in #fr
laPetiteGrenouille: yeah i wanted say like
laPetiteGrenouille: a = str(1.0) and rstrip ".0"
Westicles: I didn't think that center of mass puzzle would get approved, but the cranky physicists came out of the woodwork in favor
laPetiteGrenouille: yes grrrrrrrrrrrrrr
Westicles: Well, and also rockstar...
laPetiteGrenouille: the top classment ?
laPetiteGrenouille: they can do all in 1 min and without hand
laPetiteGrenouille: fcking them
Astrobytes: eftychisméno to néo étos GeorgeDzigo, just a bit early for me
Astrobytes: hey JBM, how's it going
Astrobytes: Onwards and... onwards right?
ILoveEveryone: HAPPY NEW YEARS!!!
Astrobytes: happy new years to you ILoveEveryone
Astrobytes: Haha, yeah gonna be the same here shortly
Westicles: There are no laws now. 2021 the years the aliens land
Astrobytes: They already did according to that ex Israeli space agency guy
ILoveEveryone: Well, after what we've seen in 2020, alien landing wouldn't be surprising.
Astrobytes: I think he was just trying to sell his book but I'd love to be proved wrong
Westicles: well, as long as it isn't the Blondie scenario. And he shoots you dead and he eats your head
Astrobytes: Frankly, I ain't bothered :D
Astrobytes: Anyway, I'm out for tonight. Enjoy your celebrations if you're having any, if not then gn :)
Skynse: wow, it's 2021
Skynse: This whole year was blank
Stilgart: three contests is not enough :(
Jrabovsky: if e.isnumeric():
divisor = int(e)
Jrabovsky: Would anyone know why divisor would give me the wrong value from a string?
Jrabovsky: It works for one example but not with the other?
Stilgart: python killed us all
Stilgart: Jrabovsky: you should give more details
Stilgart: what is "the correct value" ? what is e ?
Stilgart: why divisor while there is no division ?
Jrabovsky: the question was aN-b=c
Jrabovsky: solve for N
Jrabovsky: so I was trying to get 'a'
Stilgart: what do you have in input ?
ifobg: because len(a)>1