dbdr: damn, I pulled MSmits down to #3
YodaMaster123: In which Multiplayer?
eulerscheZahl: i see smits at #2
dbdr: now I beat karliso once, so Msmits back to #2 :D
dbdr: strange, because I made a perf twek but only measured 1% improvement
eulerscheZahl: and you already left the noob ranks where i'm stuck
dbdr: I was thinking, your eval sounds more expensive, so depth is not the end of story
dbdr: the grouping part, which I don't have
eulerscheZahl: not even sure anymore if i have it or wanted to have
struct: I checked RAIC leaderboard just now
struct: and the 1st guy seems very strong
struct: 50~-% winrate
eulerscheZahl: he won in 2017
eulerscheZahl: and did well in the google ants challenge
eulerscheZahl: http://ants.aichallenge.org/ greentae was 2nd
struct: google doesnt do AI challenges anymore does it?
eulerscheZahl: the user Schneewittchen (mostly active on #De) knows him in person
struct: Never saw im on #world
struct: But saw him on leaderboard on some multies
struct: at least I recognize the avatar
eulerscheZahl: it's from a fairy tale (both name and avatar)
struct: Now I know one more word in german
eulerscheZahl: you also know the word "Zahl"
Westicles: and Feuerzangenbowle
eulerscheZahl: very good
dbdr: I know zahl but not sche is that posessive, or diminutive?
dbdr: eurlerchen would be diminutive maybe :D
eulerscheZahl: if any, then posessive
dbdr: euler's right?
eulerscheZahl: and yes to the chen
dbdr: your mick is too simple ;)
dbdr: little known fact, but Leonard Euler was a toad
eulerscheZahl: oh, i'm not even the only registered player from my company
eulerscheZahl: but iirc i kicked the other one here on the chat. and squiddy later banned him
eulerscheZahl: no, not everything is about you
**PatrickMcGinnisII apologizes to eulerscheZahl
PatrickMcGinnisII: Why is everyone approving Million digits of pi puzzle, i hate it
Rockstar555: u hate but i like
Westicles: If I knew how to do emojis, I would say shocked!
Rockstar555: it is intersting
Westicles: Thanks rockstar
Rockstar555: ABUSING THE SYSTEM in this i see the Hard work of Westicles
Rockstar555: Good Job Westicles
Rockstar555: guys now seriously which not private chat we have to stop if any body have any topics so we disscussed about it
Rockstar555: it not private chat we have to stop if any body have any topics so we disscussed about it
Rockstar555: sorry my mistake
PatrickMcGinnisII: Last I knew GMP classes aren't included in the php functions installed/allowed on CG, so I'm not sure if I can circumvent and solve it
Rockstar555: yeah u can try it
Westicles: You don't really need GMP, it is just sort of helpful
Rockstar555: i solved
Rockstar555: Westicles also solved this
PatrickMcGinnisII: there's plenty of big number puzzles I haven't been able to hack solutions for
PatrickMcGinnisII: well at least its not on easy list
Rockstar555: PatrickMcGinnisII it be right to solve it without hack
PatrickMcGinnisII: pretty sure shell_exec isn't allowed
Rockstar555: if u start with easy puzzle then midium and hard then very hard
Rockstar555: ot be easy
Rockstar555: it be easy
PatrickMcGinnisII: trying to keepp my easy puzzles to 100% complete
Rockstar555: which programming language u learn PatrickMcGinnisII
Rockstar555: yeah this is right way keep it up
PatrickMcGinnisII: i know 30 or so, I'm an old man
Rockstar555: u can reach 100% if u consentrate on it
PatrickMcGinnisII: rockstar, u know there is a lang called rockstar?
PatrickMcGinnisII: pretty good video on youtube, talks about obscure langs
Rockstar555: i watch
PatrickMcGinnisII: thought your name... might be relevant
PatrickMcGinnisII: Rockstar555 there actually is a similar puzzle, i forget the name of it... it's something like, who is in the graden alone...or something
dbdr: hey MSmits!
dbdr: MSmits #1
dbdr: oops, won't be for long :D
dbdr: he's online but not in chat :thinking:
dbdr: sorry jacek
dbdr: top 3 seems random, and I stirred things up :)
dbdr: got lucky against you a couple of times I think
jacek: i wonder what MSmits uses in this game. it can't be booked
jacek: ahh, maybe you just got winning positions, that would explain a lot
dbdr: winning start positions?
dbdr: I think MSmits bitboarded the heck out of it, as usual ;)
eulerscheZahl: he mentioned that he needs 62 bit for the state iirc
jacek: he can compress entire universe in 64bit
eulerscheZahl: a chess clock for that game?
jacek: do they produce connect4 clocks?
jacek: or c4 clocks for short
jacek: you havent watched queen's gambit?
jacek: so havent I :v
PatrickMcGinnisII: This is crazy: https://nanochess.org/chess4.html
Rockstar555: hii everybody
ChampionCoder: I just got to Wood 2 League in Coders Strike Back. Trying to use while loop for the new inputs Distance and Angle, always getting timed out. Can someone please share code Thanks in advance
eulerscheZahl: there is a "reset input" at the top right in your IDE ChampionCoder
eulerscheZahl: click that to get some code that parses the new input
Rockstar555: eulerscheZahl hii :smile:
YodaMaster123: Rockstar, avoid writing people`s nicknames exactly as they are so that you don't ping them.
Rockstar555: what was happening in World Chat
Rockstar555: Server is so week
Rockstar555: wirdes 05:07PM oncelıkle alaykum selam
plz don't talk this in the World Chat
Rockstar555: It is for Group discussion not for this
Rockstar555: if u continue this u are Ban with moderators
Rockstar555: hii Jacek
Rockstar555: nice to meet u
Rockstar555: yeah what are u doing today
jacek: just chilling
Rockstar555: ANY TOPIC
Rockstar555: FOR FORMUS
Rockstar555: SO BUSY AT NIGHT
jacek: here something christmas https://img-9gag-fun.9cache.com/photo/adVEPZQ_700bwp.webp
sirsatan: ho ho ho hello
Rockstar555: every one
Rockstar555: jacek 05:17PM here something christmas https://img-9gag-fun.9cache.com/photo/adVEPZQ_700bwp.webp nice poster
Rockstar555: or photo or image
Rockstar555: whatever u says
Rockstar555: yeah guys any body start a topic
Rockstar555: guys What about Covid-19
sirsatan: u tell me
Rockstar555: every body'
Rockstar555: every one is healthy
PatrickMcGinnisII: gheesh, spent all night trying to figure out why my code wasn't working
Rockstar555: in what
PatrickMcGinnisII: first my gamestate tree wasn't deep cloning all the changes, so each leaf was operating on bad data
PatrickMcGinnisII: now i fixed that
jacek: what game
Rockstar555: yeah nice question jacek
PatrickMcGinnisII: and now my backtracking is broken
PatrickMcGinnisII: There is no spoon2
PatrickMcGinnisII: simple dfs
PatrickMcGinnisII: ep 2
Rockstar555: episod 2
PatrickMcGinnisII: but there's alot of object referencing going on
PatrickMcGinnisII: and the error_log buffer is never big enough
PatrickMcGinnisII: I gotta run it locally to see everything i need to see
PatrickMcGinnisII: ok, to bed
Rockstar555: It id medium puzzle
Rockstar555: It is medium puzzle
PatrickMcGinnisII: yeah well I had to put in alot of preprocessing because php is so slow
PatrickMcGinnisII: can't get deep enough with full tree
PatrickMcGinnisII: I can if i preprocess
Rockstar555: so choose another programming language
PatrickMcGinnisII: rofl, that's what everyone says
PatrickMcGinnisII: I should be laser cutting xmas presents
PatrickMcGinnisII: glhf, I get so into this stuff i lose time
PatrickMcGinnisII: 'morning...er 'g'nite
Rockstar555: hii guys
eulerscheZahl: speak English suleyman-kutukoglu
Rockstar555: couldn't counderstand
Rockstar555: what was this language
eulerscheZahl: but we don't understand Turkish at all
Rockstar555: i am going to use translator
Rockstar555: stop it
eulerscheZahl: by this point i'm tempted to kick. you've been warned
Rockstar555: hey eluerscheZahl what u do at tonight
eulerscheZahl: i'll be sleeping then
Rockstar555: any contribution from your side
Rockstar555: Smart answer
eulerscheZahl: not before RAIC ends
Rockstar555: stop it
eulerscheZahl: looks more like hitting random letters on your keyboard
Rockstar555: this is too much
Rockstar555: speak english otherwise use translator
Rockstar555: hey eulerscheZahl CODINGAME SPRING CHALLENGE 2021 it is starting at may 06 2021 is it so far
eulerscheZahl: yeah, you have to be patient
YodaMaster123: Is the name yet to be decided? I noticed that most contests are named after movies.
eulerscheZahl: the last 2 have no special name anymore
YodaMaster123: Oh... Spring and Fall challenges 2020
AntiSquid: you can call them Pacman and Spice Girls, most suitable names YodaMaster123
eulerscheZahl: only you say spice girls
AntiSquid: only one calling it as it is
Gabbek: Hello everyone :)
Gabbek: Could anyone explain to me why it is invalid move: '52' in FreeCell? https://www.codingame.com/replay/514043421
AntiSquid: click share replay again
eulerscheZahl: Oups An error occurred (#UNAUTHORIZED): "You are not authorised to view replay 514043421".
Gabbek: Seems like supermove combining 3-8 cards, but it's invalid for some reason, hmm
eulerscheZahl: you can't share replays when the puzzle is not approved
Gabbek: oh, I see
AntiSquid: make a video
AntiSquid: perfect opportunity for a stream
eulerscheZahl: a screenshot will suffice
Gabbek: I'm wondering what will happen - there's one left day for validation. I wanted to thumbs it up, but so far I haven't solved it :(
AntiSquid: trictrac made hanabi ? O__O
AntiSquid: why call it fireworks
eulerscheZahl: CodinBot will refuse the contribution. but the creator can put it up for approval again
Gabbek: seems like supermove to me, moving 3-8 rank cards from 5th pile to the 2nd one
eulerscheZahl: you want to move 5 cards at once
eulerscheZahl: but only have 1 free spot at the top and 1 cascade
eulerscheZahl: that allows to move 4 at once
eulerscheZahl: moving blocks is just for convenience
eulerscheZahl: you can move single cards only
eulerscheZahl: move 1 up, then the 2nd to the casecase
eulerscheZahl: 3rd up
eulerscheZahl: 4th somewhere else
eulerscheZahl: then revert the intermediate steps
sirsatan: @AntiSquid 'Spice Girls' is great
Gabbek: I missunderstood it, that explains the issue very well :D
Gabbek: thank you very much eulerscheZahl
AntiSquid: i know SirSushi, but these people don't want to admit it
Automaton2000: not sure what i did to get to the top of the leaderboard
AntiSquid: sirsatan * how many sir somethings are there
sirsatan: today im SirSanta ;)
eulerscheZahl: i see satan
sirsatan: use def Anagram(sirsatan): ;)
Gabbek: anything interesting going on lately? I've been slacking really hard for the last 2 weeks or so.
sirsatan: I wonder is there any problem to save my code after press 'PRESS MY CODE' button
AntiSquid: uncooperative version of hanabi is WIP Gabbek
eulerscheZahl: we have the first 3D puzzle pending now https://www.codingame.com/demo/862009d303ad01e86e3f0537f622e3764fe182
sirsatan: today my changes disappered
AntiSquid: Wolf 3D when?
eulerscheZahl: when you make it
Gabbek: sirsatan never had similar issue
Gabbek: wow, that's so cool :o
sirsatan: i got 2-3 times for last month
eulerscheZahl: it happens sometimes that your code disappears
eulerscheZahl: only submit will store it permanently
sirsatan: next time i will copy to text file
eulerscheZahl: or just submit
Gabbek: I think my next goal will be to go through pending puzzles and check them out
eulerscheZahl: lots of clashes there
eulerscheZahl: i think the questmap is partially responsible for that
Gabbek: I haven't touched any clash, so I guess I'll just check out other puzzles. But before I do that I want to solve this FreeCell, need to change few things because I'm not handling auto-play correctly
Gabbek: How long does it usually take to approve a new puzzle?
Gabbek: I guess it can take a while, right? 3 approvals required, people have to solve it (or I guess that's optional?), hmm.
eulerscheZahl: the fastest approvals are around 10min
eulerscheZahl: the longest is about 4 months i think
eulerscheZahl: neighbor sum grid was pending really long
Gabbek: adding blockout as next goal, after freecell, hopefully I'll be able to provide some feedback on the next weekend.
LastRick: It takes a while because I suspect the pool of users that can and actually do solve the "classic puzzles" is small and they're the same users active (and otherwise busy) on the other parts of the site.
Gabbek: Good day
jacek: oh, someone pushed karliso up :unamused:
MSmits: which game is this?
MSmits: ahh ok
ParticleBeam: Amazing how far one can get with random moves
MSmits: which game?
MSmits: still onitama?
ParticleBeam: I am trying that at the moment
MSmits: it's a great game
MSmits: it's chess-like
MSmits: except the pieces don't have different moves, the cards do
eulerscheZahl: i like the asymmetric aspect that the cards give. X can capture Y but Y can't do the same with X
MSmits: yeah that's a funny part
MSmits: it's pretty easy to solve though.
MSmits: except there's too many card combos to make use of this
eulerscheZahl: and 50ms isn't that much time
MSmits: yeah I meant offline
eulerscheZahl: i got that
MSmits: I am pretty sure you can solve any combo in less than a day on standard hardware
MSmits: there's so few possible boardstates
MSmits: I think it's like 10^12 or 13 or something
Hannnn: hey wtsup guys
eulerscheZahl: let's make a new contribution with a larger board :P
MSmits: nah, this one's fine
eulerscheZahl: just to ruin your bitboards
MSmits: I wasnt able to abuse this feature and I would have
MSmits: if I could
MSmits: would sure ruin my bitboards yeah :)
MSmits: it fits so close
MSmits: I use 31 bit lol
MSmits: err 62 that is
MSmits: maybe a larger version would neatly fit in 128 though
MSmits: like most games
MSmits: btw, I am doing a game design course atm, as a student I mean
karliso: I coded a stronger version of my onitama bot somewhere in July, but didn't submit coz my current version was still beating you guys (I think). You have given up in the game already?
MSmits: I have
MSmits: doesnt mean i will never come back to it, but there's soooo many other games
MSmits: probably at least a year before i get back to it
eulerscheZahl: sounds like blasterpoard he declares having a stronger bot for Kutulu than the current #1
karliso: MSmits Which is ur favourite atm?
eulerscheZahl: that's a tough question
MSmits: karliso do you mean which game I like most, or which game I am currently working on?
MSmits: mmh, well I havent been working on cg much lately, but I have a list of things i want to do
MSmits: i need to get a bandas feature to work
MSmits: D&B has to be finished
karliso: oh, I have not looked at bandas long time. Does my current version still beat you?
MSmits: checkers 3 piece end game db and meta mcts
MSmits: barely karliso
MSmits: probably if i submit 50 times, i will sometimes get nr 1
karliso: I added some endgame to bandas as you suggested, it helped.
MSmits: it certainly does
MSmits: did you go as far as 3x4?
MSmits: I think that's the absolute limit
karliso: I need to look that up.
MSmits: because it's 12 squares and 13 doesn't exist
MSmits: 14 would be 2x7 and require 10x as much space
karliso: yes, I do have 4x3
MSmits: cool we have the same db then
MSmits: unless you did a fractional db for 4x4 or something
MSmits: or you did some fancy compression
karliso: My 4x3 is coded for one...
MSmits: what does that mean?
karliso: Like there were flippings and rotations
MSmits: ah yes
karliso: But I don't think I implemented all of them
MSmits: ahh ok, I managed to get them all in. It's pretty messy to do though
MSmits: with all the rotations and mirrors
MSmits: I think the rest of your bot is just better than mine
MSmits: so even if my db is a little more complete i still lose a bit more
MSmits: did you do mcts with heuristics?
MSmits: mine is just plain mcts
karliso: I do some stuff I learnt from uttt
MSmits: sure, but that could be anything hehe
MSmits: I always learn stuff between games and try them
MSmits: I noticed you went full on teccles on uttt, cutting the heuristic off at ply 20
MSmits: for both p1 and p2
jacek: try teccles on bandas :v
karliso: There is no need to switch for p1.
MSmits: you mean theres no need to stop the heuristic?
karliso: And I think iti s not 100% as p2.
MSmits: hmm i did see some instances where the heuristic was bad for p1, in late game
MSmits: but maybe if you play better, this never happens
karliso: yes, I think you can always win as p1 if you follow this heuristic.
karliso: Meaning you gonna win if the rest of your moves are ok.
MSmits: seems likely
MSmits: but hard to be sure
MSmits: thats why it is not good to have an opening book as p2
jacek: sounds like a challenge
MSmits: yeah it is a challenge and one I have tried a few times
karliso: jacek Is your onitama bot mcts or minimax?
MSmits: so far karliso seems to be right
MSmits: karliso in other words, UCT guided minimax, backpropagating eval value
MSmits: not adding, but replacing highest value
MSmits: ahh kk you are aware of it then
MSmits: jaceks favorite search
jacek: its world renowned
karliso: oh, I misread, I have no idea what is that.
MSmits: you expand like mcts
jacek: consider it MCTS with EPT 0 depth
MSmits: then eval all children
MSmits: and backpropagate minimax style
MSmits: use uct to choose what to expand
jacek: whats your eval in onitama, karliso
MSmits: jacek thats what i use on onitama, but i add up scores, you replace them
jacek: is it complicated
MSmits: mine is pretty complicated, have a bunch of features with params.
karliso: It is bugged and not very good
karliso: not the best part of my bot
MSmits: what do you think is best?
MSmits: without giving it away i mean
jacek: well my bot is pretty slow
karliso: I saw onitama bot on github where it did eval of peaces.
karliso: I don't have that.
karliso: I have coverage scores instead/
MadKnight: hey MSmits what are u doing ?
jacek: peace :v_tone1:
MadKnight: raic ?
MSmits: no, dont have that much time MadKnight, just fixing small stuff about bots
MSmits: karliso coverage score means you can capture opponents using cards?
karliso: My onitama bot could be improved a lot, but I need motivation.
jacek: i was 1st but dbdr pushed you up
karliso: A += (int64_t)popcount(COV) + (int64_t)popcount(COV & 0b00000'11111'11111'01110'00000);
MSmits: karliso, jaceks bot is stronger than yours atm
MSmits: so you have motivation
karliso: Is it?
MSmits: I did tests a while ago
MSmits: my bot is similar to yours in strength i think, maybe slightly weaker, but jaceks is quite a bit stronger than mine
MSmits: jacek didnt you train a network for this as well?
MSmits: thats pretty much a network
MSmits: in the sense that you do the same things in training it
MSmits: except you give it patterns in advance
MSmits: instead of letting it discover them
karliso: Oh, I did nt notice jacek submitted in october.
MSmits: by the way jacek, you may have to retrain your oware soon :P
jacek: more endtables?
MSmits: opening book now beats every NN except yours as p1. I beat it as p2 already with 60%
jacek: good, i need motivation
MSmits: wait till i submit, then retrain it
jacek: as karliso knows, being 1st is a curse
MSmits: should be nr 1 again
MSmits: the funny thing about opening books is i can keep growing it. I wonder for oware, if I can keep growing it until you run out of meaningful variations
MSmits: the game is so simple, that there arent so many different moves that are good
MSmits: so the branching for an opening book vs a good bot is very tiny
MSmits: maybe 1.3 or so
MSmits: your random is what's slowing me down. I had agade and robo done as 100% win in days
MSmits: recur se also has random
MSmits: but the bot makes more mistakes than yours
jacek: good thing the winter is coming, you can save money on heating by doing metamcts
MSmits: it's a little boring though, for this game
MSmits: I have no clue why moves are good and dont see the strategy thats happening
MSmits: for uttt it's easier even
MSmits: I can look at yavalath meta mcts all day, it's very fun
MSmits: the game is just more strategic
MSmits: as far as a human can tell anyway
struct: CPU doesnt like my code :'(
MSmits: as long as you like it
MSmits: self confidence
struct: very bad
jacek: you speculate too much
MSmits: i do ?
MSmits: oh struct
MSmits: well i do too
MSmits: it says bad speculation
MSmits: ohh I see, that means your ifs are screwy
struct: yeah, this happens when i place a piece
struct: and on floodfill
MadKnight: say no to branches
MadKnight: say no to conditional jumps and to variable jumps
MadKnight: write code with no ifs
MadKnight: if(stuff) a+=x just replace it with a+=x*(stuff==true)
jacek: no ifs? so use switches
MadKnight: no conditional jumps jacek
reCurse: If optimizing was that easy
reCurse: It doesn't necessarily mean it's bad
reCurse: Something to look into but any program has to be bound by something
MadKnight: ifs only in top-level parts
MadKnight: like main and reading inputs
reCurse: Ifs everywhere until proven otherwise
reCurse: Caring too much about it is as bad as caring not enough
AntiSquid: if (win.found()) break;
MadKnight: struct was asking that, not me
MadKnight: struct really likes to optimize stuff
reCurse: Yeah but your suggestion can sometimes be misleading
MadKnight: i was kinda joking about no ifs at all
reCurse: Ok then sorry it wasn't obvious
MadKnight: u can kinda say that's a top-level if, AntiSquid
jacek: use structs, not classes. more lightweight
MadKnight: in c# ?
MadKnight: it just makes them value-type jacek
VizGhar: Hey guys... Just looking at the UTTT, how many simulations are you able to run on first 2 runs with MCTS? I'd like to have some "benchmark" beforehand
struct: my bot is not great but I have 20-25k+-?
VizGhar: thanks struct :) - let's dive into it
struct: and that number is for 2nd turn only
struct: on first turn i just play on middle if im player 1
VizGhar: Yeah... maybe some "observed" moves from beginning might help, to reduce tree size and still drawing good moves... I just have to start with regular MCTS
VizGhar: wonder how far can I get... quite new domain for me
VizGhar: Also, yesterday I've seen someone mentioning pragmas for C++ I'm mostly Kotlin dev, that knows how to write basic C++ code. Where do I find how to use these pragmas?
VizGhar: ideally directly with CG
struct: usually I use these
struct: #pragma GCC optimize("O3","unroll-loops","omit-frame-pointer","inline")
VizGhar: god bless you :D Now I hopefully have all i need
jrke: what is black color int in java basically for CG sdk
struct: what do you mean jrke?
jrke: like i wanna do sprite.setColor(Black);
struct: you want the int that represents black color?
jrke: so what should be the value of Black
jrke: yes - 'you want the int that represents black color?'
VizGhar: 0x000000 = 0
jrke: oh thanks
struct: white = 0xffffff
jrke: is there any website where i can find many colors int?
struct: just replace the # by 0x
VizGhar: Material design colors (some nice selection of colors)
reCurse: Generally try to avoid pure white and pure black
struct: Usually I try to replace white by light grey
struct: But Im not a designer so Im not sure if its good or not
VizGhar: And if you are talking about sprites right away, why not to use some shiny nice colors? :) red/green/blue/yellow/orange/purple
reCurse: Doesn't have to be super gray, as long as it's something like 240-255 should be fine
reCurse: Also same applies to colors, try to stay away from programmer colors (anything with 255 and 0 in components)
jrke: i am doing it first time i will improve it
reCurse: wait *240-245
Presac: Are there only 4 code golf's?
jacek: + clashes :v
dbdr: eulerscheZahl: https://www.codingame.com/multiplayer/optimization/cgfunge-prime/leaderboard check it before Japan wakes up ;)
eulerscheZahl: congrats, well done
eulerscheZahl: did you follow my advice?
wlesavo: what a battle :slight_smile:
dbdr: eulerscheZahl: no, deterministic
eulerscheZahl: that makes it even more impressive
eulerscheZahl: poor xevi
dbdr: I have to tame him
dbdr: resistance if futile
dbdr: *is :D
eulerscheZahl: futile or fertile? :thinking:
Westicles: you can do random in cgfunge?
eulerscheZahl: if (random) print("PRIME") else print actual solution
eulerscheZahl: with very little randomness (maybe 5%) you still have a chance to pass all testcases and cut off a few points from the total score
Westicles: I see, very sneaky
dbdr: if someone starts it, others will too, and the shorter deterministic will still win I think
eulerscheZahl: but if only one does it and the others didn't even think about it...
eulerscheZahl: well, now the idea is out in public
dbdr: your fault or mine?
eulerscheZahl: i just said "advice" here in public and you used "deterministic" in the reply
eulerscheZahl: then i gave it all away
Westicles: If xevi starts on samegame I'll tweet her a hint
eulerscheZahl: you can share that hint with us
eulerscheZahl: or do you mean hint about random to save your same game lead?
Westicles: yeah, the latter
jacek: good evening
eulerscheZahl: how are your ATM studies going? do you learn how to spit out money?
DomiKo: hint to SameGame O.o
PeaceMoreZ: this site needs to be more popular
PeaceMoreZ: just sayin
BogiBruh: yoo is this the discord or is it the site wide chat
BogiBruh: ah site wide chat
BogiBruh: still epic
PeaceMoreZ: how did you solve the last clash
CursingLlama: I find shortest code rather stupid. Never gonna win that against python using c++.
MSmits: then dont use c++
MSmits: the idea is not that every language should be equally good
MSmits: a lumberjack will not complain that his hammer does not take down the tree as well as the axe does
MSmits: or that
MSmits: people have been doing 3D, who knows
AntiSquid: you're reading chainsaw man manga too JBM ?
AntiSquid: for a moment i thought you're cool .
jacek: what is it about?
AntiSquid: it's a story about a boy and his dog, jacek
jacek: like ed...ward?
struct: for puzzles?
AntiSquid: you mean edward scissors hands ? well he can retract the saws back into his arms like wolverine
struct: They are meant to take time
struct: all depends on your skill level
jacek: depends on puzzle, could be hours if you have experience with the algorithm. 1 week isnt bad
AntiSquid: well considering contests usually last 10 days, i guess you have to do it in 10 days Maxim251
AntiSquid: are you talking about puzzles or multiplayer? confused .
AntiSquid: ah ok
struct: Just take your time.
AntiSquid: no rush for puzzles, they only give XP anyway
jacek: well, some hard puzzles were easier for me than medium ones
struct: Im sure after you do a puzzle if you have a similar problem
struct: then you will be able to solve it faster
Westicles: That is an easy puzzle, it shouldn't take so long
Westicles: You can study the other solutions
struct: rollercoaster and the surface should be medium I think
struct: bruteforce works
struct: How long have you been coding for?
Westicles: Oh, in that case you are fine
struct: In 1 year you will solve the easy in under 10 minutes
struct: It all depends on your experiencey
struct: Hard to compare 2 months vs years
struct: Also what Westicles suggested can be helpfull, check other players solutions
struct: After you solve a puzzle you can check them
AntiSquid: some people love to code-golf everything ...
struct: Short doesnt mean good
AntiSquid: code-golf isn't strength, it's madness
therealbeef: code-golf can let you look at a language in new ways. you can learn stuff that could be useful down the road. But I think beginners shouldn't focus on that; it can lead to bad habits.
jacek: but your coworkers will love making the review of your code
Gabbek: JBM hello, do you have a moment? :)
Gabbek: I'm trying to solve FreeCell, I have one or two questions if you have a minute
Gabbek: I'm having big issue with autoplay, let me show you a screenshot, as replay doesn't work until mission is approved
Gabbek: 2 of spades gets placed on foundation, but 3 of spade doesn't - and my sequence of moves tries to make it into a situation where 2-6 of spades will get placed on foundation, but... I'm confused when I'm supposed to output my move to home and when it will be filled in automatically with auto-play
Gabbek: I manually added "3h" to my moves sequence and then it gets much further
JBM: "Microsoft FreeCell or FreeCell Pro only plays an available card to its homecell automatically when all of the lower-ranked cards of the opposite color are already on the homecells (except that a two is played if the corresponding ace is on its homecell); aces are always played when available."
Gabbek: I totally understand that, I just couldn't understand why it wasn't being autoplayed, that explains it quite well for a noob like me :)
Gabbek: I doubt I'll be able to finish it tomorrow, but I'm more than happy to work on it more once you'll resubmit it again - I would like to approve it once I'm able to solve it, as it's really well done
Gabbek: finish it today*
Gabbek: I've never played freecell before, so the note about aces and twos will be most likely helpful for others as well
Gabbek: it's a pleasure, the least I can do for so much work put into it :)
Gabbek: I think I've stumbled upon this issue earlier, but I just didn't realize it as I had much worse debug, so I didn't really know what was going on
Westicles: no plans to add undo, right?
Westicles: It would probably make it much much easier, so not a good idea. But good for us dumb guys
Gabbek: "much much easier" - this made me curious, is the intended way of doing it by using available moves provided as input and nothing else?
Gabbek: okey, I see. I couldn't find a use for provided available moves, but it's useful for debugging purposes and verification of your own availalbe moves
Gabbek: that's a good point
Gabbek: it's useful at the start for learning the rules and validation - that's for sure :)
struct: Finally I think I finished it
struct: I dont think I will optimize more
struct: Why is it working?
struct: Well you are passing the pointer to the function
struct: char* betty
struct: Its a pointer
struct: When you call passbyreference(betty);
struct: you are sending the first address of betty
struct: You want to change the value right?
struct: No because berry is an array
therealbeef: my advice: use std::array instead of 'raw' array, and references instead of pointers
Westicles: You should never use pointers unless you are porting code by a person who foolishly used pointers
struct: Averaged around 1.4mill in that game
struct: moves per turn
Maxim251: And I agree that pointers are bad, and i should use them only in special case. In one game I was forced to use pointer, to prevent function to output array of char, and this one property schock me.
therealbeef: Qt is not always nice, in my experience
therealbeef: basically, the 'name' of an array can be assigned to a pointer and the resulting pointer will point to the first element.  adds 1 and dereferences
struct:  == ptr + 1
betty = 'd';
struct: So what should that function be doing just to see if I understand
therealbeef:  = *(ptr+1)
struct: it is manipulating, I dont see anything weird
therealbeef: betty is of type char, which the compiler can always convert to type char*
therealbeef: so the betty inside the function is exactly the same betty as in main
therealbeef: (except that the length of the array is lost, but that is a nother story)
struct: yes, it should be like that
therealbeef: betty is type char/char*, so &betty is char**, but that can be assigned to char*, so betty inside the function is a pointer to a pointer to char(s), so you need to peel of one pointer-layer with *betty and then 
therealbeef: pointers are evil
therealbeef: if you use std::array<char,4> you get a nice object and pass to the function by copy or by ref with std::array<char,4>&
Maxim251: #therealbeef I hate pointers from begginning of learning, and future artickles about it give me this same thinking like You about pointers in program. Few days ago, I see on cppcon explanation about how procesor works and how compiler make 'comands' for procesor, This person say, that compiler is enough smart and coders dont have a reason to use pointers to make program faster. Actually, there was no boost of speed.
therealbeef: I agree
Maxim251: I also remember Bios Stromburg, -< Sorry, I know I spell his name terribly wrong, He is father of c++ and he said that He dont understand why peoples are using poiters in that way, if pointers was created for diferent porpouse, and it should be avoided ass much ass posible, and pointers was created for use in function, to prevent big data be copied twice
therealbeef: Bjarne Stroustrup
therealbeef: the idea of C++ is that you get all the nice abstractions like classes without any performance impact over C
Maxim251: He also was hoping that C users will move to C++ as next generation of coding, but somehow didnt succeed. I think it is because of Obiect orientation. Even for me its bit hard to us ethem, but I hardly exercise them. :)
Maxim251: I need say that.. I hate that many peoples are using 3 or 4 languages and they use ass c++, Its like mixing styles from C or C# .. Now I now hor recognise that styles, but at beggining of my learning, this types of styles, make my hard days to understand, it confused me a lot
AntiSquid: nsrsn asfjkickdsh
struct: click on bottom arrow
struct: or add ?disableChat to end of url
AntiSquid: nsrsn add ?disableChat to your codingame URL
struct: Site slow?
struct: I think I'm going to report it
struct: Its always at same time
therealbeef: eu+asia is asleep, usa not woke yet, good time for maintenance actions
struct: yeah, but is not usual
therealbeef: actually usa not asleep yet either
struct: yeah its a good time for usa atm
LastRick: maybe something is set to run during the middle of the night in france. Europe is sleeping. But yeah it does seem to hit every night in the evening (U.S. time)
LastRick: there you go
struct: Yeah, but it never slowed the site this much
LastRick: I've not been around that long. This is a new thing?
struct: This slow is recent
CaliforniaQT: probably crypto miners
struct: Has been happening for around a week
LastRick: maybe its me. Ever since the contest I've been playing CSB like crazy :)
CaliforniaQT: this is a great simulation for using dev servers at tech companies
CaliforniaQT: what is csb
LastRick: coders strike back
CaliforniaQT: i would look it up but site is too slow
CaliforniaQT: ah thanks
lopidav: how to report a bug?
lopidav: oh, forum
struct: forum or discord
lopidav: thank you
MadKnight: yea hi
Rockstar555: how are u