Chat:World/2021-12-08

From CG community
Jump to navigation Jump to search

UZUHAMA: Sometimes, coding can make me very suicidal

UZUHAMA: I understand, ur_momM

UZUHAMA: I think I'm goig insane :)

UZUHAMA: GO FOR THE HUMAN YOU CAN REACH IN TIME, GODDAMMIT

UZUHAMA: googgod, help me right now

Dren: whats the problem

UZUHAMA: this freaking thing won't work

UZUHAMA: i wrote a code so that it'll calculate whether zombie or player will reach the human first

UZUHAMA: BUTD it won't worj , holy cow.

UZUHAMA: Bruh

UZUHAMA: Nothing changes

UZUHAMA: I literally FLIPPED the comparison operator

UZUHAMA: NOTHING changed? u kidding me>?

UZUHAMA: help

UZUHAMA: anybody

UZUHAMA: i'm done

UZUHAMA: :grin:

UZUHAMA: yes

UZUHAMA: im hopeless

UZUHAMA: nice

UZUHAMA: Wontonimo

UZUHAMA: Anybody

Default avatar.png MynameisDuy: hello

UZUHAMA: I'm sorry

Default avatar.png MynameisDuy: long time no see

UZUHAMA: I'm ahving a mental breakdown right now

UZUHAMA: :smile:

Stephen20: :D

UZUHAMA: hello

UZUHAMA: help me

UZUHAMA: Help

UZUHAMA: I'm doing

Stephen20: trying typing !H3LP

UZUHAMA: dying

UZUHAMA: !H3LP

Stephen20: lol jk

DialFrost: hi guys

DialFrost: any way i can shorten this?

DialFrost: f,p,d=int(i[0]),int(i[1]),i[2]

UZUHAMA: is there any way to share my code with you guys??

UZUHAMA: I need help right now

Stephen20: Hey DialFrost; no cheating

DialFrost: ?


UZUHAMA: How do I share a code

Stephen20: i hv no idea

DialFrost: js copy paste

Stephen20: ask one of the mods

UZUHAMA: I don't think copying and pasting the whole thing into the chat is a good idea

UZUHAMA: but I'm hopelesss so I'm doing it

UZUHAMA: http://chat.codingame.com/pastebin/dd40eaba-e359-4abe-a1e7-cf4f6ebaa251

UZUHAMA: nice

DialFrost: ok it doesnt matter

DialFrost: i dont code in that language lol

UZUHAMA: noooooo

UZUHAMA: java

DialFrost: ye

DialFrost: i code python

UZUHAMA: very sad

UZUHAMA: I'm going to commit no live

UZUHAMA: bye

Default avatar.png MynameisDuy: bruh

UZUHAMA: :upside_down:

UZUHAMA: bye :DD

Default avatar.png MynameisDuy: nuuuuuu

skotz: looks like you're adding x and y coords together

Default avatar.png MynameisDuy: he left :]

ZXC01: hi!

DialFrost: hi

stanleyipkiss: hey

stanleyipkiss: :japanese_ogre:

ZXC01: ?

stanleyipkiss: whatsup?

Killuaa: hi

Mortis_666: hi

ZXC01: hi

Codyz: hi

Thorcode: hi

EBU-ROBOT--Rezzaz-El-Cezeri: hi

EBU-ROBOT--Rezzaz-El-Cezeri: L U JS

Fatbouddha: hey

Default avatar.png tinydwarve: Hi

TimothyAlexisVass: I didn't understand this one...

derjack: c-c-c-combo breaker

TimothyAlexisVass: input: http://chat.codingame.com/pastebin/742ed0de-7a12-4346-8c55-a9e9cd216f0f

TimothyAlexisVass: and neither did anyone else :\

Mortis_666: er

Mortis_666: day may

Mortis_666: temperate date

Mortis_666: ABAB

Mortis_666: get it?

TimothyAlexisVass: oh, so the ending

Mortis_666: yep

TimothyAlexisVass: You were quick to see that.

derjack: cheating eh

Mortis_666: 😅

UnicornFlake: What

UnicornFlake: CHEATING

ZXC01: hi

DialFrost: hai

ZXC01: hnm so does the code work?

Thorcode: yep

Thorcode: probably

ZXC01: ?

Thorcode: he is in top of bronze

ZXC01: o

ZXC01: thor, are you done with your puzzel?

Thorcode: nah

DialFrost: wat puzzle

UnicornFlake: I AM KICKE YOU UP LIKE DA

ZXC01: hey uni stop spamming

DialFrost: er is this guy alrgiht

DialFrost: btw whats with the 30min wait time to progress to next league

ZXC01: oh so you need to wait 30 min to get to next league

DialFrost: ye

DialFrost: idk y

ZXC01: to prevent code copying

DialFrost: ?

DialFrost: i dont get it

5DN1L: ZXC01 Are you sure?

DialFrost: btw does anyone here play chess

ZXC01: hmm i think its one of the reason

ZXC01: chess?

Uljahn: that's just a cooldown for you to take a break and make hydration check

Thorcode: me

DialFrost: tx ulijahn

Hehehehehehehehe: hallo

DialFrost: hi

Hehehehehehehehe: hola

aiszhang: hello

ZXC01: hey, can anyone help me with great escape bronze?

ZXC01: ?????

Uljahn: ZXC01: https://www.codingame.com/forum/t/the-great-escape-strategies

ZXC01: ah thx..

Uljahn: https://arxiv.org/abs/2112.03178 PoG :scream_cat:

BlaiseEbuth: https://imgur.com/gallery/KWZqHPX Pogs :scream:

Default avatar.png noobestnoob: good noon

Monke.: hello

derjack: oh my

derjack: policy network :unamused:

derjack: and they evaluate chess against sf8

derjack: oh and they use MLP for poker :o

Siddhu131: ..?

Siddhu131: hmm

Uljahn: hidden markov model?

Uljahn: Automaton2000: are you hmm?

Default avatar.png Automaton2000: thanks for the help :)

DialFrost: great gold league mad pod racing is decently tricky

5DN1L: yes, the lower leagues are relatively trivial once you know the conditions to pass

derjack: it is when the real fun starts

Default avatar.png OmegaTurboGaming: hello there

Jojo_lasticot: Hello everyone

Default avatar.png OmegaTurboGaming: god daim a big bro

Jojo_lasticot: Oh stop im not big

Default avatar.png OmegaTurboGaming: yes sir

Default avatar.png OmegaTurboGaming: you're fat

5DN1L: coding discussion please

Default avatar.png OmegaTurboGaming: soory my lord

Jojo_lasticot: Sorry mister

5DN1L: Automaton2000, do you have any tips for the Gold League of Mad Pod Racing aka csb?

Default avatar.png Automaton2000: so you have to solve the puzzle of the week

5DN1L: That's a different bot programming game!

WillChang: yeah

Tjockberra: Is this a good place to start learning C# or should I go somewhere else for the basics?

5DN1L: Better go somewhere else first, then come back here to practise

Default avatar.png noobestnoob: sololearn.com might be useful

Default avatar.png noobestnoob: https://www.sololearn.com/learning/1080

AlkhilJohn.: Can some mod please set my profile cover to default? Thanks.

5DN1L: Why would you want to mimic AlkhilJohn in the first place? :open_mouth:

5DN1L: Oh, and there's one AlkhilJohnStan too

