Chat:World/2020-08-26
jrke: no
jrke: you can add last league boss in ide
The_Auditor: Hi Automaton2000
Automaton2000: thanks, i'll give it a try
The_Auditor: Automaton2000 are you always on?
Automaton2000: if you go out of range
The_Auditor: what is your range?
The_Auditor: i lost you Automaton2000
Automaton2000: what is the last rule change."
The_Auditor: Automaton2000 why are you here
Automaton2000: it's the one i got stuck in silver league
AntiSquid: The-Code-Whisperer just click on the yellow #clash word in chat
Monsieur_Pook: lol it's just one guy spamming his twitch
jrke: yeah clash channel just single person spamming twitch links
NguyenHuyHoang1: fuck your mom
Monsieur_Pook: 어? 한국인
[CG]Thibaud: english please here
[CG]Thibaud: and obviously no insults, I kicked NguyenHuyHoang1
Monsieur_Pook: Any tips on code royale?
[CG]Thibaud: https://www.codingame.com/forum/t/code-royale-cc03-feedback-strategies/30903
[CG]Thibaud: https://www.youtube.com/watch?v=sFtRcK0VzQ8
MSmits: Monsieur_Pook you need to have some kind of build order, like build two farms, then a barracks etc. Also, you need something to make your queen run away from knights. Preferably around towers. So make sure you build those too
Monsieur_Pook: I'm still in wood league
MSmits: ahh, well then it's simple
Monsieur_Pook: I beat the boss 10/10 times on IDE but I still can't get over the boss in leaderboard
MSmits: just build what you need to beat the opponent
MSmits: try picking other opponents
MSmits: the boss is not your only opponent
MSmits: also, try switching players, make yourself player 2, see if you have a bug
Monsieur_Pook: I'm pretty sure I went up against all the people in wood tier 3
MSmits: I mean in the IDE
MSmits: you can select different opponents
MSmits: obviously you are losing some games
MSmits: check them out, see why
Monsieur_Pook: oh wow
MSmits: and do also switch players. It happens to me a lot that my p1 play is good, but i have a bug as P2
Monsieur_Pook: Thanks a lot man
MSmits: np
MSmits: code royale was my first contest
MSmits: barely knew what to do back then
Monsieur_Pook: This took me a few hours to code as well
Monsieur_Pook: it's really fun though
MSmits: contests take 10 days, I think I coded non stop because I had to learn all the skills I needed
MSmits: I doubt I had a more productive week in my life than that one :P
MSmits: Slept 14 hrs a day for 2-3 days I think, after that
MSmits: ahh the good ol' days
Monsieur_Pook: damn! do you get anything if you win the contest?
MSmits: some contests there are good prices, that one was t-shirts and artwork I think
MSmits: but they're all hard to win, the ones with good prices and the ones without
MSmits: prizes
MSmits: i mean
MSmits: code royale had around 2k contestants
MSmits: so you can imagine
Monsieur_Pook: Everyone's in top 100 haha
MSmits: who do you mean?
Monsieur_Pook: oh I mean they give you achievement or something if you get top 100 of a contest
MSmits: ohh ok
MSmits: I got to the top 3 one, never won a contest though, my best result is 2nd
Monsieur_Pook: wow! that's still really good
MSmits: yeah, thanks
MSmits: btw you can check out any profile of the players here and see how well they did in contests, multis, optims etc.
MSmits: just remember that the active players that chat here are not an average sample of the community
Monsieur_Pook: yeah they're like in top 1000 haha
MSmits: I think half of them are top 100
MSmits: also, your overall rank is not exactly the same as your botting skill or how well you do at contests
MSmits: there's also a time-investment component. If you're here longer and try more different things you'll get more points
Monsieur_Pook: I'm a total noob but somehow I'm like 5000
Monsieur_Pook: feelsbadman
MSmits: yes, many players dont have cp
MSmits: you need to enter competitive parts of the site for that
MSmits: puzzles dont cut it
jrke: yeah bot programming plays vital role in rank
Nicky1812: guys?
codeing: yes
Nicky1812: how to check that character is letters?
Nicky1812: in python
SPDene: x.isalpha()
Nicky1812: ok thx
SPDene: there's also x.islower(), x.isupper(), x.isdigit()
Uljahn: there're also internet search engines
codeing: The limit is only your imagination and your experience.
Nicky1812: :v
balance313: hello people of the internet, I am new to programming and trying to learn java. I am doing the power of thor puzzle and wanted to know what kind of command/function i need to say the following:
balance313: move until initialTx == lightX;
then move unitl initialTy == lightY;
codeing: while(initiialTx != ligthX){while(initialTy != lightY){initialTy++;} initialTx++;}
codeing: something like that.
codeing: let me write correctly.
codeing: http://chat.codingame.com/pastebin/c9557155-f1a7-436f-a229-46b61ada75d6
codeing: what are you think about guys ?
codeing: why ?
codeing: i'm 17
dbdr: JBM, inciting minors to use drugs since again?
dbdr: s/since//
JBM: i'm just answering their question
dbdr: both are true at the same time :)
JBM: what am i thinking about? i'm thinking about drinking more coffee
JBM: (and doing it too, by now)
JBM: i don't see incitation there, but obviously YMMV
dbdr: right, I'm an idiot
codeing: i think jbm is right
JBM: could be, i have no proof of that either but i'll trust your word
JBM: is caffeine classified addictive? i know several people who quit cold turkey without an issue
dbdr: addiction is orthogonal to drugness I think
dbdr: drug = chemically affects the brain
dbdr: not just the brain, apparently
JBM: those anti-drug movements have it all wrong
dbdr: > A drug is any substance that causes a change in an organism's physiology or psychology when consumed.
dbdr: the lead pic on WP is a cup of coffee :D
dbdr: oh, I was thinking about "psychoactive drug"
JBM: next up: are drugs forbidden to minors?
JBM: i'm pretty sure my mum gave me tea
JBM: and she's rather drastically "anti-drug"
dbdr: she misuses the term then
dbdr: coffee is fine for a teenage I think, not recommended for children
dbdr: but that's what I heard, did not fact check it
JBM: i had tea by 9, coffee by 20
JBM: coffee-as-a-pleasure by 25
dbdr: tea has far less caffeine than coffee generally
dbdr: so that makes sense
codeing: @balance313 does my command line ok ?
dbdr: wow, long time acquiring that taste :)
JBM: i heard it had its owd psychoactive that was just as effective
dbdr: tea contains caffeine, same molecule, same effect, apart from the dose
JBM: all it takes to like coffee is to taste a good one
dbdr: it's the dose that makes the poison, as the saying goes
dbdr: IC50 in technical terms :)
dbdr: LD50 rather
Nicky1812: guys?
Nicky1812: in python
Nicky1812: does it have a function that we can change 'abcd' to 'dcba' ?
NoiselessDictator_e4c4: dbdr sugar can also be a drug
dbdr: yes, it is
dbdr: some doctors say it is also technically a poison
dbdr: fructose, actually
JBM: i heard they use it as an anesthetic for babies
JBM: feels weird to think of sugar that way
NoiselessDictator_e4c4: sugar is 'technically' a drug and a poison there is no confirmed statement on the internet that it is always or 100% a drug/poison
NoiselessDictator_e4c4: prove me wrong
NoiselessDictator_e4c4: * i meant fructose
NoiselessDictator_e4c4: last time i talked about the benefits of either windows or linux now it is drugs what is this chat dude
pro1p: hey can someone help me with this? I'm on power of thor episode 1 and i struggle to resolve an error
pro1p: http://chat.codingame.com/pastebin/3c7c2679-66a0-4a78-a1f3-7f4a27987a71
pro1p: Ydirection and Xdirection are underline in one of the last lines and they say to me:
pro1p: Use of unassigne local variable 'Ydirection'
pro1p: Use of unassigned local variable 'Xdirection'
QossMean: Initialize Xdirection and Ydirection with ""
QossMean: Otherwise they will be null
NoiselessDictator_e4c4: damn i was about to write the same
QossMean: Also there's a logical error
QossMean: Because 0,0 is top left
QossMean: So if you go south, y should be incremented
KrisEssa: Hello, can anyone explain to me how to make multiple jumps in 7 turns in Shadows of the Knight, test 4
Uljahn: KrisEssa: hi, yes, i've sent you a dm
dbdr: hm, looking good :)
AntiSquid: ah new language counters now on main page
eulerscheZahl: language counters?
dbdr: codingame.com
eulerscheZahl: do we see the same start page?
AntiSquid: counter for puzzles solved by language
AntiSquid: next to certificates
AntiSquid: clear cache, i have no idea what you are seeing :/
Illedan: I see them
Illedan: C#, JS and Rust for me :o
eulerscheZahl: https://prnt.sc/u69oc3
dbdr: :D
Illedan: A/B testing?
eulerscheZahl: ah, ctrl+F5 did the trick
dbdr: noob ;)
eulerscheZahl: C#, then python3, then C++
Illedan: Max 3?
AntiSquid: but only first 3 show up ... so any other language doesn't count?
dbdr: https://i.snipboard.io/kZivA0.jpg
eulerscheZahl: C#: 306 python3: 47 C++: 18
dbdr: any idea what order they use? random or...?
Illedan: Most solved I guess?
dbdr: yeah
AntiSquid: most solved for me
Illedan: 96, 8 and 4 :D
AntiSquid: i have 5 boxes each
eulerscheZahl: i think they include multiplayers too
eulerscheZahl: i have 3x C++ (STC, UTTT, bulls and cows) + 15 puzzle solutions
eulerscheZahl: or did I do more in C++ than I had to? :scream:
dbdr: cannot be, if you were a masochist you would be using windows ;)
AntiSquid: now time to guess what they showcase in the empty space to the right
eulerscheZahl: i'll plant a cactus there for now
Illedan: What name do you give you cactus?
AntiSquid: activity calendar maybe ?
Illedan: I don't like this as a start page though. Would more like to see this on a player page. And then view friend activity, recent submits in my recent multies etc etc on the start page
eulerscheZahl: https://imgur.com/a/mJSVuYo perfect
Illedan: lol
Illedan: What name did you give your cactus?
dbdr: CG can hire euler as a graphic designer now
eulerscheZahl: i'll name it cast-ctus
eulerscheZahl: no longer needed when python becomes my most used language
dbdr: coctus?
eulerscheZahl: hm, it's below the CoC tile...
dbdr: and has a skull...
dbdr: so in the theme
AntiSquid: site activity would be nicer on front page, think someone already mentioned this, but don't see any changes
xlr4829: whats mean hypothenuse number ??
jrke: oh dbdr nice lead in D&B
dbdr: thanks jrke
[CG]Thibaud: the "view friend activity" will come, but won't be there
eulerscheZahl: so there's still hope for my CoCtus :)
aCat: and 'view contributions' tab of a user
jrke: dbdr whats your current algo minimax?
dbdr: yes
jrke: depth ?
codeing: @jrke answer my request.
AntiSquid: [CG]Thibaud but it would be more interesting to have side-wide statistics on front page like the community tool that shows which multis are most active for the current week for example
eulerscheZahl: aCat: 7 contributions http://eulerschezahl.herokuapp.com/codingame/puzzles/?q=aCat&category=ANY&author=on
AntiSquid: even a #clash link channel or other popular channel links would help a lot more on the front page
eulerscheZahl: same game is missing, I should index the puzzles again :thinking:
AntiSquid: aCat likes clash eh?
aCat: nope
aCat: that were my early days
aCat: from now on only true puzzles
aCat: try to never touc in-out again
aCat: CG is not for this
aCat: nice site euler didn't know about this one
Schwase: anyone have any good ideas for how to good about learning C++?
Schwase: i have taken 2 full term java courses but that wasnt recent and ive really only screwed around coding and havent utilized all the tools available
Schwase: im assuming just coding on CG isnt gonna be all that much help
AntiSquid: practice? unless you have a particular aim in which case practice it for that particular goal?
Schwase: im taking a very intensive course that doesnt require prior use of C++ but definitely takes a lot of work if never having used C++ before
AntiSquid: CG is good too to practice
Schwase: i guess i should just use C++ so its not unfamiliar
AntiSquid: very intensive course for beginners? what does it cover? sorry but sounds fishy to me
AntiSquid: i mean you learn more on CG or similar sites just by doing than any beginner course
Schwase: not for beginners, the prerequisite is comp sci 1
Schwase: its not a C++ course
Schwase: its data structures
Schwase: and the language used is C++
AntiSquid: does it include algorithms for the data structures?
AntiSquid: still no idea what your goal is after learning this so depending on that you will find the answer how to improve your C++ ....
Schwase: http://www.cs.rpi.edu/academics/courses/spring18/csci1200/syllabus.php
Schwase: this is the course syllabus
AntiSquid: ya i am sure you learn more on CG just do the multi section or even a single contest
Schwase: youre saying more than the entire course???
AntiSquid: well yes just make sure to also read post mortems on forums to give you a better idea
AntiSquid: here this is more intense than your course imo: https://www.youtube.com/channel/UCBLr7ISa_YDy5qeATupf26w
YCS-Venom: Hello world
AntiSquid: E: Unable to locate package world
Schwase: http://www.cs.rpi.edu/academics/courses/fall18/csci1200/hw/06_inverse_slitherlink/hw.pdf
YCS-Venom: print("Hello world")
YCS-Venom: cout<<Hello world;
Schwase: every term, there is a large assignment that is notoriously hard and long
Schwase: you get a week to complete it
Schwase: that ^ was 2018 fall assignment
AntiSquid: you learn a lot more theory there
Schwase: im a physics major what am i doing man
AntiSquid: ping Msmits when you see him online he is a physics person too
AntiSquid: ask him about C++
Schwase: ok
AntiSquid: quite sure he learned a lot by participating on CG
jrke: where is my astrobytes :(
dbdr: jrke, what have you done? :D
Uljahn: Automaton2000: where is Absentbytes?
Automaton2000: you don't have to pay for it
C0d1ng_Anub: https://www.codingame.com/clashofcode/clash/135347348462dcfb7177bbc0df2a26573105a96
SPDene: [ut that in #ckash channel instead of here please
SPDene: #clash *
C0d1ng_Anub: oh ok
eulerscheZahl: Astro is missing too? I'm still looking for my struct :(
dbdr: #missingCodinGamers
inoryy: I think I saw him recently
inoryy: Astrobytes that is
eulerscheZahl: i did yesterday i think
eulerscheZahl: no need to worry yet
dbdr: thanks to AntiSquid's devotion, D is consistently last in basically every single new game :D
eulerscheZahl: :D
dbdr: #dedication
dbdr: #D-dedication
eulerscheZahl: D-dication
dbdr: yeah, that's the one I failed to make :D
Aravindhsiva: https://www.codingame.com/clashofcode/clash/13534971eb10bf22ad19ed21a00aa280f0c77f7
Aravindhsiva: Anyone can join
EveryOS: #clash
AntiSquid: dbdr i submitted default code, you know that right? @_@
AntiSquid: and quite sure i submitted default for other multis when i didn't have time
AntiSquid: just for extra numbers
dbdr: I know :)
AntiSquid: in fact if the main page would show anything useful maybe it would show i mostly only submitted on new multi release like once maybe twice at most
aCat: how can I rotate rectangle based on its center?
aCat: it does not have setAnchor
JBM: it's that bug i haven't fully packed up for reporting yet
JBM: but jupoulton thinks you can
aCat: ;/
eulerscheZahl: put it in a group with shifted center
eulerscheZahl: and rotate the group
eulerscheZahl: that's what I did for Onitama (rotating movement cards)
eulerscheZahl: btw if you want to get stuff fixed in the SDK, making a pull request with a fix can accelerate things ;)
aCat: I don't get the relation between the original coordinates, and shift coordinates /rotate when in group
aCat: I mean tried 2 things and didn't work
AntiSquid: o/
eulerscheZahl: you draw your rectangle around the point (0,0), e.g. from -100 to +100
eulerscheZahl: put it inside a group and place the group where you want the actual center of the rectangle
eulerscheZahl: then you rotate the group
eulerscheZahl: or was it more complicated? like rotating and moving at the same time? :thinking:
JBM: it's just completely unnatural to me
eulerscheZahl: https://github.com/eulerscheZahl/Onitama/blob/master/src/main/java/Onitama/view/CardView.java#L86 read this if you are brave enough
JBM: it made me think rotating a group killed the non-sprite shapes for quite some time
eulerscheZahl: i do 2 commits with half the rotation to chose the direction (clockwise / counterclockwise)
eulerscheZahl: took me a bit as well to get it right. especially as onitama also changes the center of the rotation depending on the card position
JBM: doesn't it just take its sign?
eulerscheZahl: so it's 2 nested groups moving inside each other
eulerscheZahl: if you do a 180° turn, the SDK decides the direction
eulerscheZahl: also you can only rotate by full degree angles, there is some: toDegrees().round()
JBM: i'm gonne have to check that 180d turn though
JBM: i can't have gotten all the rotations right in tvc by chance
eulerscheZahl: you can believe me, i was cursing about this for a while :D
eulerscheZahl: i mean believe that i was in rage. not that i recall every little detail
aCat: ok done
aCat: I already did it correctly
aCat: but used degrees :D
eulerscheZahl: :D
JBM: how can it even check for ==180
eulerscheZahl: and then converted to degrees for serialization
JBM: ok let's assume it converts right
JBM: testing with positive Math.PI
JBM: can't remember if that's expected
eulerscheZahl: now try negative PI
JBM: let's have a pi/2 to clarify
JBM: that's kind of enough, pi/2 goes right
JBM: good thing i never used a 180 *at all*
eulerscheZahl: and that's why onitama does the rotation in 2 parts with half a frame each. but somehow i have a feeling that the rotation speed isn't constant when watching replays
eulerscheZahl: that's where I decided to rage-quit
JBM: this is so unexpected it warps the mind to think how they'd have implemented that behind the scene
eulerscheZahl: i'm not even sure which part is an SDK quirk and which is just pixi
JBM: some people need a good affine geometry refresher
eulerscheZahl: another one: try to draw a polygon with line color+thickness and fill color
JBM: naaaaw i don't do complex stuff like that
eulerscheZahl: the first and last point won't be connected by a line but it will be filled
JBM: i made a sprite of everything after i discovered the rotation thingy mentioned above
JBM: ok so git checkout doesn't erase the local modifications anymore
JBM: what human-friendly name have they given *that* now?
eulerscheZahl: git reset --hard
JBM: yeah that's my alternative way, but i had a git checkout in the command line buffer
eulerscheZahl: that's a good reason :D
JBM: i try to use reset mostly when i want to move the commit pointer
JBM: same effect, different mindset
AntiSquid: i use arch
Allis: Typical of...?
dbdr: of arch users
Allis: :laughing:
markyy: the duckie just solved her first puzzle of the week
markyy: say gratz to the duckie
MSmits: :duck:
GnourtTahn: :v
GnourtTahn: ong Tieuholy dang lam roi
GnourtTahn: chua xong
GnourtTahn: doi ti
Tieuholy: xong rồi solo tiếp haha
DmcPhuc: chết r sao để lấy bảng chữ cái trong java bâ h
DmcPhuc: rủ thanh niên nữa chơi
GnourtTahn: xong
GnourtTahn: toi xai ascii ong
DmcPhuc: tui ko bt lấy ascii trong java @@
GnourtTahn: doi sang int roi doi sang char
GnourtTahn: char character = 'a'; int number = (int) character;
GnourtTahn: no ra 97 hinh nhu la vay
DmcPhuc: java sài unicode huhu :[[
GnourtTahn: thoi tui off pp
Tieuholy: tổng các phần tử trong mảng thôi.
Tieuholy: http://chat.codingame.com/pastebin/c2851602-28a5-4437-ad44-d04de47ce020
Tieuholy: nhanh ra bài khác cậu.
Tieuholy: t bị mắc dấu khoảng trắng
DmcPhuc: của tui nó ko in ra j hết :v
DmcPhuc: tui xử lí xâu kém lám :[[
Tieuholy: chạy đúng mà bị dư 1 dấu khoảng trắng
FluffyNugget: me being english be like: . ____ .
Monsieur_Pook: Keep the chat english only
FluffyNugget: :>
DmcPhuc: e thoát có bạn tui mời
FluffyNugget: welp anyone who speaks english wanna talk :P
trimai_: ok
penguin0: I don't know how to speak Vietnamese
penguin0: I can't get the right accent
Proudrooster: How do you print to stderr in C?
reCurse: fprintf(stderr, ...)
Proudrooster: Thanks so much, works perfect!
Proudrooster: Doing the chuck norris puzzle :)
GAL1LE0: Don't Panic - Episode 1