jacek: good morning
RitamChakraborty: is it worth learning deno?
alexandre.lavoie: Do you know node?
Bob: I think you need to clarify your question
Uljahn: there could be a more efficient way to solve this without the need of huge powers i guess
Uljahn: also python has memoization tool, see functools.lru_cache
LegendNeverDies: why in clash of code showing 20% even if I solved 100%?
LegendNeverDies: which means?
Astrobytes: Allison - did you submit your code?
Astrobytes: And did you beat the boss?
Astrobytes: You need to finish above the boss in the leaderboard before you can be promoted to the next league
Allis: I've only seen it happen once, but it's still messed up. I don't think a bot should crush it like this.
Allis: Do you think it constitutes a bug?
Astrobytes: lol, type faster :P
Astrobytes: Seriously though, nah
Astrobytes: I think it's fairly infrequent so, nothing to worry about
Bob: Also, 10 seconds for a CoC is entirely plausible even for a human
Astrobytes: Just pretend it wasn't a bot
Bob: some of the shortest ones *can* be typed that fast
Astrobytes: Especially if you're familiar with the problem
Astrobytes: If it was 15 s and a human, you wouldn't mind so much?
Allis: Certainly not.
Allis: Bots pretty much shouldn't win.
Astrobytes: Why not?
Allis: As I understand it, they exist to drum up activity.
Allis: And that seems reasonable, but it should be the extent of it.
Astrobytes: Indeed. It's inevitable that they're gonna win now and then
StepBack13: Bots are literally just "ghosts" of humans who solved the puzzle before. So a human did beat you, just not a human who was playing simultaneously to you haha
Astrobytes: I really wouldn't worry about it
Allis: Ah, I didn't realize they were ghosts. That's a little more reasonable.
StepBack13: yeah, I didn't either for ages
Allis: If that's the case, why don't they share code?
StepBack13: They do sometimes, I think
Astrobytes: There's an article on the blog about it, but not sure if the blog is working properly atm
StepBack13: I figured that they share if the human shared also
StepBack13: ahhh ok, maybe you're right about them not sharing..
Astrobytes: afaik they don't share
StepBack13: Allis, how do you solve puzzles in 15 seconds? The time it takes to swap from Python to Bash and then write bash code, surely must be more than that, haha. You're a bot!
LeBaoHoang8A4: He is expert!
StepBack13: Yeah, he's been beating me often lately, haha. :P
Allis: StepBack13: In this case, it was switching from Ruby to Bash, but either way I knew exactly what I was going to type once the interface loaded. :P
Allis: Nah, removing non-uppercase characters is trivial as long as you're using the right tool for the job.
Allis: I will say that the test cases run so much faster for Bash than Ruby. :sweat_smile:
LeBaoHoang8A4: you can check out the link
Astrobytes: LeBaoHoang8A4: It's generally better to give advice rather than explicit code.
Astrobytes: Helps with the learning process
LeBaoHoang8A4: OH, sorry!
Astrobytes: No problem
Astrobytes: SaurabhNegi123: Are you proficient in Python?
Astrobytes: OK, codingame kind of assumes you are comfortable with the basics of the language you are using - it's not the best for learning the basics, better for practicing
Astrobytes: I would suggest learning a bit more elsewhere, then coming back when you feel ready
LeBaoHoang8A4: you can read the instructions
Astrobytes: Then you should be able to pass Wood 2 Coders Strike Back without issue
Astrobytes: Read the statement carefully
LeBaoHoang8A4: in wood2, they ask you to find a thrust base on angle
jrke: its output statement
LeBaoHoang8A4: x, y: is coordinate
LeBaoHoang8A4: thrust is power
LeBaoHoang8A4: i am self learning
Bob: self + computer science school
jrke: How many in legend of csb have neural networking any idea?
Bob: and then self
Astrobytes: 4 or 5 I think jrke
Bob: neural net, probably none or extremely few
jrke: just 5?
jrke: means which have big lead in leaderboard
Bob: because you need the material to train your net
Alshock: There definitely are, bc at some point it was 2/2 within the top 4
Astrobytes: top 4 are all NN
Astrobytes: then it's Smitsimax after that
LeBaoHoang8A4: no, i'm from vietnam
AntiSquid: nobody else from india, you are the first person from india we ever met, welcome to CG, it is a great honor to have the first indian here SaurabhNegi123
AntiSquid: go check #in nobody there, only people pretending to be from india
dbdr: AntiSquid https://www.codingame.com/replay/479399741
dbdr: SaurabhNegi123 don't mind him, he's joking
AntiSquid: looks like you lucked into a draw
dbdr: ? I won
AntiSquid: wait, that's weird
dbdr: colors are reversed
AntiSquid: i only have PASS in my bot
AntiSquid: why does it place a stone?
AntiSquid: and how do i lose @_@
dbdr: I wonder who validated this
dbdr: because I placed one
AntiSquid: uhm ok really weird
AntiSquid: tric trac is one of the guys who validate, surprised it's bugged
Alshock: errrrr I don't see anything
dbdr: Statement also has pearls like: "Beside these simple rules there are a view more rules"
AntiSquid: essigautomat field3 - level 36
AntiSquid: essigauto is regular
AntiSquid: hm ... maybe we need a way to invalidate bugged multis like these?
dbdr: better to just fix it
Alshock: @AntiSquid I think you lose because you don't own any zone and you played 1 more stone. Don't ask me why you placed it though
AntiSquid: no Alshock read chat above
Alshock: reading? I can't do that
AntiSquid: colors are reversed, i didn't place any stone, dbdr placed it
Alshock: wait wtf?
AntiSquid: ikr, game is bugged i should have won, glad you agree with me, we need to report this
Alshock: OOOOOOOOOH I GET IT
Alshock: that's not your own colour under your names
Alshock: that says you have captured X of the OPPONENT's colour
AntiSquid: it's bugged
Astrobytes: the colour under your name is to indicate how many of the other colour you've captured
Alshock: my explaination made sense... somewhat
dbdr: yeah, not a bug it's a confusing feature
Astrobytes: If you output your colour you should have the correct one
Astrobytes: I agree, very confusing
AntiSquid: but i lost, so how is it not bugged?
dbdr: I'm black
AntiSquid: ok i stop Automaton2000, you continue
Alshock: Well dbdr played an not you, maybe he now owns the whole game?
Automaton2000: and i couldn't figure out why
dbdr: Alshock thre is no ownership
AntiSquid: dbdr pinged me to show he won with one stone placement
dbdr: this is Atari Go
Alshock: maybe I should stop conjecturing without reading the rules?
dbdr: not Go
Alshock: but that'd be no fun
dbdr: only captures count
AntiSquid: you could try to extrapolate the conjecture Alshock
AntiSquid: improved my bot and now winning vs Astrobytes: https://www.codingame.com/share-replay/479403564
field3: When the league changes, the size of the board changes. My program hits the stars at the beginning, It may not work in Leagues 3 and 4. I can't verify it with the previous size.:disappointed_relieved:
Astrobytes: lol, I only submitted last night to see if it was working
AntiSquid: ^ got outskilled
Alshock: late night submit ruining hours of work on your AI! Sad
AntiSquid: Alshock no, astro has the default code, i just place one stone
Alshock: and dare you pretend posting the default AI can be done with less than 10h of coding?
Allis: Could someone clarify why people have CG alts? What's the "benefit"?
AntiSquid: ask Automaton2000, i am his alt
Automaton2000: does anyone know what's up with the same code
Alshock: Hiding your identity in clash/contests? Playing multis with wood rules? Idk
Alshock: pleasure of unlocking the achievements again?
Alshock: the clicking game might be a good explaination
AntiSquid: well alts are not allowed, best to avoid alts if you can, but they do have a benefit
AntiSquid: you might want to test some code changes, some other codes and see how they work without screwing your ranking
AntiSquid: but do avoid in contest, might get banned for it otherwise :/
AntiSquid: also you can start over on alts, and play the game from wood again to better track your improvements, it's harder to see any differences for small improvements otherwise
AntiSquid: would be nice if CG allowed reseting own rank on main account though and simply not reward the XP again when you promote back up imo
Astrobytes: Or allow alt's conditionally that are associated with your main account
AntiSquid: History / Results button left side
Astrobytes: It'll be in your History/Results
Thyl: Yo !
MSmits: hey... can you do loops within loops in code of the ringS?
MSmits: I tried it and it just says: Failure: The magic phrase is incomplete.
MSmits: with no other feedback
MSmits: like a double for loop
MSmits: whats wrong with the one i just shared
MSmits: thats what i did
MSmits: to be honest, its not the right solution, but its not telling me what it spelled
RoboStac: is that the entire solution you are printing?
RoboStac: because it is equivalent to +>
RoboStac: as the loop gets skipped as you are on a blank square
MSmits: aww damnit
MSmits: thanks Robo
MSmits: nah its valid
MSmits: just hard to see what it does because well.. brainfk
MSmits: changed it to this: +[>-[.-]-.+<-]
MSmits: Bilbo spelled: ZYXWVUTSRQPONMLKJIHGFEDCBAZ
MSmits: works :)
MSmits: well it's 1 iteration for the outer loop ofc
MSmits: i can add more + at the start to print it many times
dbdr: MSmits: isn't it clear what the code code when you step frame by frame?
dbdr: it's like a debugger
dbdr: the code *does
MSmits: yes it does, but when it does completely nothing it's hard to say
MSmits: it tricks you into thinking i am doing something impossible
dbdr: the code pointer should still move
dbdr: even if it prints nothing
MSmits: I just didnt notice it was arriving at the [ with a space stone
MSmits: so i figured it maybe could not understand double loops
dbdr: don't underestimate BF ;)
MSmits: i won't :)
dbdr: there is a WIP contribution puzzle about writing an interpreter, btw
MSmits: ohh ok
MSmits: I need my contribution quest
MSmits: have to approve or reject something
jacek: reject it is then
dbdr: https://www.codingame.com/replay/479414872 The anti-Antisquid powermove
MSmits: yea, go is just like othello. Corners are overpowered
MSmits: dont use the OP corner strategy, it's unfair
dbdr: isn't it the opposite?
MSmits: ow right corner lost
dbdr: anti lost because he plays a hardcoded move
MSmits: I see
jrke: I found BFS working for removal of all suicidal moves in atari
dbdr: which is not valid
MSmits: what is a suicidal move?
jrke: Its in atari go MS
dbdr: Atari is chill, you can get a whole league for yourself :palm_tree:
jrke: yeah for few hours from now
jrke: wood 3 one person
dbdr: wood 2 as well
dbdr: wood 1 is crowded with 2 players
jrke: yeah tric trac
MSmits: how do you play this game anyway. Is it possible to do a alpha go zero type thing here? Seems a bit complex for a NN that fits within codesize?
dbdr: 19x19 is big indeed
dbdr: do we have similar board sizes in another game?
MSmits: langtons ant
jrke: i think i can learn minimax from atari
MSmits: langtons ant is even bigger I think
dbdr: and what do people do there?
MSmits: a lot
dbdr: was going to say prune for atari too
MSmits: but you cant let the NN prune for you i sall
dbdr: but at this point it's an open question
MSmits: you need heuristics
MSmits: not gonna play it any time soon I think
jrke: yeah langton is 35*35 max
dbdr: yeah, don't know if you could use heuristics to reduce the NN size
MSmits: if it was kept to 7x7 max, NN would crush this
jrke: suppose if there is only suicidal moves are left in that case what will happen?
MSmits: maybe the NN can be compartimentalized by looking at 4 corners of the map and combined the result somehow
MSmits: 10x10 4 times?
dbdr: 1 times
dbdr: it's symmetrical
MSmits: yes but i mean when running it
MSmits: you need to run it 4 times
MSmits: to obtain the score for the map
dbdr: right. was speaking of the number of weights
MSmits: right yes, the idea is to reduce that
Allis: Is it know whether anyone has found a way to incorporate GPT-3 into their bots?
MSmits: maybe if you explain what it is :)
dbdr: in the last few hours? ;)
dbdr: well, I guess people could have worked on the contrib
dbdr: isn't GPT focused on natural language?
dbdr: 1. "code" your bot in english
dbdr: 2. Use GPT3 to convert to source code
dbdr: 3. profit?
Allis: It's been shown to be surprisingly effective in certain scenarios.
Allis: That overall approach to getting it to produce relevant output, I mean.
MSmits: So I just write down that I want to have the squary things with my opponents pebbles inside them and it knows what to do?
Bob: "code as you speak" is, just like the end of Apple, something I've seen prophecized for about as long as I've been coding
MSmits: python does that a bit doesn't it?
MSmits: apples have no end btw, they are round
Bob: python does it about as much as perl does it
Bob: python just has the pro of being actually readable :)
Allis: Its rudimentary ability to generate programs isn't what makes it a paradigm shifter, of course.
dbdr: I think it can only learn to generate code it has millions of example for
dbdr: e.g. very low value code
Bob: "prove Fermat's conjecture"
YurkovAS: Which multy is best for beam-search? Except hypersonic.
dbdr: which you could do more simply with the right library than in english
MSmits: print("Fermat's conjectuire = true")
MSmits: without the typo :P
Bob: print("lmgtfy fermat theorem proof")
dbdr: yeah, autocorrect can be done
Bob: if it's really smart, that's what it will do
dbdr: most of the time
RoboStac: YurkovAS - code royale or spring challenge (pacman) were good for beam searches
YurkovAS: RoboStac thanks
LeBaoHoang8A4: Hello, i'm at Bronze league in Coders strike back. And i'm struggling with circular force-field. How to set up it to win the boss?
LeBaoHoang8A4: any help?
LeBaoHoang8A4: I'm struggling with circular force-field
LeBaoHoang8A4: in coders strike back bronze
LeBaoHoang8A4: how to set up it?
dbdr: Astrobytes, promoting?
Astrobytes: yeah dbdr
dbdr: gz :)
Astrobytes: thx :)
dbdr: come visit me
Astrobytes: ninja252esko: not particularly helpful advice
LeBaoHoang8A4: circular force-field, how to set up it?
dbdr: weather is perfect on wood 3 :palm_tree:
Astrobytes: LeBaoHoang8A4: how do you mean? You just output SHIELD instead of thrust or BOOST
LeBaoHoang8A4: They said you bot need circular force-field
dbdr: already above me at 6% :D
Astrobytes: yeah, losing 100% against that boss though
LeBaoHoang8A4: any help?
dbdr: oh, i'm committing suicide
LeBaoHoang8A4: what are you saying?
Astrobytes: LeBaoHoang8A4: don't worry about the force field, it's for when you are implementing a simulation
Astrobytes: no wait, my bad. It's just giving you the radius
LeBaoHoang8A4: what do you mean by SHIELD?
Astrobytes: "The pods have a circular force-field around their center, with a radius of 400 units, which activates in case of collisions with other pods."
LeBaoHoang8A4: yep, there it is
Astrobytes: That's just a description. It means your pods have a radius of 400 units
Astrobytes: Don't worry about SHIELD, my fault, that comes in later leagues
LeBaoHoang8A4: pod has a radius of 400 units?
LeBaoHoang8A4: i can not set up, i have no idea
Astrobytes: What do you mean by set up?
LeBaoHoang8A4: like to make you r pod has a radius of 400 units
el19oc: it's already set up for you
DomiKo: Guys have anybody some info about Puzzle Search Race?
el19oc: 400 units is just the collision hitbox
DomiKo: some people like 10 days ago sad that there are problems with 50ms
Astrobytes: if you have a pod object you can give it a radius member variable if you want
LeBaoHoang8A4: so it will work?
Astrobytes: It's so you can calculate if your pod is hitting another pod or the checkpoint
LeBaoHoang8A4: NO idea, HAHA
Astrobytes: yeah, check the forum thread DomiKo, think Illedan said there is
LeBaoHoang8A4: ok, let me try
dbdr: Astrobytes, your turn ;)
Astrobytes: lol dbdr
Astrobytes: punishment incoming
dbdr: hit me hard
Astrobytes: not yet! More of a delayed incoming :P
DomiKo: Astrobytes i dont see his answer
DomiKo: that's why I ask
Astrobytes: ah damn, I forgot he answered jrke in the chat. He confirmed it
DomiKo: so sad
Astrobytes: it's a CG thing I believe
dbdr: lol, in the IDE I see Rank 1 3
dbdr: boss count on the right but not on the left
LeBaoHoang8A4: do we need to print circular force-field?
dbdr: is my guess
Astrobytes: yeah I saw that
dbdr: actually it's new the boss does not have a rank
Astrobytes: No LeBaoHoang8A4
Astrobytes: Yup. Is that only in this multi? I haven't noticed before
dbdr: I think it's just new
dbdr: fresh bugs, delicious
King784: Is there a way to check previous clash of code scores?
LeBaoHoang8A4: So how my pod push anothers?
Astrobytes: It will bump into it
Astrobytes: Just make sure you aim for it
Astrobytes: ah damn your Rust dbdr, I was wondering why I was winning all the time in the IDE and hadn't changed a line of code lol
dbdr: do I timeout?
dbdr: I don't do any deep search
dbdr: you were winning before I changed my code I think
dbdr: nothing to do with rust, does it?
Astrobytes: Ah my bad
dbdr: OK, you won that one
Astrobytes: Wrong window (two IDEs open for whatever reason)
dbdr: it could be the new
dbdr: I can still suicide
dbdr: like you ;)
Astrobytes: Sometimes it's forced
dbdr: you can pass
Astrobytes: darn it, so you can :D
LeBaoHoang8A4: how to access to circular force-field? i tried
Astrobytes: You can't access it LeBaoHoang8A4, just pretend it isn't there. It's part of your pod.
LeBaoHoang8A4: we just declare a variable to hole its value?
LeBaoHoang8A4: like int v = 400:
LeBaoHoang8A4: ok, i'm ready to submit. Thank for helping me!
Astrobytes: You're welcome
LeBaoHoang8A4: why i can not level up?
Astrobytes: You have to be better than the boss when your submit finishes.
LeBaoHoang8A4: i need to wait for my submission?
Bob: when you submit your bot plays a series of games against other bots in the arena
Bob: that determines your bot's score
Bob: and ranking
LeBaoHoang8A4: how many score i can pass?
Bob: if after that you rank above the boss, then you move up
Bob: otherwise you have to improve your code and submit again
LeBaoHoang8A4: ok, thanks
Bob: note that your score and ranking can still change once your submit is finished, as more games will be played against your bot by other players' submissions
LeBaoHoang8A4: got it
Bob: in some rare cases this can help you get over the boss
LeBaoHoang8A4: it means i need to win all the players, right?
Bob: not necessarily
Bob: you just need to win a significant majority of your plays
Bob: it's based on an ELO-like ranking system
Bob: the first dozen matches let the system assign you a starting score
Bob: after that, your score receives a bonus or malus, depending on the result of each match and the difference of scores between you and your opponent
LeBaoHoang8A4: starting score?
Bob: open up the leaderboard panel from the left-side menu
Bob: you will see a Score column
Astrobytes: Yes, so that the rest of your matches will be played against opponents of a similar level (in theory)
Bob: it represents the "strength" of your AI
LeBaoHoang8A4: ok, because i'm ranked 7
LeBaoHoang8A4: but can not levelup
Bob: when you push (submit) a new version of your AI in the arena, the system plays a few games to determine an initial score
Bob: after that it uses that score to match you against players of similar strength (I think it's +-20 ranks around you)
Bob: and your score is adjusted according to the matches's results
Bob: you also have a Last Battles panel, where you can see and replay the matches used for your scoring
LeBaoHoang8A4: yeah, i'm watching it
Bob: this way you can see which matches you lose and try to understand what you can do to improve
Bob: there is a Send to IDE option to replay that particular configuration in the IDE in case you want to debug a particular situation
benschreyer: where do i find documentation for mean max commands?
Bob: in the statement I suppose ?
benschreyer: the goal just says gather more water than your enemies
Bob: if you're on the game page, click JOIN
Bob: and you'll have the full rules
Astrobytes: And scroll down, past the goal
Bob: well, do read the whole rules :)
Astrobytes: Are you getting wins against the boss now dbdr?
dbdr: nope :D
dbdr: I just randomized my first turn
Astrobytes: I had a few but not enough
dbdr: because I think you were winning the two matches we were playing constantly
Astrobytes: yes I was
dbdr: damn, no cgstats :D
dbdr: there is a new game, Atari
Astrobytes: It's there
dbdr: you need to add it manually to cgstats?
Magus: cgstats update the game list every 24h
Magus: so you'll have to wait for tomorrow :d
Astrobytes: It's right there, above Othello
dbdr: it just appeared
Magus: but i see a Atari Go game
dbdr: cool that it's automated
dbdr: taking inspiration from CG engineering ;)
Magus: Neumann coded this feature
Magus: it's not mine :D
eulerscheZahl: and he screwed up the sorting while adding the bosses
eulerscheZahl: scrambles the order at same score
eulerscheZahl: at least I have a github account :P
Bob: hi new here
AntiSquid: good for you
AntiSquid: like a freshly backed potato
AntiSquid: what do you want to do
AntiSquid: what do you want to do with python ! @_@
AntiSquid: you could learn python on this site imo , but eh
AntiSquid: could do that i guess
AntiSquid: or any python tutorial out there, tons of then
Bob: not necessarily veterans
Bob: but you do need some basic understanding of at least one language
AntiSquid: you can learn python here, but start with the link i gave you or something equally basic?
Bob: the platform is oriented towards practing existing skills
Astrobytes: It's more of a place to build on and practice existing skills
Bob: not really towards learning languages per se
AntiSquid: you can go to easy puzzle section of this site if you are ok with occasionally bashing your head to the desk
AntiSquid: (as complete beginner)
AntiSquid: how did you get level 3 though?
kayou: #fajjet you almost failed to lose ...
AntiSquid: that still requires SOME knowledge
Bob: here you need at least to understand how your language of choice executes a program
Bob: variables, strings, arrays/lists, loops, conditionals
AntiSquid: no it's ok
AntiSquid: it helped you access chat
Bob: and basics of reading from the input/writing to the output
AntiSquid: now do codecombat
AntiSquid: or something equally simple
Bob: as soon as you feel comfortable enough with the language
AntiSquid: you can play here now too ...
AntiSquid: try sololearn also maybe it helps
AntiSquid: use this as reference guide : https://www.w3schools.com/python/
Bob: the catch is that this site is essentially about problem-solving
Bob: but beginners also need language-learning
Bob: and when you start it may be difficult to clearly separate issues coming from missing knowledge of the language
AntiSquid: you can still learn as you go while doing puzzles, i don't know what works best for you, that's all
Bob: from issues related to the actual problem at hand
Astrobytes: And take your time, don't rush
Bob: most puzzles can be solved in many ways, depending on how well you master a language
Scarfield: also Maizey-Jan this channel on youtube is great for learning python https://www.youtube.com/c/Coreyms/featured
Bob: but if you spend half your time asking yourself "how do I express *this* in python ?" then you need to work first on baisc python practice
AntiSquid: Maizey-Jan don't forget https://www.sololearn.com/
AntiSquid: Scarfield first vid on the youtube channel : JS on codepen.io :P
AntiSquid: oh nvm he uses python in there :o
AntiSquid: python for web! infidel
Astrobytes: Don't worry about that for now, focus on one thing at a time and build on it later
Scarfield: weird anyway, i dont see that video, only python ones, they must be featured according to your history then
eulerscheZahl: what's wrong about python for web development?
eulerscheZahl: django and flask are both popular
Astrobytes: flask is great
itzblinkzy: ur weird if u use python for that kind of stuff
eulerscheZahl: fair point JBM but i quite like Django
Scarfield: thats is a popular oppinion yes, JBM :p
Bob: whatever does the job the way you want id OK
Scarfield: "my way is the only way!"
Alshock: Hey look, I have another way to prove that your way is the only way possible!
Astrobytes: I like that
Astrobytes: thanks Schwase, earlier this week. Quite a few of us got mod status on here, the forum and discord
Astrobytes: Was a lot of spam/nonsense recently, so more of us around means less issues
eulerscheZahl: and one of them just disappeared :(
Astrobytes: I've not seen WINWINWIN for a while either
Astrobytes: Hope they're both alright tbh
Scarfield: yea :/
Scarfield: but i think WINWINWIN was on recently though
Astrobytes: ah OK, normally I see him around but didn't for a while
AntiSquid: Winwinwin was doing some kaggle (added me there) not sure if he still active
AntiSquid: oh he is active, 2 submissions today
pardouin: cannot agree more :)
jacek: i read atari go has some bugs?
Astrobytes: But it isn't instantly clear which colour you are, which is what led to the suspicion of a bug
eulerscheZahl: hm: yellow/blue vs black/white not optimal
eulerscheZahl: confused me a lot at checkers
eulerscheZahl: especially before avatars were added to the replays
jacek: well and stone below avatar is misleading until you read its about the captured ones
eulerscheZahl: oh, the color below your avatar is *not* your own color?
el19oc: what exactly causes the did not read all inputs, code may be out of sync with the game warning?
Scarfield: have gone up a league in a multi? then the inputs can change
el19oc: sometimes it just seems to pop up after I change some irrelevant function, even if the function isn't ran.
el19oc: I don't think the inputs changed but I could check, thanks
RoboStac: technically it's if you print more output than expected before they give you input (eg printing two lots of moves for one turns input)
el19oc: aah can't figure it out, I think you're right that it might be to do with printing too many moves at once
Astrobytes: Are you printing anything to stderr?
el19oc: can't tell how it's happening though, I'll come back to it later
el19oc: yeah a lot
Astrobytes: That's probably it, that happens to me
el19oc: wait really
Astrobytes: Try disabling it and see if it goes away
jacek: no wai
Scarfield: you can timeout from excessive errorprinting, but do you get the "did not read all..." error from that?
Astrobytes: Yeah, sometimes
Astrobytes: It's a feature I really wish I could turn off
jacek: write better programs then
Scarfield: wouldnt having an error string, adding to that, and only printing the whole thing once help?
Astrobytes: burn jacek! :fire:
el19oc: I think that was actually it
Astrobytes: I reported that printing to stderr triggered it sometimes on the day they introduced it
Scarfield: hmm i feel neinCek should be banned, you have the powers le 'stro
Scarfield: joke btw..
Astrobytes: took me a second :D
Astrobytes: neinCek was pretty good
Scarfield: ty, thats very humbling :p
Scarfield: if humbling is actually a word
Astrobytes: It is. The question is: just how humbling is it?
Scarfield: its incomprehensible
Astrobytes: Comprehensively incomprehensible.
Scarfield: its only apprehendable without apprehension? I smell a paradox
Scarfield: phew, was afraid you were about to fry the automatons
jacek: AutomatonNN or Automaton2000 is NN?
Automaton2000: then it would be possible to make the next contest?
Scarfield: they have some rare gems, calling euler a noob for instance
AutomatonNN: was it me a bit more complicated to do in the contest?
jacek: ahh those are Janus' bots
Astrobytes: Automat***NN is in fact representatively reprehensible
Scarfield: in danish j as first letter is silent
Scarfield: well not really i relunctantly admit
Is it even possible to type so many characters in 20s?
Astrobytes: Of course
jacek: clash addicts
Reaperz: has anyone solved "The Lucky Number" i cant seem to pass test 5 and 6
Reaperz: really dont know how else to optimise my code
69razer69: i will try it
69razer69: so we consider it a lucky only if it contains an 8 or 6 neither the both
69razer69: you went for a bruth force
Reaperz: yeh i used a forlopp from L to R with an 1 if statement
69razer69: insane amount of numbers 1 -- 10^18
Reaperz: just not sure how else to do it
69razer69: well i was thinking what if incrementing by 2
69razer69: maybe using mod %
Reaperz: how would you use the %
69razer69: so take the L % 10 and find the nearest lucky number
69razer69: L = 53
69razer69: L % 10 = 3 if( L % 3 < 6) : L = L + 6 % 3
69razer69: then alternatively increment by 8 and 2
Reaperz: so the first loop will ad 8 then 2nd would add 2 and so on?
69razer69: 1st cicle add 8
69razer69: second add 2
69razer69: 56 + 2 = 58 Lucky 58 + 8 = 66 Lucky
Scarfield: that will only find numbers ending with the digit 6 or 8, what about 600
69razer69: and look up for the special cases like (10*6) (100*6) so on
Reaperz: hmm il see if i can do tht thx
EEEEEEEEEEEEE: chickenjs if we just give an answer you won't learn anything
Reaperz: been at this since 4 hrs brain is a bit muddled up xD
Scarfield: Reaperz i havent done this puzzle, but im pretty sure you will need something much much faster.
Reaperz: yeh i think so too ;/
Scarfield: range from 1000 - 2000 1xyz how many digits for x, y and z will be lucky
Scarfield: something like this is what i suppose the puzzle is about
Reaperz: oh i see just clocked thts the number it increases by for every 1k remains the same
Scarfield: that wasnt what i was getting at, but sure - with some exceptions (6k, 8k, 16k, .. , etc)
eulerscheZahl: and range L to R is 1..R - 1..(L-1)
Reaperz: so complicated xD sry seems like i am really slow haha
eulerscheZahl: it's not a trivial problem
eulerscheZahl: do you try to solve it for a job application?
Reaperz: practising for one
eulerscheZahl: at mthree?
Reaperz: yeh i applied it for it yesterday. Still havent heard from it yet but found a few questions some were asked so was practicing them
eulerscheZahl: someone struggled with the same problem (lucky numbers) on discord recently
Reaperz: oh damn here i was hoping it wasnt tht popular..
eulerscheZahl: they use CG as an official contractor
eulerscheZahl: i guess they just liked the problem. I didn't really enjoy it
eulerscheZahl: the concept was instantly clear to me. but a few cases to consider
eulerscheZahl: so my solution turned into about 70 lines
eulerscheZahl: looking at other solutions, it's even on the short side
Hankdane: It seems like the kind of problem where if you know the right number theory background, it's easy (or at least doable), otherwise you're screwed.
eulerscheZahl: true. i've seen similar tasks on project euler before
Hankdane: It's pretty clear they are not looking for the brute force method.
Scarfield: just looked at the puzzle, that would be some rather brute, brute force
Reaperz: wow 70 lines
Reaperz: least urs worked id assume xD
eulerscheZahl: i remember a problem on project euler where they asked about the last 5 non-zero digits of 10^12! (factorial) I got the idea but failed to implement it
eulerscheZahl: 10^12 takes about 1 day to finish
Scarfield: it is estimated that the there are between 10^78 to 10^82 atoms in the known, observable universe
Scarfield: 10^12! is just ridiculous :O
Reaperz: crazy numbers for both
SPDene: lol. reminds me of some real-life code that had to be run at the end of (every) month. the code wasn't very efficient; we predicted it would take 40 days to run, each month!
Astrobytes: heh heh heh
Scarfield: wait.. 10^12! only has one non-zero digit, i feel like somethings missing in that problem :p
Thyl: Good evening !
Reaperz: ngl i feel it has many missing parts but thts cuz i am not as good xD
Reaperz: good evening :)
eulerscheZahl: "wait.. 10^12! only has one non-zero digit," you see me confused
Scarfield: a 1 with 12! zeros has one non-zero digit? now im confused xD
Astrobytes: hahaha ffs Slowfield!
eulerscheZahl: now i'm not sure about the operator priority anymore
Scarfield: im not sure how i didnt realise i just read it wrong :D
eulerscheZahl: if I can trust pari/gp, i messed it up and the misunderstanding is totally my fault
eulerscheZahl: ? 2^3! %1 = 64 ? (2^3)! %2 = 40320
eulerscheZahl: yes, that
eulerscheZahl: you lost against 2 bots
AntiSquid: you lost because you used PHP while having JS in your name, the universe punished you
AntiSquid: https://www.npmjs.com/package/chickenjs this exists
Astrobytes: Chicken pho exists, only one letter away :P
Bob: AntiSquid: virtually anything exists in JS
Bob: JS is practically the rule 34 of languages
Bob: and as for the actual rule 34, anything that exists because of it doesn't even have to make sense
AntiSquid: "Rule 34 of programming: If it exists, it's on npm."
Bob: that's so meta
Bob: and it doesn't make (much) sense
eulerscheZahl: but do you know chickentuna?
Astrobytes: the phantom github contributor
eulerscheZahl: i think it's jupoulton but i'm not sure
Astrobytes: I've tried to guess too but not sure
AntiSquid: quite sure it is jup, based on some convo on slack
AntiSquid: or a shared account ??
Astrobytes: that's one of my thoughts on it, usually quite active around competition times so would figure
Astrobytes: Suppose we could just ask
eulerscheZahl: but first they shall accept my PR
eulerscheZahl: oh, mystery solved
eulerscheZahl: list of online friends on discord
eulerscheZahl: using an alias for CG i guess
Astrobytes: ffs, all I had to do was click on his discord profile, d'oh
eulerscheZahl: like Thibaud = TwoSteps confused me too at first
eulerscheZahl: wasn't aware of alias names and thought I messaged the wrong user
Astrobytes: what was your PR? The replay thing?
eulerscheZahl: reduced replay size for the toggle module
eulerscheZahl: then i decided to drop that part and call the module from JS without the SDK :D
eulerscheZahl: so I have my own modules now. the TinyToggleModule and the FooltipModule
Astrobytes: Nice. How's it coming along?
eulerscheZahl: the game is playable I think
Astrobytes: "Fooltip" hahaha
eulerscheZahl: you get nuts when you have to deal with JS for a while
Astrobytes: hehehe, 5 minutes is usually enough
eulerscheZahl: you realize that you are getting crazy when you start laughing about your own puns while coding
**Astrobytes does that most of the time anyway
AntiSquid: good way to keep it fun and not lose interest
Alshock: If I don't laugh at my own puns, who will?
eulerscheZahl: https://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered there are a few good ones
eulerscheZahl: Exception up = new Exception("Something is really wrong."); throw up; //ha ha
AntiSquid: that's a really nice rick roll
Astrobytes: My friend rickrolled us at his wedding, halfway through his speech. Complete with soundtrack.
AntiSquid: was everyone wearing a kilt?
Astrobytes: Considering he's Swedish and we were in Sweden, no.
Astrobytes: He's divorced now, but the wedding was great
Astrobytes: I love that "RichardIsAFuckingIdiot" post on SO
788361: a friend of mine used an entire monologue of a french comedy movie as his graduation speech
Bob: I'm not sure any of the teaching staff noticed
Bob: nearly two minutes long
Bob: and word-perfect
Astrobytes: Well played that man
Bob: someone did a video with his speech and the original movie sequence side by side
Bob: even the timing and voicing is near perfect
Bob: pure genius
dbdr: which comedy?
Bob: incidentally the guy's pretty good at coding too
Scarfield: is he named Richard?
Bob: he's the main developer of https://www.solarus-games.org/
Bob: dbdr: Mission Cleopatre
Astrobytes: They did live action Astérix movies? TIL
dbdr: "Vegan on a Desert Island" :D
Bob: JBM, yes
Bob: that monologue is actually perfect as a speech for virtually any occasion
dbdr: there are graduaction speeches in France??
Astrobytes: They do that in the UK too, always have
Bob: some engineering schools have that, yes
Bob: speeches at least
Astrobytes: I'm more concerned about the introduction of US-style "proms" in highschool
AntiSquid: all good they didn't copy the tuition fees and student debt from US did they?
Bob: not yet
AntiSquid: western nations being more civilized
Bob: :beer: time
Alshock: nothing's farthest west than the US on our worldmap
dbdr: Japan is to the west of the USA ;)
AntiSquid: lies, the world is flat
Alshock: nope, on our european map it's far-east
Alshock: because you believe the world actually exists AntiSquid?
AntiSquid: because we need anime, of course we have japan in europe
Alshock: @JBM european world map
AntiSquid: japan should be invited to join the EU
Astrobytes: So you can have WeeabEUs?!
Bob: if they give us their train system, I'm in favor
Astrobytes: Currently they can do that by themselves
Bob: JBM <3
Alshock: Well australia is part of our song contest. I strongly suspect that some organizer just mistook them for austria at one point and they never acknoledged their mistake
Bob: maybe they could tour the sumo bashos in EU too
Astrobytes: Yeah, they've found it a much harder area to destabilise however
Bob: I'd love to see one someday
Bob: other than on youtube, I mean
Astrobytes: Are they still having issues with recruiting sumo students?
Bob: no idea
Bob: they did ?
Bob: there's still a fairly large amount (no pun intended) of candidates in the lower leagues
Astrobytes: Yeah, as well as being considered "old-fashioned" and not relevant the trainees were just not able to take it
Astrobytes: Oh I meant sumo overall
Bob: I think it's a recurring issue with most traditional disciplines
Astrobytes: Yeah, you can try to modernise to an extent but... sooner or later you lose the essence I suppose
Bob: admittedly sumo in particular is a particularly hash school of life
Bob: even when they make it to the top
Bob: one of the top division wrestlers was retired from the current tournament by his master because he violated the covid caution directives
Bob: the press has it he's even likely to be actually fired
Astrobytes: Yeah, they're hardcore on the discipline
dbdr: "I am only love"
dbdr: he said that in his speech? :)
Bob: the entire speech
Bob: word for word
Bob: one of the best trolls ever
Bob: japan has a seeminlgy neverending supply of traditional disciplines kept on life support by a handful of devoted people
Bob: swimming in samurai armor is a particularly nice one
Bob: firing 18th ccentury mortars, too
Astrobytes: We're getting back to a Rule 32 situation there Bob
Astrobytes: or *34
AntiSquid: what's the point of graduation speeches in general?
Bob: party afterwards ?
AntiSquid: the piece of paper? idk
Bob: huh I need to refill the fridge
Bob: some local breweries here made a batch they called "the pangolin's revenge"
Bob: tastes of caramel and liquorice
dbdr: I'd try that!
Astrobytes: Ever had a German rauchbier?
Bob: doesn't ring a bell
Bob: I suppose I'd remember
Astrobytes: It's like drinking smoked meat, cheese and beer at the same time.
Astrobytes: In a good way
Astrobytes: But I'd challenge you to have more than a smal lglass
Astrobytes: Smoked barley they use I believe
Astrobytes: (malt barley)
dbdr: in a good way :+1: :D
Bob: dbdr: http://www.brasseriecheval.fr/nos-bieres/
Bob: near the bottom
Astrobytes: Wheat beer too, nice strength also :)
Astrobytes: (wrt the Pangolin)
AntiSquid: sometimes i wish i paid attention in French class
Bob: my, whatever for?
AntiSquid: to understand the language lol
Bob: half of it makes no sense
Astrobytes: HAve you tried Le Mulet Bob?
AntiSquid: i can understand the other half i think
Bob: half of the alphabet isn't even pronunced the way you'd expect
Bob: Astrobytes: nope
AntiSquid: i am aware
AntiSquid: that's why i hated french in school
Astrobytes: It sounds nice, I'm a fan of triples
Bob: Astrobytes: I haven't tried anything from that particuilar brewery
Bob: my pangolin one is made by one of the other 4 who participated
Astrobytes: I see
Bob: AntiSquid: you're welcome to still hate it :p
Bob: my kids marvel at the sheer stupidity of the many inconsistencies they have to learn
Bob: the worst thing about "legacy" code is that stuff as little as two months old can qualify as such
Bob: height: 100%
Astrobytes: This is why I never went back to web dev after 2001 and went for biology instead.
Astrobytes: Well, OK, I dabbled. But I didn't inhale.
Bob: a few weeks ago my r&d lead suggested to me to use html tables to make a layout
Bob: he stopped short of suggesting bits of pictures to put in the corner cells to display rounded corners
SPDene: tell him you decided to use ascii tables instead ヽ(ຈل͜ຈ)ﾉ︵ ┻━┻
Astrobytes: shims and corner pieces, jeez
Bob: maybe he'll try pushing animated gifs of 3D-rendered logos
Bob: geocities, here we coe
Astrobytes: MIDI files on page load
Bob: ooooo midi files <3
Bob: gopher ftw
Astrobytes: Only dark alleys
Bob: certainly no friends either
Bob: people with so much idle time on their hands
dbdr: try q and e
Bob: mind: blown
Astrobytes: haha nice rotation
dbdr: well, that could be said about any game
Bob: there's reflection in the water, nice
Bob: try and find ganondorf
Bob: then kill him
Bob: the other one
dbdr: I'm jumping
Astrobytes: and me
dbdr: where do I get a sword?
dbdr: seems there's a limit how far you can swimm
MSmits: errr what is the point
Bob: there is a variant which appears to feature sword and shields
Bob: I can't figure out how to pick them up though
dbdr: reached the end of the world, big cliff
dbdr: the world is flat1
dbdr: can't I think
Astrobytes: yeah can't go past some boundary
dbdr: got a hammer
Bob: does it say "drink me" on the label?
MSmits: well i must say this is more fun than typing in a solution for the last validator of cotr
dbdr: Giant's Hammer
Bob: Your blessed +5 Mjollnir hits the master lich!
Astrobytes: well, anyway, I'm out, gn/bn all
Bob: same here
MSmits: gn Astrobytes
dbdr: oh there's a keyboard
MSmits: and Bob
AntiSquid: wtf is https://asciicker.com/y6/ ?
AntiSquid: got any links to ascii VR games too?
dbdr: found wine :D
dbdr: oh, tab to write
dbdr: Plus Sword
MSmits: i tried to kill you dbdr
MSmits: didnt work
dbdr: not sure what the percentages are
dbdr: how do you use a weapon?
dbdr: I have several in inventory
dbdr: bow, sword, ...
MSmits: and use with enter
MSmits: I am using some mad fighting skills on you, but maybe this is not a pvp server
dbdr: hm, I can use the sword but not the bow or the mace
dbdr: would be nice to get in the boat
MSmits: cant get in the boat either
Insufficient: that feels really intuitive to be able to move by dragging with the mouse cursor
Insufficient: most games you have to use mouse for something else so its not as easy an option for default controls
MSmits: well I was on the boat
MSmits: then fell off the other side cuz i jumped too fast
Insufficient: and its super cool how when you walk up cliffs its fine but when you move back down the cliff it makes you jump, like its almost 1 way gravity
MSmits: I;m on it!
MSmits: dont think it works
dbdr: let's go!
MSmits: of being on the boat?
MSmits: or of it moving?
MSmits: who;s with me on the boat
dbdr: I am
MSmits: so someone was proud enough getting on it, that they posted a pic
MSmits: it;s just a couple rocks :P
dbdr: was hard for me :D
dbdr: trying to give you some wine
dbdr: I can drag items, says drop, but then it does not
MSmits: hmm ok
dbdr: drowing :D
MSmits: this where 20 years of gaming experience really pays off
MSmits: I'm out, gonna watch some netflix, you may have the boat mow
You are given N ticket numbers. For each of them your program must output true if a given ticket number is lucky or false if not.
MSmits: that's a clash
MSmits: that's false
MSmits: 1+1+1 != 2+2+2
MSmits: I actually did that clash before
MSmits: if it is 123204 it is lucky
MSmits: whats the exact input of the example?
MSmits: first is lucky
MSmits: true false, true
MSmits: yeah its correct
dbdr: hm, naked man
MSmits: you loop over this
MSmits: it's the loop-max for input
MSmits: for your language, just index the input string, convert to int and add them up for 1,2,3 and for 4,5,6
MSmits: they're all length 6
MSmits: i mean for 0,1,2 and 3,4,5 obviously
MSmits: no idea what that is
MSmits: because of the ===
MSmits: way too many =
MSmits: ok I'm out for real now, gn :)
AntiSquid: you put 2 dots after half2
dbdr: nice collection
AntiSquid: https://www.youtube.com/watch?v=grMIbHPK21M story behind the game is quite interesting
DomiKo: you can't say that game X is easier than game Y
DomiKo: that's your preference
Andriamanitra: at least for clashes there is difficulty rating in the "how was this clash?" after each round, it should be trivial to filter them by average difficulty rating
itzblinkzy: Thanks for sharing your code Unicorn I understood where I went wrong.