Default avatar.png atrovski: how to solve clash code :(

Default avatar.png UnnamedCodinGamer: community contributions test in ide button does not seem to be working

Default avatar.png UnnamedCodinGamer: can anyone check that?

5DN1L: Mentioned by a few other people too

5DN1L: Use the bottom one instead

Default avatar.png UnnamedCodinGamer: I hadn't noticed that it existed

Default avatar.png UnnamedCodinGamer: thanks

5DN1L: haha

5DN1L: you're welcome

BigMumkey: Hello, im new coder, please gib knowledge

5DN1L: Automaton2000, gib knowledge

Default avatar.png Automaton2000: and i dont have much time to do that

Default avatar.png Ezuker: Hey guys

Default avatar.png gamerrboii: hello

Napp: Hello

Default avatar.png gamerrboii: im new to codigames

Default avatar.png gamerrboii: i o mpleted the startinglevels

Default avatar.png gamerrboii: and the first level of the ai

TimothyAlexisVass: Anyone doing advent of code?

BigMumkey: Yeah!

Napp: mumke

Napp: check dms

TimothyAlexisVass: So, the first input is 2000 lines, right?

TimothyAlexisVass: It's such a very simple problem and I'm getting the wrong answer, so I'm thinking if I somehow have the wrong input...

Napp: well, clearly

TimothyAlexisVass: I get 1547, how the * do they get 1548?

Napp: you add "hi"

BigMumkey: I have the solution and can help you if you want

Napp: :money_mouth:

TimothyAlexisVass: I was comparing strings...

Uljahn: that's not actually relevant to Codingame, pls go to #AoC2021 or use DM

TimothyAlexisVass: Had to convert it to int

TimothyAlexisVass: Thanks Uljahn

BigMumkey: Ok Timothy, please refrain from using the chat moving forward

Napp: please follow me on tiktok

Napp: https://vm.tiktok.com/ZM8789er8/

BigMumkey: Just did, good initiative Napp!

Napp: hello

derjack: oO

Uljahn: Napp: don't spam here, that's a bannable offence

Uljahn: *offense

BigMumkey: Just asking, but when did he spam?, i mean spamming is the repeated sending of similar messeges, which he has not done.

Uljahn: any off-topic might be considered as spam, this chat isn't meant for promotion of personal channels

Napp: what does the red text mean?

BigMumkey: There is nothing about spam in the rules of this text-channel as far as i can see.

Uljahn: Napp: it means the message contains your nickname

Napp: BigMumkey how long was your code on the Thor thing?

BigMumkey: 57 Characters

BigMumkey: How far are you in the group exercise

Napp: :drooling_face:

Napp: which group exersice?

Napp: exercise*

BigMumkey: The Pyramids one.

Napp: Havn't started yet, wby?

Uljahn: use DM guys

Napp: well, it's code related

BigMumkey: We are sharing knowledge atm, quit the chat nonamer.

BigMumkey: If there is any break in the Rule of Conduct, i will gladly change my chatting mode.

derjack: oh my

5DN1L: Not sure how that counts as "knowledge". Not sure what I can learn from it. Just don't treat this as if it's a private chatroom.

BigMumkey: Uljahn: Can we get a Danish Channel

Urutar: How about #Denmark ?

Uljahn: "Using the /join command, you can join and create group chat rooms with your friends and discuss your favorite topics."

Napp: #sutmigtør

BigMumkey: thanks Uljahn

Default avatar.png SimonKnudsne: hevlo

DialFrost: hai

Napp: anyone follow 4 follow?

chenhaorantianjiayi: https://escape.codingame.com/game-session/LPH-FjR-6EO-3iz

HeadShotHans: Where can i find the leaderboard?

Uljahn: https://www.codingame.com/leaderboards/general/global

HeadShotHans: Thanks

chenhaorantianjiayi: learn more english

chenhaorantianjiayi: learn more english

Default avatar.png LazyfromDiscord: where?

Uljahn: hey, no need to repeat yourself

chenhaorantianjiayi: https://escape.codingame.com/game-session/LPH-FjR-6EO-3iz

derjack: :unamused:

Default avatar.png SHHristov20: waba jaba

Default avatar.png MMMarinov20: tuguduk tuguduk

Default avatar.png MMMarinov20: a

Default avatar.png MMMarinov20: a

Default avatar.png MMMarinov20: a

5DN1L: no spam, and English only in this channel please, thanks

Default avatar.png Overbed: how do i make 8 have the value of 2 (circles)

Default avatar.png SHHristov20: 8-6

Default avatar.png MMMarinov20: 1+1

Default avatar.png Overbed: i mean in code

Default avatar.png Overbed: bro

Default avatar.png SHHristov20: int a = 2

Default avatar.png Overbed: in python?

Default avatar.png MMMarinov20: num = 2

Default avatar.png Overbed: bro how do i count the circles in code

Default avatar.png Overbed: all numberx

Default avatar.png SHHristov20: i++

chenhaorantianjiayi: https://escape.codingame.com/game-session/LPH-FjR-6EO-3iz/in-game

Uljahn: chenhaorantianjiayi: stop posting invites here

Uljahn: just go to coding-escape channel on discord

rizonbro: guys I found discord file

rizonbro: go to c folder

rizonbro: and user

rizonbro: and app data

rizonbro: and roami and local

rizonbro: its real

rizonbro: I am not lie

Default avatar.png Overbed: hello can i post a code here and can anyone figure out whats wrong with it?

rizonbro: ok

Default avatar.png Overbed: http://chat.codingame.com/pastebin/da18062e-ff07-4da1-989d-7d86df3aed2b

rizonbro: input it is

Default avatar.png Overbed: i need to find the circles a

Default avatar.png Overbed: number has

rizonbro: wait open visual and text it html:5 and make folder bedore the file make html and copy the code there in the visual studio code and the abswer is be correct

Default avatar.png Overbed: bruh what is an ASCII value

Uljahn: "for i in range(s)" is wrong i guess

Default avatar.png Overbed: why?

rizonbro: maybe

rizonbro: I am like that I sad

Default avatar.png Overbed: whats the good like for i in range then?

Default avatar.png Overbed: what was wrong

Uljahn: it gives you all numbers from 0 to s-1, and you need to examine the digits of s

rizonbro: and open browers and left click and name broswer

Default avatar.png Overbed: would it be better to make a variable and then make it 10 and then use it in the range?

Default avatar.png Overbed: sorry i am a newbie

rizonbro: no what you use languga

rizonbro: :troll:

Default avatar.png Overbed: i use python

rizonbro: bruh use pycharm

Default avatar.png Overbed: what

Uljahn: you have to iterate the digits of s, try this: for digit in str(s):

   i = int(digit)

rizonbro: for python nake

Uljahn: rizonbro: could you please stop spreading nonsense

Default avatar.png Overbed: my clash of code already expired sadly

rizonbro: ok

rizonbro: uljahn

Default avatar.png Overbed: uljahn i think that would work

Uljahn: Overbed: you can continue the clash, but have to find the contribution first here http://eulerschezahl.herokuapp.com/codingame/puzzles/

rizonbro: maybe


Default avatar.png Overbed: huh how does this work?

Uljahn: input some keywords and use serach

Uljahn: *search

Default avatar.png Overbed: oh i found it

Default avatar.png Overbed: Errors ValueError: invalid literal for int() with base 10: ' ' at Answer.py. in <module> on line 5

Default avatar.png Overbed: for digit in str(s):

   i = int(digit)

Default avatar.png Overbed: it gives error

5DN1L: can s be negative?

Default avatar.png Overbed: you mean in my code?

5DN1L: no, the input

Default avatar.png Overbed: no

Default avatar.png Overbed: but its something like

Default avatar.png Overbed: 8888 9235 2832 2875

5DN1L: oh there are spaces in between

Default avatar.png Overbed: 1111 3213 7662

Default avatar.png Overbed: yes how do i like fix the error code?

5DN1L: you have to remove the spaces first

5DN1L: or split

5DN1L: depending whether the code asks for the values separately or not

5DN1L: for each number

Default avatar.png Overbed: how do i do that exactly

5DN1L: the link?

5DN1L: to the question i mean

Uljahn: guess it's Useful digits

Default avatar.png Overbed: remove(s, "")

Default avatar.png Overbed: or s = s.remove(" ")

5DN1L: if the whole string requires just 1 answer, then just remove the spaces

Default avatar.png Overbed: what do you mean

5DN1L: if the different numbers should be handled one by one, then split it

Default avatar.png Overbed: it needs to be 1 answer

Default avatar.png Overbed: not 8 9

Default avatar.png Overbed: or something

5DN1L: Uljahn ok i'll search it

5DN1L: thanks

Default avatar.png Overbed: yes its useful digits

Uljahn: https://www.codingame.com/contribute/view/14469b605b22b1554aa3fc5746dea60ebf37

Default avatar.png Overbed: the contribution

5DN1L: great :)

5DN1L: ah, ok

5DN1L: just remove the spaces

Default avatar.png Overbed: how

5DN1L: similar to what you wrote

5DN1L: oops

5DN1L: no

5DN1L: replace

5DN1L: use the replace function

Default avatar.png Overbed: s = input.replace(" ", "")?

5DN1L: input()

5DN1L: add the brackets there

Default avatar.png Overbed: s = input().replace(" ", "")

Default avatar.png Overbed: diesbt wirj

Default avatar.png Overbed: work

Uljahn: :tada:

Default avatar.png Overbed: http://chat.codingame.com/pastebin/a30a6449-039e-400c-a5eb-e9fcacd36632

Default avatar.png Overbed: got this but doesnt work

Default avatar.png Overbed: doesnt count them up or something

Uljahn: a = 0 and b = 0 should be outside the loop i guess

Default avatar.png Overbed: yes! it works

Default avatar.png Overbed: is there any way to make this code smaller?

5DN1L: Yes, but you'd better try it yourself first?

Uljahn: https://www.codingame.com/blog/code-golf-python/

Default avatar.png Overbed: you cant do something like if i== 0,9,6:

   a=a+1

5DN1L: can't, but you can if i in [0,9,6]:

Uljahn: also a+=1

Default avatar.png Overbed: i got it a whole lot smaller now

Default avatar.png lakaoe: http://chat.codingame.com/pastebin/5c988fd9-d277-48df-aec0-52d5b58945df

Default avatar.png Overbed: why create 4 variables

Uljahn: you could use s.count("8")*2+s.count("6")+...

Uljahn: no need to loop

Default avatar.png lakaoe: im a beginner so that was all ive learned

Default avatar.png Overbed: whats the count function?

Uljahn: read the docs

Uljahn: https://docs.python.org/3/library/stdtypes.html#str.count

Default avatar.png Overbed: thanks

Default avatar.png Overbed: s.count("8")+2+s.count["6","9","0"]+1

Default avatar.png Overbed: doesnt work

5DN1L: because count accepts only one string as the string argument

Default avatar.png Overbed: that means?

5DN1L: you can put three strings "6", "9", "0" in one count

Default avatar.png Overbed: i can only do 1 number in brackets?

5DN1L: can't*

5DN1L: yup

5DN1L: and in () not in []

Default avatar.png Overbed: ah

