caubeloatchoat24: https://www.hackerrank.com/challenges/new-year-chaos/problem Can anyone give me some hint <3
LelouchVC2: Yea, don't do it
eulerscheZahl: just thinking out loudly on hackerrank: i would sequentially scan the queue and see if someone is at a "better" position in the line
eulerscheZahl: that can only be done by bribing
eulerscheZahl: then adjust the initial order to reflect this, increment the bribe counter
eulerscheZahl: repeat until end of queue
LelouchVC2: This site makes me sad by the day
LelouchVC2: I ran my code, it didnt pass a test
LelouchVC2: I ran it again, it passed the test
eulerscheZahl: i liked the world code sprints on hackerrank, sadly they stopped holding public contests :(
LelouchVC2: People come on cplusplus.com often with problems from some competitions, easy to get tired of them
caubeloatchoat24: I do, but in case 2 ones  ,  is a a "lower" position in the line, and  stands behind  that means  bribes . But in case a lot of people "lower" bribes, i dont know how to solve. P/s: much solve by O(N) :((
caubeloatchoat24: *must sr :D
caubeloatchoat24: u can switch to codeforces or topcoder by clashing with "true pro coder" :>
eulerscheZahl: do you imply that CG users are no good coders here?
LelouchVC2: I'm not saying black people are black
LelouchVC2: But I'm saying that white people aint black
jacek: tomatoes is on fire i see
struct: Still using MCTS tomatoes?
tomatoes: im not sure if it still mcts
struct: Are you still working on othello jacek?
jacek: i put it on hold
jacek: until someone surpases me, then ill rage and upload stronger bot
struct: you have opening book?
struct: You might not be outputing anything
struct: or have an infinite loop
Piptrosia: this can't be right
VinhDaDen: Galindo Jonathan Hahahaha
python_programerPP: VinhDaDen stfu m8, dont low level bully
ameybhavsar24: How to know if a account if bot on Clash?
jacek: it should say so in their profile
PkZ: Is there a keybind to see information / see other functions? for example seeing Substring information / different variations?
tomatoes: try ctrl-space
PkZ: yeah ctrl-space gives information and ctrl-shift-space gives the overloads
PkZ: didnt know what overloads were properly called
WINWINWIN: python_programerPP please dont reject puzzles for no good reason...
Champi67: Hello there ! I have a little problem with my code : I have a two dimensionnal array, which I read in a for (). When it try to read array[i], I have a "cannot read property 0 of undefined", but a console.error(array[i]) show me the correct value... Anybody has an idea? Thanks in advance :)
WINWINWIN: Sometimes this happens if the value does not exist within the function Champi67
WINWINWIN: Someone else had the exact same error as you and this was the advice given to him.
Champi67: Hm, so I should try to add a function that takes the array as a parameter?
WINWINWIN: I think that should work.
Champi67: Well, it doesn't :(
struct: very strange
Champi67: console.error(j) : 0 console.error(array) : 1 console.error(array[j]) : undefined
jacek: whats the code
Champi67: but array[j] works fine...
jacek: error links[j] but links[j] in if?
Champi67: Yes it was a try
Champi67: I may have found a solution, but it's really... Special
Champi67: Oh, okay so it seems that it was just in the condition, which is ||, that should be &&
Nerchio: if you can't do a rollout until the end of the game in MCTS do you just limit it by max depth?
jacek: rollouts as in random playout?
Nerchio: i think so jacek, learning MCTS :D
Nerchio: i mean i dont see a point of playing random moves for lets say 40 turns in advance its just waste of computation
BeardedWhale: If you cannot do a full rollout, you need to have some evaluation function that guesses a winner instead.
Nerchio: assuming it's like 1 branch out of 500000 :D
struct: Nerchio in some game its hard to eval the state
jacek: playout is done until end of game to see the outcome. in EPT (early playout termination) you do playout to some max depth but you need eval
struct: example uttt
Nerchio: yeah i avoid in uttt i dont want to code in c++ :D
Nerchio: i want to learn on bandas probably already wrote min max for it but want to try mcts
BeardedWhale: If you have a good evaluation function, it will work better than random playout.
Nerchio: and i can count pawns on the board so evaluating is possible
jacek: then it might work
Nerchio: in games without possible evaluation with gigantic trees yeah its big trouble i guess :p
Zone_Infinity: anyone there?
Zone_Infinity: pl help
Zone_Infinity: pls hekp
Zone_Infinity: pls help
Zone_Infinity: (╯°□°）╯︵ ┻━┻
tomatoes: but its nice to see how dumb random solves the task
Washier: trictrac, been watching you submit on Othello. Beat you once in about 100 games so far - fluke. Go go go!
trictrac: Hard to beat jacek now and tomatoes and Lerenard have improved too
trictrac: and dbdr is out of game
Washier: yes, top 5 bots are way ahead. i've been cleared off the board by all of them (0 score for me)
tomatoes: i tried to fight locally vs edax-reversi, and even with <10ms limit it totally annihilate me
trictrac: but with no memory limit
darkhorse64: It has a 7 Mo data file to help for eval
struct: not a fair fight tomatoes
eulerscheZahl: astrobytes: you beat me on it (discord)
Astrobytes: haha :D
struct: Solve this one https://www.codingame.com/training/expert/space-maze
Astrobytes: Have your raycasting NN at the ready
Astrobytes: "evan shat on the floor..." lol, too true. I remember exams like that
Astrobytes: I couldn't find that one eulerscheZahl
Hjax: it took many tric submits, but i got a draw against him
Hjax: feels good man
eulerscheZahl: searching for 1100 did the trick for me. i had something like that in my mind but the wording was slightly different to his
eulerscheZahl: so you are the reason why my herokuapp loaded instantly when i tried?
Astrobytes: lol, no
Astrobytes: Just lucky for you I guess!
eulerscheZahl: hmm it shuts down after 30min of inactivity. that means someone else was using it
Astrobytes: Well, lots of people have the link now
struct: I use it sometimes
eulerscheZahl: use integers
struct: % is returning 5.9999999?
struct: What language is this?
eulerscheZahl: what type is x?
eulerscheZahl: x%1? what's that good for?
struct: You are doing it wrong
eulerscheZahl: use floor()
struct: use toFixed(size)
eulerscheZahl: the modulo will give you inaccuracies due to double precision. never compare double with ==, add some error margin instead
eulerscheZahl: or use integers then. you don't need floating points for ANEO
eulerscheZahl: you can multiply by 36 and the other side by 10 ;)
eulerscheZahl: i also got used to the . instead of , (which would be the default in Germany too)
struct: (╯°□°）╯︵ ┻━┻
Astrobytes: ┬──┬◡ﾉ(° -°ﾉ)
struct: At least I think im learning some stuff with these modules things
eulerscheZahl: but i have no answers. i dislike that puzzle
struct: Well its the point of the puzzle
struct: to not stop
jacek: math, not even once
Astrobytes: Hey inoryy, are you not out spreading COVID, I mean celebrating end of lockdown in the pub? :P
Astrobytes: And yes, maths.
inoryy: hey Astrobytes, you know I was planning to but then had to cancel last minute
Astrobytes: What a shame eh
jacek: good for you
eulerscheZahl: i'm using C# for almost 10 years and that the first time I hear about MathF
eulerscheZahl: seems to be a Unity library function
AhmedMasry: I can't solve thor
- heart: :joy: :joy: (CSB bots)
Zenoscave: moin eulerscheZahl
Astrobytes: pewpewpew, bit late for euler now I think
jacek: why so low
Astrobytes: broken version
Astrobytes: trying some things
LelouchVC2: you'll buy my feet picsZ?
Schmaenajel: Dude I have opened this chat for the first time, and the first thing I read is "I buy feet pics" - I love the internet
Astrobytes: It's not a game making site
Astrobytes: It's not always like that Schmaenajel
Astrobytes: Who said there was?
Astrobytes: Implying he might be better off asking elsewhere, such as discord, as you suggested
Astrobytes: Lots of people mistake CG for a game coding website cause of the name I guess
Schwase: idk astro, last night some dude came in here who was doing the whole "reverse racism is a thing and conservatives are oppressed" and that went on for a while. i feel like some people just troll when they see the window of opportunity
Astrobytes: Yes. Very amusing.
Astrobytes: No shit
LelouchVC2: I was trolling you because you made it easy
LelouchVC2: Right and left wings are both important and equally gay
Astrobytes: You're open like a book bruh, try harder :D
LelouchVC2: Black people are humans, and human lives don't matter other than to humans
LelouchVC2: Now give me a dildo and call me daddy
Astrobytes: Do you seriously not have anything better to do with your time?
LelouchVC2: idk what r/woosh is
LelouchVC2: i only know that sub reddits begin with r/
LelouchVC2: lmao, i didnt notice
LelouchVC2: I'm not home, hot as hell where i am
LelouchVC2: Hard to think when ur brain is melting
LelouchVC2: i see ;o
LelouchVC2: I was doing a clash while sweating so it went over my head xD
LelouchVC2: I send you love DarkDev
Schmaenajel: i am new
Schmaenajel: whats dat
Schmaenajel: NO MORE
Schmaenajel: You cant be that new DarkDev
LelouchVC2: * LelouchVC2 epicly slaps DarkDev around a bit with a large fishbot
LelouchVC2: And dont forget to like, subscribe, and share this video