Default avatar.png Overbed: s = input() print(s.count("8")+2+s.count("6")+1+s.count("9")+1+s.count("0")+1)

Default avatar.png Overbed: print out 9

Default avatar.png Overbed: it is supposed to be 6

5DN1L: +1 not needed

5DN1L: +2 should be *2

Default avatar.png Overbed: why?

5DN1L: you count the number of 8

5DN1L: then multiply by 2

5DN1L: you count the number of 6

5DN1L: then multiply by 1

5DN1L: or not

5DN1L: because no difference whether multiply by 1 or not

5DN1L: similarly for 9 and 0

Default avatar.png Overbed: what would happen if input was 5243 and print(s.count("5")*2)

5DN1L: what do you think?

Default avatar.png Overbed: i have actually no idea

Default avatar.png Overbed: 10

5DN1L: "5" is a string

Default avatar.png Overbed: i dont understand

5DN1L: 5*2=10

5DN1L: "5"*2="55"

5DN1L: "5243".count("5")=1

5DN1L: numbers and strings are different things

Default avatar.png Overbed: oh so without " is times eachother

Default avatar.png Overbed: and

Default avatar.png Overbed: "8"*2="88"?

5DN1L: yes, because "" makes the digit a string

5DN1L: correct

5DN1L: without "" it's a number

Default avatar.png Overbed: but how does this represent

Default avatar.png Overbed: the circles

Default avatar.png lakaoe: it doesnt

Default avatar.png lakaoe: i thikn

Default avatar.png Overbed: OHHHH i get it

Default avatar.png Overbed: wow

Default avatar.png lakaoe: it says the numbers not how many circles

Default avatar.png Overbed: 8 is the value of 8

Default avatar.png Overbed: 2*

5DN1L: yes

Default avatar.png Overbed: and when u .count it

Default avatar.png Overbed: it has 2 "8" and then times 2

Default avatar.png Overbed: 2 * 2 = 4

Default avatar.png Overbed: right?

5DN1L: step by step

5DN1L: s.count(t) means you count how many times t appears in s

Default avatar.png Overbed: yes

5DN1L: so "5243".count("5") means you count how many 5 appears in "5243"

Default avatar.png Overbed: omg ty this helps alot

5DN1L: hence the answer is 1

Default avatar.png lakaoe: and if it would be "55241"

5DN1L: "5243".count("5")*2 = 1*2 = 2

Default avatar.png Overbed: i get it now :grin:

Default avatar.png lakaoe: it would say theres 2 fives

5DN1L: great :)

Default avatar.png Overbed: is "and" a function?

Default avatar.png Overbed: is "and" a function?

Default avatar.png Overbed: chat is lagging my bad

Uljahn: and is an operator i guess

Default avatar.png Overbed: how can i make a code so i can see who wins in rock paper scissors

Default avatar.png Overbed: if you can help me a bit i dont need the entire code just a function

Default avatar.png Overbed: that would work

Uljahn: is it CG puzzle or clash?

Default avatar.png Overbed: clash

Default avatar.png Overbed: You must output who wins or DRAW by Tanvir

Default avatar.png lakaoe: http://chat.codingame.com/pastebin/e850cab4-1db3-4a36-96da-876670a9d85f

Default avatar.png lakaoe: i have this shitty ass code that doesnt even work half

Default avatar.png Overbed: idk maybe try to make "SCISSORS" = 2

Default avatar.png Overbed: ""

Default avatar.png Overbed: or idk if you can but a = "SCISSORS" = 2

5DN1L: if call1 == ___ and call2 == ___:

5DN1L: (fill in the blanks)

Default avatar.png Overbed: so and works like that?

Default avatar.png lakaoe: well i know how to solve it i think but it would take a while

Default avatar.png lakaoe: and this is shortest mode

Default avatar.png lakaoe: lo

Thorcode: bruh that's not really hard

5DN1L: good luck

Default avatar.png Overbed: its not hard for u but we are very noobie

Thorcode: ah

NotGoodatall: echo "is there anyone who uses bash"

BlaiseEbuth: NotGoodatall &>/dev/null

Default avatar.png lakaoe: http://chat.codingame.com/pastebin/1961456f-b15d-491d-93f4-7606def3c54a

Default avatar.png lakaoe: fuck my life

Uljahn: http://chat.codingame.com/pastebin/1579502c-418d-4830-8eb5-bf785bc76485

Default avatar.png lakaoe: thats a bit shorter

Jerrasterix: what is this ??

Jerrasterix: clash answer ??

Default avatar.png lakaoe: yea

Jerrasterix: :+1:

gems20: lol

gems20: what yalls doing

BlaiseEbuth: Someone ban that mod! He's sharing answers!

Default avatar.png lakaoe: being an idiot

gems20: oof

Default avatar.png Overbed: we already finished the clash of code

derjack: :tada:

Jerrasterix: if someone bans a mod, can't they just unban themselves ??

Default avatar.png Overbed: he only helped us shorten it but not in official clash of code

BlaiseEbuth: Mods can't ban mods

Default avatar.png lakaoe: yeah

Default avatar.png Overbed: well i think owner or admin can just degrade him or ban

Default avatar.png Overbed: but i think that wouldnt be fair

Jerrasterix: :neutral_face:

Default avatar.png Overbed: since he helped us but didnt give answers for an official clash of code

derjack: you need to hit rock bottom to be a mod and have mod rights revoked

gems20: i need help 😒

5DN1L: Automaton2000, give help

Jerrasterix: just ask it here !!

Default avatar.png Automaton2000: well, if you have a lot of code :p

BlaiseEbuth: Yup derjack.

gems20: 😑

5DN1L: gems20, just ask

Default avatar.png Overbed: is automaton2000 a bot?

Default avatar.png Automaton2000: i was on the driffting part

BlaiseEbuth: Even to become a mod in fact.

Jerrasterix: Automaton2000 are you a bod ??

Default avatar.png Automaton2000: did you have a problem with the same seed

5DN1L: Overbed https://www.codingame.com/profile/b97bb4be55e91775c31501aaabb786a27927211

Default avatar.png lakaoe: thats cool

Default avatar.png Overbed: is shortening your code with a website illegal?

Jerrasterix: ofc !!

derjack: its up to golf police

5DN1L: lol

Default avatar.png Overbed: i already thought

BlaiseEbuth: Yeah you could be arrested for that

Default avatar.png Overbed: what

5DN1L: As long as you submit the code and nobody arrests you then it's fine :shrug:

Default avatar.png Overbed: bro

Default avatar.png Overbed: why

Default avatar.png Overbed: arrest?

Thorcode: exec(bytes('佒䭃‬䍓卉体卒‬䅐䕐⁒‽ⰰㄠ‬ਲⱡ戠㴠洠灡攨慶ⱬ椠灮瑵⤨献汰瑩⤨਩牰湩⡴䐢䅒≗椠⁦⁡㴽戠 †††攠獬⁥倢䅌䕙≒†猫牴⠨⁡㴽⠠⁢‫⤱┠㌠
‫⤱
','u16')[2:])

Thorcode: this is shorter XD

Default avatar.png Overbed: ?

Jerrasterix: you can even to sentenced to serve a life time writing golfed code

Default avatar.png Overbed: so can i get banned for using

derjack: opening books everywhere :unamused:

Default avatar.png Overbed: shortening

Default avatar.png Overbed: is golfing bannable or bot

Uljahn: no

Default avatar.png Overbed: not

Default avatar.png Overbed: it isnt bannable?

Default avatar.png Overbed: so exec(bytes('佒䭃‬䍓卉体卒‬䅐䕐⁒‽ⰰㄠ‬ਲⱡ戠㴠洠灡攨慶ⱬ椠灮瑵⤨献汰瑩⤨਩牰湩⡴䐢䅒≗椠⁦㵡戽 †††攠獬≥䱐奁剅⬢瑳⡲愨㴽戨†ㄫ┩⤳ㄫ⤩','u16')[2:]) is allowed

Jerrasterix: yeah

Uljahn: why not?

Default avatar.png Overbed: in official clash of codes?

Jerrasterix: its a loophole

Default avatar.png Overbed: idk

Default avatar.png Overbed: maybe like

Default avatar.png Overbed: that its from a website

Default avatar.png Overbed: idk

Uljahn: there is no readability requirements

Uljahn: you can do it yourself

Jerrasterix: it needs to work at end of the day

Default avatar.png Overbed: so i can use some weird golfing website and not get banned

Uljahn: i don't use sites

Default avatar.png Overbed: huh

5DN1L: but if you can't even write the main code, how do you shorten it

Default avatar.png Overbed: you make them yourselves?

Jerrasterix: you will not learn anything

Default avatar.png Overbed: can you shorten something yourselves

Uljahn: sure

Default avatar.png Overbed: how

Default avatar.png Overbed: what

Default avatar.png Overbed: whats golfing

Jerrasterix: isn't the whole point of code golfing ?? :confused:

Default avatar.png Overbed: can you make a code 1 character long if you do it right?

Jerrasterix: if others are all 0% then you can

Default avatar.png Overbed: i dont get it

Uljahn: byte_string = b"Compress with utf-16" compressed = byte_string.decode('u16') print(compressed) print(len(byte_string), len(compressed))

Default avatar.png Overbed: ill just use the random website for golfing

Default avatar.png Overbed: whats that supposed to mean

NotGoodatall: what language do yall use

Default avatar.png Overbed: python3

TeslaRam: c++

NotGoodatall: i use C#

Jerrasterix: C and C#

Default avatar.png Overbed: why is golfing script weird chinese characters

Wontonimo: people use this https://clemg.github.io/pythongolfer/

Default avatar.png Overbed: yes i got sent that aswell

Default avatar.png Overbed: but why is it weird characters

Default avatar.png Overbed: nvm i have 1 question and that is if people use golfing for like virusses and stuff

gems20: java

Uljahn: those chinese characters still count as 1 char each, but have a capacity of 2 bytes or so

Thorcode: yeah

gems20: help me

5DN1L: gems20 you still haven't told us your question

Jerrasterix: anyway, we will do this method and still get 50 chars and some ruby coder will one line it in 34 chars :unamused:

Jerrasterix: ohh, CG doesn't have julia ??

5DN1L: nope

5DN1L: https://www.codingame.com/playgrounds/40701/help-center/languages-versions

Bob_Rocks: wtf why is Coders Strike back now called "Mad Pod Racing"

Default avatar.png hadok: please help me learn c++

Tourd-bot: Please help me learn C#

derjack: wear glasses

Tourd-bot: what

Tourd-bot: THe

Tourd-bot: Heck

Tourd-bot: is

Tourd-bot: going

Tourd-bot: on

5DN1L: Automaton2000, do you have the answer to everything?

Default avatar.png Automaton2000: this is the one i was thinking of doing that soon :)

eulerscheZahl: nice

GamingGnawer: @hadok have you tried learncpp.com?

Westicles: hey euler, can your cheating detector tell which account is the source?

eulerscheZahl: no. sometimes it's even none of the multiplayer bots

eulerscheZahl: but some player who never submitted the contest bot in the multiplayer section

eulerscheZahl: and for some games like Tron it has really poor detection because of randomness

Westicles: Ah, okay. Seems like publishing is a bigger sin than copy-pasting

eulerscheZahl: actually i'm a friend of sharing and open-source if it wasn't for the nasty side-effects

eulerscheZahl: some take the bot to learn and improve. others for a quick 5min of glory

struct: all my bots are available, you just need to look hard enough

Default avatar.png slyforrow: wee

eulerscheZahl: publicly available?

darkhorse64: There are also some well known names (people with rocket CP progress, people caught cheating during contests)

struct: no, bad joke sorry

eulerscheZahl: yes. but a few surprises were waiting for myself too when i clicked through the results of my script

eulerscheZahl: note: for some games it's really possible to have false positives. for BTTC i managed to get a perfectly identical match for #1 and #50-ish then changed the seed

eulerscheZahl: for other games it's highly unlikely to happen. also there is some clustering between suspicious replays and languages (which i didn't take into account for my analysis)

darkhorse64: Yes, I will not call any names by drawing premature conclusions but I have seen some surprises

eulerscheZahl: let's wait for thibaud to dig through it (or dismiss it, we'll see)

struct: is not like cg is not aware

eulerscheZahl: but now i made a nice list that's harder to ignore :P

struct: Did it change since the last time I checked? ~1 week ago

eulerscheZahl: maybe 1 or 2 replays added. so not really

eulerscheZahl: just updating as top100 change

darkhorse64: For HS, top 100 is not enough

eulerscheZahl: i know. but didn't feel like raising the limit just for that one game

kovi: you analyzed game logs to check duplicated behaviour?

kovi: from your own games (batch?), or all?

Default avatar.png JZLX: how can i look

Default avatar.png Mayday666: ahhhhhhh

jacek: cg is not oware of the clones?

Uljahn: "multiplayer is a zoo" and CP stands for copy&paste points :smirk:

jacek: CP stands for many things :no_mouth:

struct: jacek is your nnm bot a NN?

Westicles: You bot guys are devious. I stick to the puzzles since I am highly ethical

eulerscheZahl: hi kovi, i was afk i generated games myself. play each bot vs itself on the same seed and compared replays

eulerscheZahl: for context: https://www.codingame.com/forum/t/leaderboard-cleanup/193779

Default avatar.png Flaise: CP can stand for computer player

eulerscheZahl: i know it as "competitive programming"

Portaljacker: us older internet users know it as something rather awful

Default avatar.png TimberStalker: I just finished the last half of the CoC quest line in like 5 minutes because all i had left was to beat a shortest CoC

jacek: struct no, good old alphabeta

jacek: with evaluation evolved by GA

jacek: i was surprised by some values changed drastically depending on game phase

jacek: so many python bots in wood1 :thinking:

eulerscheZahl: i won't index community contributions

struct: I dont think theres copy pasted bots, at least at the top

struct: for community ones

eulerscheZahl: even if i noticed something suspicious myself while playing coders of the realm (a few submitted the boss)

eulerscheZahl: but i agree that the top should be pretty clean for community games

jacek: nice printing https://github.com/SidJain1412/9MensMorris/blob/master/utils.py#L6

eulerscheZahl: i see the actual message behind that :D

jacek: germans...

Default avatar.png LazyfromDiscord: :no_mouth:

Wontonimo: anyone try kite.com ? it's like github copilot

eulerscheZahl: i've heard the name

eulerscheZahl: wanted to install it to atom maybe a year ago but it never finished installing

eulerscheZahl: now i don't even use atom anymore

Wontonimo: is there a feature request channel on CGs slack?

eulerscheZahl: there is no public CG slack anymore

eulerscheZahl: afaik they have a private slack

eulerscheZahl: and trello board, but i'm not sure if i remembered that part correctly

Wontonimo: sorry, i meant discord

eulerscheZahl: there's a bug reports channel

eulerscheZahl: i used it once to suggest a feature (move viewer from bottom of a puzzle landing page to the top to showcase it more), never heard from it since

struct: what feature do you want Wontonimo?

Westicles: unban?

Wontonimo: Being able to "Remix" an existing bot of someone else's. You don't get to see the code (*) and your bot gets flagged as a "remix of [name here]" but it is super easy to do, way easier than googling and copying code from internet

Wontonimo: the remix would not be in the leaderboard

eulerscheZahl: sounds extremely unlikely to happen to me

Westicles: lol. not a chance

Wontonimo: haha

eulerscheZahl: first of all you talk about bots. those aren't a priority

Wontonimo: right

eulerscheZahl: even if, that would be a rare use-case

eulerscheZahl: let me say it this way: respected community members that you don't even know (long before your time) like inoryy wanted to see the timeouts/crashes of their last submit highlighted in the last battles

Wontonimo: what I was thinking is if a section of code is surrounded with /* PUBLIC START */ /* PUBLIC END */ then that section of code becomes visible to the remixer and they can modifity or add to it

eulerscheZahl: or something against AI hiding. we still don't have those features

Wontonimo: right

Wontonimo: okay

Wontonimo: good point

NotANick: so why i am getting %25 score with passing all tests and without cheating outputs

eulerscheZahl: which puzzle?

Coderboi270: hi

NotANick: clash

eulerscheZahl: which clash?

eulerscheZahl: https://eulerschezahl.herokuapp.com/codingame/puzzles/ find it, then we keep talking

NotANick: it says failure now xd

eulerscheZahl: failure where?

NotANick: in tests

NotANick: with my code

Wontonimo: I posted my feature anyway. I work in software and am keenly aware that most feature requests never see more than 2 min of attention, and that's okay.

NotANick: in clash it passed all tests

Westicles: If we had a faq, I would point you to #3

eulerscheZahl: do you use random in your code?

NotANick: anyway sorry for disturbing

NotANick: no

Westicles: 3) The world also needs fry cooks

eulerscheZahl: you can keep disturbing if you

  • link the puzzle
  • share your code

NotANick: <?php fscanf(STDIN,"%d",$a);fscanf(STDIN,"%d",$b);fscanf(STDIN,"%d",$c);echo($b-($a*120)-$c<0?"true":"false");?>

NotANick: https://www.codingame.com/ide/demo/865138b510845fa5084631e623865ee41b1c27

eulerscheZahl: oh, a shortest mode?

NotANick: yes xd

Westicles: oh, never mind. you know stuff

eulerscheZahl: echo(($a*120)-$b-$c>=0?"true":"false");

eulerscheZahl: that's passing

eulerscheZahl: you had rent - pay - other costs correct is pay - rent - other costs

NotANick: yes thank you very much forhelping

NotANick: and i found new way for getting stdin in shortest mode

NotANick: $c=STDIN; fscanf($c,"%d",$a); fscanf($c,"%d",$d); fscanf($c,"%d",$n);

eulerscheZahl: $f=fscanf; $f($c, ...

eulerscheZahl: does that work too?

NotANick: i will try

NotANick: wow it really works

NotANick: thanks

Default avatar.png Considerably_Disagreeable: if I cant set the altitude index for The Decent challenge how am i even supposed to get an algo going if the input resets everything?

Default avatar.png Considerably_Disagreeable: its actually quite a ridiculous, uhm how I should say "game question" because intuitively, you would change the altitude at which you were shooting, and on top of that the input doesnt allow you keep on printing, because the input halts print statements so like if u wanted create a pee shooter type of program, u cant

Default avatar.png Considerably_Disagreeable: its actually quite ridiculous if u think about it, because theres lack of imagination or room for imagination

jacek: hm?

Default avatar.png camnwalter: sup

jacek: initialize index variable before the loop

Default avatar.png Considerably_Disagreeable: how would u do that, the game requires it to be in loop

Default avatar.png Considerably_Disagreeable: u cant execute outside of loop

5DN1L: why not

struct: the loop gets called every new turn

Illedan: It is just code. You can do whatever you want

struct: you must output the index of the highest for every turn

Default avatar.png Considerably_Disagreeable: correct

struct: the inputs are new every turn based on your previous action

Default avatar.png Considerably_Disagreeable: exactly and i tried a simple bubble sort but that doesnt even work either

Default avatar.png Considerably_Disagreeable: i even tried the reversed order method, didnt work

struct: well you dont need sort at all

Default avatar.png Considerably_Disagreeable: and you cant just like easily execute outside of the loop, the loop requires input that sets the altitude, you cant just like teleport outside of the loop

Default avatar.png Considerably_Disagreeable: you cant set the alt outside the loop

Default avatar.png Considerably_Disagreeable: thats just not, correct

struct: why would you need to sort?

struct: 8, 5, 4, 5, 6, 3, 1

Default avatar.png Considerably_Disagreeable: in case values are different upon input

struct: do you need to sort those values to get the highest index?

Default avatar.png Considerably_Disagreeable: so i would always be shooting the greatest or close to the greatest value as possible

jacek: the puzzle has hints on the left

jacek: and even full solution

struct: You are probably overthinking

Default avatar.png Considerably_Disagreeable: I am not looking for fake solutions, I call them fake because its copy pasta

Default avatar.png Considerably_Disagreeable: thats not coding

jacek: :+1:

Default avatar.png Considerably_Disagreeable: dont take that as an insult, but I am looking for an intuitive way of solving this

struct: well Im trying to help

Default avatar.png Considerably_Disagreeable: you are and i love oyu <3

struct: but you are just saying its impossible

Default avatar.png Considerably_Disagreeable: ^ yeah i hate my mentality too

Illedan: What language are you using ?

Default avatar.png Considerably_Disagreeable: python

Illedan: Ok, give me a sec

jacek: no NN solutions on this like in onboarding :(

Illedan: Ok, I forgot python, but something like this: https://tech.io/snippet/kjOmMRb Would keep some data outside the loop, which you can access every iteration

Default avatar.png AmitBG: someone got job from this game?

Illedan: By doing CodinGame?

Default avatar.png AmitBG: By geting skiils and then ...

Default avatar.png AmitBG: you get it

Default avatar.png Considerably_Disagreeable: wait in python you can serialize data like that?

GER-NaN: i started getting recruitment emails after entering my info....

pmor: my company uses codingame for interview prescreening

Illedan: Sure, the interviews I attended last year was some "easy" puzzle tasks, which was easy because of CodinGame :P

struct: they asked me to get top 3 in csb :(

Illedan: Considerably_Disagreeable, I don't remember how to write python anymore, but it was to give you some guideline :P

Illedan: lol struct

jacek: in what?

struct: mpr sorry

Default avatar.png Considerably_Disagreeable: I see I see

Illedan: One interviewer I had was really sure I could sort a list in N time... Yeah, he was wrong :P

Default avatar.png Considerably_Disagreeable: I hate being timed

Default avatar.png Considerably_Disagreeable: its make me rush then i fuck up and my thoughts go crazy

Default avatar.png Considerably_Disagreeable: i cant control it

Astrobytes: don't ever get a job, deadlines everywhere

Astrobytes: :P

BlaiseEbuth: Working's for poor people anyway...

BlaiseEbuth: Astroback o/

Astrobytes: briefly, for now ;)

Illedan: Astrobytes https://img-9gag-fun.9cache.com/photo/aGzK4Rn_700bwp.webp

Astrobytes: mwahahaha

BlaiseEbuth: This is fine.

Astrobytes: So, anything new or interesting here lately?

BlaiseEbuth: :thinking:

eulerscheZahl: blaise got banned, does that count?

Astrobytes: I knew about that

eulerscheZahl: about all of the bans?

Astrobytes: Yes

BlaiseEbuth: Of course.

eulerscheZahl: is this your VII?

BlaiseEbuth: VI

eulerscheZahl: those are rookie numbers

**eulerscheZahl bans BlaiseEbuth

Astrobytes: lol

BlaiseEbuth: Set a chat macro to allow doing Blaise++

**Astrobytes still awaiting 'ngl'

BlaiseEbuth: lol

Illedan: ngl?

Astrobytes: :rofl:

BlaiseEbuth: \o/

eulerscheZahl: i only know ng. CG uses that in their css classes

Astrobytes: Illedan: It's a Blaise thing

eulerscheZahl: not sure from which framework it comes

eulerscheZahl: angular?

BlaiseEbuth: *ngular probably

Astrobytes: ngular

BlaiseEbuth: :3

Astrobytes: hah!

Illedan: ??

Illedan: Meh, I'll focus on spamming GoD

Astrobytes: hehehe

jacek: huh

BlaiseEbuth: Illedan: lol -> Lucifer Our Lord, ngl -> Nam Gloria Lucifer

eulerscheZahl: i'll index all your versions and check for cheats

Illedan: Good

Illedan: :)

jacek: regina, noctis pro nobis?

BlaiseEbuth: caseum omelettum

jacek: omelette du fromage?

Illedan: Dexter :rocket:

Astrobytes: 's Laboratory

jacek: darn why i did i put that memes link on c4 forum? im gonna read them all again

Astrobytes: tbf, they're always funny

BartholomewIII: zip, product = itertools.product, zip

BartholomewIII: I don't know why I have no friends

BlaiseEbuth: import friends

BartholomewIII: 🤔

Default avatar.png Considerably_Disagreeable: while 1: http://chat.codingame.com/pastebin/e4a2202d-c850-4ab3-9ff4-2488331a2e70

jacek: isnt max reserved in python?

Default avatar.png Considerably_Disagreeable: so with things like this, why is there even an if conditional? Why is it wrong without it?

Default avatar.png Considerably_Disagreeable: isnt it the same as this and if so why is this answer wrong? while 1: http://chat.codingame.com/pastebin/53cc3581-1936-4221-80a7-f4006c33da27

5DN1L: Jacek you can use it if you want :shrug:

Default avatar.png Considerably_Disagreeable: its like creating a pointless conditional

Default avatar.png Considerably_Disagreeable: that makes absolutely no sense...

Default avatar.png Considerably_Disagreeable: hey its the solution on the website

5DN1L: Jacek just that if you use max as a variable name, you won't be able to use it as a keyword any more

Default avatar.png Considerably_Disagreeable: like mountain_h is always going to be greater than max which is 0, max and imax are useless instantiations the conditional is useless, shadowing the variable is the exact same way because mountain h is always going to be greater than the input

Default avatar.png Considerably_Disagreeable: it makes no sense why my answer is wrong without a conditional

Default avatar.png Considerably_Disagreeable: because the conditional would be there even if its not there

Default avatar.png Considerably_Disagreeable: because its always going to be true

5DN1L: Considerably_Disagreeable, if you leave out "if" condition, you'll always read the next mountain height and put it into MAX, no matter whether it's highest or not

jacek: and IMAX will be always 7 after the loop

5DN1L: yes ^

Default avatar.png Considerably_Disagreeable: so you are pulling the index to which the greatest value is coming from?

Default avatar.png Considerably_Disagreeable: in a temp var

5DN1L: the temp var will always be correct at the end if you just replace its value only when needed

jacek: try to go through this algorithm on paper

Default avatar.png Considerably_Disagreeable: isnt this the same as what is the solution while 1: http://chat.codingame.com/pastebin/2e6facdc-9402-4199-9fe9-8921002ba534

Default avatar.png Considerably_Disagreeable: ignore the max and imax values

Default avatar.png Considerably_Disagreeable: that are lowercase

5DN1L: we aren't comparing with 0

Default avatar.png Considerably_Disagreeable: max is 0

5DN1L: we're comparing with the highest height we've seen so far

struct: how do you check which one is the highest without the if?

Default avatar.png Considerably_Disagreeable: how is is comparing max=0 comparing to the highest height?

5DN1L: whenever we see a higher height, we replace max with that

Default avatar.png Considerably_Disagreeable: max = 0

Default avatar.png Considerably_Disagreeable: and integer

struct: that is not a comparison

struct: thats an assignment

BartholomewIII: Getting the maximum of [4, 3, 2, 1] using both algorithms

Default avatar.png Considerably_Disagreeable: wouldnt u use something along the lines like, max(mountain_h)

Default avatar.png Considerably_Disagreeable: max is always 0

Default avatar.png Considerably_Disagreeable: because u set it to 0

Default avatar.png Considerably_Disagreeable: ur not pulling the max value of the mountains

struct: How long ago did you started programming?

Default avatar.png Considerably_Disagreeable: if mountain_h > max:

Default avatar.png Considerably_Disagreeable: and max = 0

struct: max = 0 before the for loop

struct: the for loop checks all the mountains

Default avatar.png Considerably_Disagreeable: i see

Default avatar.png Considerably_Disagreeable: so when u shadow after the first time

Default avatar.png Considerably_Disagreeable: u are comparing the shadow

Astrobytes: in that case max(mountain_h) == mountain_h, if you stored all the heights in a list or something you could do max(mountain_height_list)

Default avatar.png Considerably_Disagreeable: ^

Default avatar.png Considerably_Disagreeable: that is what I was talking about

Default avatar.png Considerably_Disagreeable: but am i right on that assumption prior? like about the shadowing?

Astrobytes: but that is max as a keyword, you are using it as a variable here

Default avatar.png Considerably_Disagreeable: exactly

Default avatar.png Considerably_Disagreeable: which was my confusion

Default avatar.png Considerably_Disagreeable: but if u overshadow it then compare the shadow

Default avatar.png Considerably_Disagreeable: that makes sense

BartholomewIII: I would use a different variable name, like "max_" or "maximum"

Default avatar.png Considerably_Disagreeable: I would too, I am going to its just what the solution has, its like using dict = 1

Astrobytes: the solution is pseudocode

BlaiseEbuth: C'mon... It's already python.

BartholomewIII: Pfft

Default avatar.png Considerably_Disagreeable: you guys are like angels from the depths of love

Default avatar.png Considerably_Disagreeable: everyone else is assholes when im trying to understand and its like yeah I get it, I have a hard time understanding but dont give up on me damn

jacek: angels? here? oO

Default avatar.png Considerably_Disagreeable: and i get that i am an asshole but i am more frustrated with my stupidity than you are uk

BlaiseEbuth: More demons from the depths of hell...

jacek: only astro is uk

Default avatar.png Considerably_Disagreeable: *more than you prolly are uk

Default avatar.png camnwalter: test

Default avatar.png camnwalter: waaaaaaaaaaaaaa

5DN1L: enough test

Default avatar.png camnwalter: ???

Astrobytes: camnwalter: FAILED

BlaiseEbuth: Astrollbytes

Default avatar.png Considerably_Disagreeable: Just make sure people dont die at your shows

Default avatar.png Considerably_Disagreeable: F

BlaiseEbuth: Jacek said Astrobytes is uk?! :scream:

BartholomewIII: uk=United Kingdom?

Illedan: Ukulele

Astrobytes: There is no UK. Only a fragmented mess of filth.

Default avatar.png Considerably_Disagreeable: I think thats the world dont feel bad

Astrobytes: I can't play ukulele, just mandolin and banjo

Default avatar.png Considerably_Disagreeable: I can rap vary, vary badly

Default avatar.png Considerably_Disagreeable: industry hates

BlaiseEbuth: I play triangle.

Illedan: I can't even play that

Astrobytes: Hm. Anyway, my hair just called, it needs a wash. Back later, perhaps.

Illedan: gl hf

eulerscheZahl: i can play keyboard. but not the instrument

e_fishel: is it wrong to share a snippet of my code to my friend to help him solve a problem?

Illedan: A puzzle?

e_fishel: yes

Illedan: Should be fine :) We are here to learn

eulerscheZahl: if it's to help understanding and not for a copy-paste solution i don'T see a problem

e_fishel: its a snippet so he figures out the rest

e_fishel: alright thanks

Husoski: Astrobytes: Banjo, huh? Matthew Diffee did this cartoon for New Yorker a few years ago: https://lowres.cartooncollections.com/banjos-musician-country_music-concert-music_venue-music-CC144385_low.jpg

Husoski: (My tool for annoying others is acoustic guitar. :))

Default avatar.png Overbed: for i in range(a).split:

Default avatar.png Overbed: is this valid

5DN1L: No

BartholomewIII: .split() is a method on strings

Default avatar.png Overbed: can i do

Default avatar.png lakaoe: for i in range(str(a)).split:

5DN1L: No

Default avatar.png Overbed: for i in range str(input()).split?

BartholomewIII: No, what are you trying to do?

Sayach8: range works on in

Sayach8: int*

Default avatar.png Overbed: want to split the input

Default avatar.png Overbed: and make every character a variable

Sayach8: for i in input().split()

BartholomewIII: list(input())

Default avatar.png Overbed: does that work

Default avatar.png Overbed: how do i make variables then

Default avatar.png Overbed: of them

BartholomewIII: Well, a string is also an iterable. You can use a for-loop directly on the string. "for character in input():"

BartholomewIII: https://www.pythonlikeyoumeanit.com/Module2_EssentialsOfPython/Iterables.html

NotANick: when i select to my last play it kick me anyway

NotANick: kicks*

Maurice3113: o

Azkellas: That's a nice tool you made eulerscheZahl to compare bots :thumbsup:

jacek: does Automaton2000 like to be compared?

Default avatar.png Automaton2000: don't tell me that i can do that

Default avatar.png Overbed: message = input() for i in message:

    if i == "_":
        print("snake_case")

Default avatar.png Overbed: how to make this

Default avatar.png Overbed: code so it doesnt print snake case 2 times

Default avatar.png Overbed: and can only print it 1 time

jacek: add break?

Default avatar.png Overbed: how?

Azkellas: or `if "_" in message:`

jacek: next line after print

Azkellas: assuming python

Default avatar.png Overbed: yes python

Default avatar.png KoaO: :grin:

Default avatar.png Overbed: whats the website called for the puzzles

e_fishel: what do you mean

e_fishel: the website for the puzzles

Default avatar.png Overbed: where you search up keywords and then

Default avatar.png Overbed: see the clash of code

5DN1L: Do you mean this? https://eulerschezahl.herokuapp.com/codingame/puzzles/

Default avatar.png Overbed: oh yes tysm

jacek: a loss :scream: https://www.codingame.com/share-replay/595407025

jacek: time to delete account

Astrobytes: Husoski: hahaha! How can you tell if the stage is level at a bluegrass show? Banjo player is drooling outta both sides of his mouth :D

Default avatar.png Overbed: http://chat.codingame.com/pastebin/659fa6a9-db15-4213-b86f-709002de53d7

Default avatar.png Overbed: hello this keeps printing PascalCase

Default avatar.png Overbed: instead of camelcase

Default avatar.png Overbed: ifYouTry camelCase

Default avatar.png Overbed: it prints PascalCase here

Default avatar.png Overbed: pls help

NotANick: Best place I've ever seen tho thanks for everyone. I spend hours in a day in here, even if I am losing again and again sometimes

Astrobytes: NotANick: Gotta fail a lot to learn a lot ;)

jacek: Overbed did you mean .isupper()

NotANick: true

Default avatar.png Overbed: ohh yes

struct: you already had a loss jacek

jacek: :exclamation:

Default avatar.png Overbed: http://chat.codingame.com/pastebin/0c140c57-6334-49b5-b0ae-bf80ace011aa

Default avatar.png Overbed: still doesnt work

Astrobytes: elif message[0] != message.isupper():

Astrobytes: I'd rethink that one

Default avatar.png Overbed: what part?

jacek: did you mean elif message[0].isupper():

struct: the 2nd one

Default avatar.png Overbed: oh hahaha

Default avatar.png Overbed: thanks

ZeroCinq: what's up guys

Default avatar.png Overbed: this is like my first time using the "isupper()" function

e_fishel: hello

Default avatar.png Overbed: but i got it almost right lol

ZeroCinq: hola amigo

e_fishel: B)

Default avatar.png Overbed: i am newbie btw so yeah

5DN1L: you may wanna try islower() too

Default avatar.png Overbed: islower() = small letter right

5DN1L: yes

Default avatar.png Overbed: like abcdefg

5DN1L: yes

Default avatar.png Overbed: ok thanks

Default avatar.png Overbed: what does a self learner mean exactly

5DN1L: One who teaches oneself, instead of being taught by a teacher

BartholomewIII: One who uses Google

Default avatar.png Overbed: is me asking for help

Default avatar.png Overbed: not a self learner?

Default avatar.png Overbed: i dont have a teacher or anything

jacek: if you dont learn from classes/school or university then its self learning

Default avatar.png Overbed: that means i am a self learner

Default avatar.png Overbed: how long did it take for you 5dn1l to get so good?

5DN1L: Well I've been coding for many years :shrug:

Default avatar.png Overbed: ah

Default avatar.png Overbed: ok thanks

Default avatar.png Overbed: i am going to sleep now :wave:

5DN1L: ok, good night!

Astrobytes: goodnight!

Default avatar.png Overbed: yo gn!

Illedan: I guess it's Overbed time

5DN1L: lol

Astrobytes: heh heh

e_fishel: hehehe

The_King_of_Demons: :joy:

Default avatar.png Considerably_Disagreeable: why would this be printing the first 3rd element then resume iterating through the entire alphabet?

Default avatar.png Considerably_Disagreeable: http://chat.codingame.com/pastebin/c7a4bad9-17c7-4301-9511-f080a9d5ad13

Default avatar.png Considerably_Disagreeable: all i am asking for is it to print the index+3 not hte index+3 and the rest of the alphabet?

Default avatar.png Considerably_Disagreeable: why is it it doing that?

struct: you never exit the for loop

struct: you need break;

struct: or something

Default avatar.png Considerably_Disagreeable: if i do that then it only prints the first 3rd element

Default avatar.png Considerably_Disagreeable: i need to keep doing that

Default avatar.png Considerably_Disagreeable: hence the control statement over the while

struct: "why would this be printing the first 3rd element then resume iterating through the entire alphabet?" this was your original question

Default avatar.png Considerably_Disagreeable: yes

Ezuker: Who is good in Java

Ezuker: I need help with IndexOF

Default avatar.png Considerably_Disagreeable: when i run the code i get this

Default avatar.png Considerably_Disagreeable: http://chat.codingame.com/pastebin/284cb5fd-6628-445c-9ef0-a88be639e5cd

struct: yes

struct: because the for loop keeps going

Default avatar.png Considerably_Disagreeable: if it keeps going why is it not printing index+3

Default avatar.png Considerably_Disagreeable: also, if i reach the 23rd index and print +3 i get an out of index error, makes sense not that many indexes in the alphabet, but why is there not function to re iterate through like a continue statement in java?

Default avatar.png Considerably_Disagreeable: makes absolutely no sense.

Default avatar.png Considerably_Disagreeable: How am i supposed to write an algo, when I cant even re use a loop iteration....

struct: break will exit the for loop if thats what you want

Default avatar.png Considerably_Disagreeable: no I want to print the 3rd index of the alphabet

Default avatar.png Considerably_Disagreeable: every third index

struct: for each letter of the string given?

Default avatar.png Considerably_Disagreeable: so 3,6,9,...

Default avatar.png Considerably_Disagreeable: 3 will be d 6 will be g and so on

Default avatar.png Considerably_Disagreeable: its vary unintuitive to not be able to re use a loop iteration

Default avatar.png Considerably_Disagreeable: http://chat.codingame.com/pastebin/5d58d4ce-539a-4ddb-96c3-6c09c31a6fbe

struct: print(alphabet[(index+3) % 26])

Default avatar.png Considerably_Disagreeable: mind blown

Default avatar.png Considerably_Disagreeable: why does that work now?

struct: because it doenst go out of range

Default avatar.png Considerably_Disagreeable: modulos takes the remainder right?

struct: the alphabet has 26 letters

struct: 25%26 = 25

struct: 26% 26 = 0

struct: yes

Default avatar.png Considerably_Disagreeable: omg thats brilliant

Default avatar.png Considerably_Disagreeable: ceasar

Default avatar.png Considerably_Disagreeable: u dog

Default avatar.png Considerably_Disagreeable: thank you sensei

Kailynn: Hey so I am new with coding so if anyone can help please

Kailynn: Because I am really bad

Kailynn: I have tried doing the introduction it was kind of easy but then I tried doing others and it got hard

struct: this site requires a bit of experience

Default avatar.png Salick: I need help with one c++ task

Default avatar.png Salick: can someone help me please ?

Default avatar.png Considerably_Disagreeable: not if they have you struct ;) You literally made me see things no one else could

Kailynn: Ok so no one can help

struct: whats the question Salick?

struct: Kailynn well if you are new to coding I would get some experience before coming here

struct: 1-2 months experience at least

Kailynn: Ok

Wontonimo: omg struct, what did you make Considerably_Disagreeable see that *no one else could* ?!?

Wontonimo: Kailynn , you may find this really useful https://www.youtube.com/watch?v=GTWrWM1UsnA

Wontonimo: it is how to code tic-tac-toe using javascript

Wontonimo: by "The Coding Train" none-the-less

UZUHAMA: Hello world

BartholomewIII: o/

Thorcode: yes, I can move to the ghost now, but how can I capture it

Wontonimo: hey people

UZUHAMA: case expressions must be constant expressions

UZUHAMA: What a dumb error...

UZUHAMA: You should be able to put variables in there

BartholomewIII: What language?

UZUHAMA: Java

BartholomewIII: Also, the reason why is because switch-statements are optimized to be much faster than if-else chains

BartholomewIII: And you can't do that with variable case statements

UZUHAMA: hmm

UZUHAMA: Guess I'll just have to use if-else chain...

Dren: is it a compile time lookup table?

BartholomewIII: https://stackoverflow.com/a/767840/4373214

BartholomewIII: Yeah

BartholomewIII: This is for C#, but I think the same reasoning applies

UZUHAMA: hmm

UZUHAMA: Don't know what a lookup table and hash list are

UZUHAMA: But I got the point

Wontonimo: what programming lang do you use UZUHAMA ?

UZUHAMA: I use Java

Wontonimo: so in java there is something called a HashMap

Wontonimo: (you can google that)

UZUHAMA: ok

UZUHAMA: wait a sec

Wontonimo: but generally what it allows you to do is make a name-value pair

Wontonimo: so you can save stuff using a name and get back the associated value

Wontonimo: REALLY FAST

Wontonimo: so

Wontonimo: if you have a list of students and their final grade

Wontonimo: HashMap finals = new HashMap<String, Integer>();

Wontonimo: finals.put("Billy",33);

Wontonimo: finals.put("Jane",98)

Wontonimo: then you can get Jane's score like so

Wontonimo: Integer j = finals.get("Jane");

Wontonimo: does this make sense?

UZUHAMA: Ok, I now kind of get it

Wontonimo: kinda? tell me more, what's fuzzy?

UZUHAMA: No, I get it

Wontonimo: cool

Wontonimo: can i tell you a SUPER cool use of it?

UZUHAMA: so, the hash list is just a list of hashmap?

UZUHAMA: Yeah, sure tell me

Wontonimo: so, let's say you want a count of all the unique words in a very large document ...

Wontonimo: the pseudo code is like so

Wontonimo: http://chat.codingame.com/pastebin/4348dcbe-00b6-4715-a625-a3bef3806bba

Wontonimo: that's it

Wontonimo: the hash makes it super fast.

Wontonimo: and the lookup time to get a value out of the hash is constant. If there are 2 elements or 2 million, it takes the same time.

Wontonimo: This is very different than a list or a binary tree.

UZUHAMA: Ooh

UZUHAMA: Ok so

Wontonimo: yeah man! They are powerful!

UZUHAMA: What pseudocode does is

UZUHAMA: make a new hash if there's no hash for a word

Wontonimo: yup

UZUHAMA: Then increment the count of the corresponding word

UZUHAMA: Wow

UZUHAMA: Wait

Wontonimo: yup! even if the document is 100MB or data you'll only have to make 1 pass through it and it will be fast

Wontonimo: *of data

UZUHAMA: I think I heard the same thing somewhere

UZUHAMA: The entire language itself was devoted to hash list

UZUHAMA: j something...

UZUHAMA: jason?

Wontonimo: in python it is called a Dictionary. In javascript it is called an AssociativeArray

Wontonimo: nope, not Json (it's spelt json)

UZUHAMA: oh yeah lol

UZUHAMA: JSON is just a hash list

UZUHAMA: right?

Wontonimo: but kinda, json can have hash lists in it, but it isn't a programming language

Wontonimo: yes, JSON is a combination of arrays and associative arrays

UZUHAMA: Oh, it isn't?

UZUHAMA: hmm

Wontonimo: this is json [ 1 , 2, 3 ]

Wontonimo: and this is {"one" : 1 , "two" : 2 , "threeeee" : 3 }

UZUHAMA: So, JSON is just a fancy way of calling associative arrays?

Wontonimo: no, json is json.

Wontonimo: it is a format for printing data structures

UZUHAMA: :eye: :eye:

Wontonimo: to send data to and from popular programming languages

UZUHAMA: Wait, json can be file extension

UZUHAMA: ?

Wontonimo: java and python and javascript are programming languages. They can have an hash in memory. Json is a format for dumping list and hashs to files or strings

Wontonimo: and converting it back again

Dren: yes .json files exist

Wontonimo: yes

UZUHAMA: ohh ok

UZUHAMA: I get it now

Default avatar.png Considerably_Disagreeable: http://chat.codingame.com/pastebin/fca1bbc8-ccc5-47b9-8bd9-0ec918e98dd4

Default avatar.png Considerably_Disagreeable: so if i wanted to like re arrange these shifted letters, back into the same order or the word, how would i go about that

UZUHAMA: Thx Wontonimo and Dren

Default avatar.png Considerably_Disagreeable: so like GFRGHA

UZUHAMA: :thumbsup:

UZUHAMA: You guys are the best

Default avatar.png RangeError: Hello all, I have test on this platform for c# and sql, when I click on it, I have like 1 hour max to solve it, anyone who knows how is it working. It is like clash of code or what, because I only used this to play CoC ?

Wontonimo: can you give a smaller example Considerably_Disagreeable for just the question?

Dren: first of all

Dren: you should use enumerate

Wontonimo: don't know RangeError

Dren: so instead of: for i in range(len(text)):

Dren: it should be for index, character in enumerate(text):

BartholomewIII: RangeError If you take a language certification test on this platform, you can take the sample test with no penalties to see what it's like

Dren: and get both at the same time since you use both in every loop

Default avatar.png Considerably_Disagreeable: how do i know when to use len of something then

Default avatar.png Considerably_Disagreeable: ill change though but how do i get it back in order though

Default avatar.png Considerably_Disagreeable: because when it matches it matches in the order of cddeox

Wontonimo: what puzzle is this?

Default avatar.png Considerably_Disagreeable: Code Breaker Puzzle, I am encrypting a message to see how the algo works

Wontonimo: i think i know that puzzle

Default avatar.png Considerably_Disagreeable: so that I can then decrypt the message

Wontonimo: let's say you have a function that does this

encrypt(letter, a, b)

Wontonimo: and if a=1 and b=0 and letter='A' and your alphabet is 'ABCED...'

Wontonimo: then this function would return 'B'

Wontonimo: right?

Wontonimo: well, if you do, then you could ...

Wontonimo: wait for it ...

Wontonimo: use a hashmap to make a lookup to reverse the encryption

Default avatar.png Considerably_Disagreeable: nonono

Wontonimo: no need to actually reverse the encryption

Default avatar.png Considerably_Disagreeable: im not reversing yet

Wontonimo: have you made the above function yet?

Default avatar.png Considerably_Disagreeable: i simply want to rearrange, the order of the encryption to the order of the word

Default avatar.png Considerably_Disagreeable: so the word is still encrypted

Default avatar.png 5922: ?

Wontonimo: rearrange the order of the encryption? why?

Default avatar.png Considerably_Disagreeable: wouldnt it be best practice to?

Default avatar.png 5922: To minimize computation you mean?

Wontonimo: the alphabet is in a-very-specific-and-important-order

Wontonimo: the alphabet 'abcd' is different than 'bacd'

Default avatar.png Considerably_Disagreeable: ok, let me try to repharse

Default avatar.png 5922: Do you mean you are only encrypting the word and not the message or what

Default avatar.png 5922: er alphabet

Default avatar.png 5922: sorry

Default avatar.png Considerably_Disagreeable: When I go to match the word in the alphabet it matches in the order of cddeox the word is dcodex, I retrieve the shifted index from that codex, which is fgghra, I want to re arrange the encryption to be like, gfrgha

Default avatar.png Considerably_Disagreeable: because d is g

Default avatar.png Considerably_Disagreeable: c is f

Default avatar.png Considerably_Disagreeable: o is r and so on

Default avatar.png Considerably_Disagreeable: its a trippy question

Wontonimo: okay so there are 3 parts, the alphabet, the message, and the word

Default avatar.png Considerably_Disagreeable: ok

Wontonimo: the objective is to find the A and B that decodes the message such that the word is in the message

Default avatar.png 5922: In other words, the word is in plaintext.

Wontonimo: yes, the word is plaintext and already decoded

Default avatar.png Considerably_Disagreeable: no

Wontonimo: yes

Default avatar.png Considerably_Disagreeable: how so

Default avatar.png Considerably_Disagreeable: the letters are shifted

Default avatar.png 5922: You need to find the key whereby when using it to decode the message, that word is present.

Thorcode: don't try to solve won codebreaker, it is like hard like the resit

Thorcode: or harder

Wontonimo: for the first one, A=8, B=0.

Thorcode: the resit I could know it use moorse

Thorcode: but this...............

Wontonimo: now, put the message "IFMMPAXPSME" though the encryption

Wontonimo: and you will get "HELLO_WORLD"

Wontonimo: which contains "WORLD"

Default avatar.png Considerably_Disagreeable: if the letters are shifted right?

Default avatar.png 5922: You think this is harder than The Resistance? D:

Wontonimo: haha

Default avatar.png Considerably_Disagreeable: im not unshifting the letters i am simply re arranging the shifted letters, the letters are still shifted to what ever they got shifted to, u would still have to shift back to decrypt

Wontonimo: sorry, A=-7

Wontonimo: anyway

Thorcode: yep

Thorcode: this could harder than the resistance

Default avatar.png 5922: Did you solve Caesar is Chief?

Thorcode: nah

Default avatar.png 5922: ..

Wontonimo: try decrypting the message using a variety of ceasar ciphers.

Wontonimo: that will pass the first 4 test cases

Default avatar.png Considerably_Disagreeable: bro

Default avatar.png Considerably_Disagreeable: i know how to decrypt it

Wontonimo: ok

Default avatar.png Considerably_Disagreeable: thats not the question

Wontonimo: what's the question?

Default avatar.png Considerably_Disagreeable: http://chat.codingame.com/pastebin/31b8ea25-ca8a-48cc-b169-ea424c03d8a9

Default avatar.png 5922: Oh, my. Would it be worthwhile to direct people to Caesar is the Chief first in the prompt?

BartholomewIII: Probably

Wontonimo: i just programmed it without looking at my solution. it's 9 lines of code.

Default avatar.png Considerably_Disagreeable: the puzzle or my question

Default avatar.png Considerably_Disagreeable: two different things

Wontonimo: the puzzle

Default avatar.png Considerably_Disagreeable: exactly

Wontonimo: i don't even understand your question

Default avatar.png Considerably_Disagreeable: how when i tell you what order you have to rearrange them in

Default avatar.png 5922: It is a shift which is then multiplied

Default avatar.png 5922: it isn't rearranged

Default avatar.png 5922: At least not in the sense that I gather

Default avatar.png 5922: You can solve it through brute-force replication of the process that you would use to create the message just by going through the values and using the given equation

Default avatar.png 5922: As Wontonimo suggested above

Default avatar.png Considerably_Disagreeable: the question, literally had nothing to do with the puzzle. stop talking about the puzzle. Its not about the puzzle

Default avatar.png Considerably_Disagreeable: http://chat.codingame.com/pastebin/defb0526-ff31-4e8c-93f2-118ec00f78dd

Wontonimo: ah. sorry, can't help you then

Default avatar.png 5922: Boy, you are disagreeable.

Default avatar.png 5922: D;

Dren: we are talking about the puzzle because that is a common grounds of information

Dren: the question in your pastebin doesn't mean anything to anyone other than you since there are infinite ways to get those letter configurations

Wontonimo: What puzzle is this - me "Code Breaker Puzzle, I am encrypting a message to see how the algo works" - Considerably_Disagreeable

Wontonimo: anyway... how's it going 5922 ?

Dren: how does pastebin work btw

Dren: for the chat

Wontonimo: you just type a bunch of stuff here ... and the system makes a judjement call if it should instead make a pastebin link

Dren: oh I see

Dren: that's neat

Wontonimo: if you paste a lot or it is mostly code, then it will convert it for you

Wontonimo: doesn't work in private chat

Wontonimo: but it does work in #channels like #clash and #yomamma

Dren: http://chat.codingame.com/pastebin/4458e677-c4e2-411f-88ea-5c3a048ec029

Dren: oh you're right

Dren: thank you

Dren: I've been looking through the forum and the getting help page

Dren: but I couldn't find it

Wontonimo: ah, so, now you've invoked a rule. Don't paste solution !

Wontonimo: Dren , so basically, you can post and help with small parts of a puzzle

Wontonimo: but not whole solution

Wontonimo: you can also share strategies (without code) and heuristics

Thorcode: how the hell dren solve it ez

Dren: Oh I am sorry

Thorcode: I took me about more than 2 months

Dren: well it would've taken me longer if we didn't talk so much about it in the chat before

Dren: it's easy to go down paths that don't lead anywhere

Thorcode: ah nice

Dren: right now I'm doing prefix code puzzle

Dren: it's way less straight forward

Dren: with try trees

Default avatar.png camnwalter: hey

Dren: hello

Thorcode: hi

Default avatar.png camnwalter: chat do be poppin

Thorcode: WHy codyz nick changed to anoymous?

Thorcode: I've just talked to him 10 min ago

Thorcode: then It changed to Anonymous

Default avatar.png 3dison: hey

Thorcode: ?

Thorcode: could any mods or guy can tell me about that?

Default avatar.png Considerably_Disagreeable: btw

Default avatar.png Considerably_Disagreeable: @Wontonimo

Westicles: he will be reborn, it is Saṃsāra

Default avatar.png Considerably_Disagreeable: http://chat.codingame.com/pastebin/4ba79884-cd2a-4ee9-935e-8c1ba92a87d2

Default avatar.png Considerably_Disagreeable: this is what i was talking about doing

Default avatar.png Considerably_Disagreeable: http://chat.codingame.com/pastebin/a54cd488-d3bc-4afb-846e-10a431ac38f6

Default avatar.png Considerably_Disagreeable: how do i delete previous messages

Default avatar.png Considerably_Disagreeable: i didnt mean to post that twice

Thorcode: ok

Thorcode: Considerably_Disagreeable you could not delete message on world chat either private

Thorcode: really Westicles how could he reborrn

Default avatar.png Considerably_Disagreeable: Well what was before u being born?

Default avatar.png Considerably_Disagreeable: sperm right?

Default avatar.png Considerably_Disagreeable: sperm is the firstborne whereas birth is being reborn

Thorcode: ah

Thorcode: that's question I think have no ans

AlkhilJohn.: damn

Thorcode: like the bird or egg was born first

AlkhilJohn.: a smooth block of code

AlkhilJohn.: http://chat.codingame.com/pastebin/664a28d9-96f3-4399-8325-2e12a89f4b77

Thorcode: bruh

Default avatar.png Considerably_Disagreeable: what if input is like "hello"

Thorcode: yeah

Thorcode: or True

AlkhilJohn.: bruh

AlkhilJohn.: Try The Canadian Computing Competition

AlkhilJohn.: Do the Senior one

Thorcode: the what?

AlkhilJohn.: If you can get at least 3 problems in an hour, you are a decent coder.

Thorcode: bruh the statement of that look like a big mess

AlkhilJohn.: lol ok whatever u fucking think

Thorcode: nah I just tell the truth

Thorcode: messer than codingame

Thorcode: but some algo is ezer than codingame