Chat:World/2021-12-08
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
UZUHAMA: I'm sorry
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
UZUHAMA: :upside_down:
UZUHAMA: bye :DD
skotz: looks like you're adding x and y coords together
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
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:
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?
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
Jojo_lasticot: Hello everyone
OmegaTurboGaming: god daim a big bro
Jojo_lasticot: Oh stop im not big
5DN1L: coding discussion please
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?
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
noobestnoob: sololearn.com might be useful
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
atrovski: how to solve clash code :(
UnnamedCodinGamer: community contributions test in ide button does not seem to be working
UnnamedCodinGamer: can anyone check that?
5DN1L: Mentioned by a few other people too
5DN1L: Use the bottom one instead
UnnamedCodinGamer: I hadn't noticed that it existed
5DN1L: haha
5DN1L: you're welcome
BigMumkey: Hello, im new coder, please gib knowledge
5DN1L: Automaton2000, gib knowledge
Automaton2000: and i dont have much time to do that
Napp: Hello
gamerrboii: im new to codigames
gamerrboii: i o mpleted the startinglevels
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
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
Uljahn: hey, no need to repeat yourself
chenhaorantianjiayi: https://escape.codingame.com/game-session/LPH-FjR-6EO-3iz
derjack: :unamused:
5DN1L: no spam, and English only in this channel please, thanks
Overbed: how do i make 8 have the value of 2 (circles)
Overbed: bro how do i count the circles in code
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
Overbed: hello can i post a code here and can anyone figure out whats wrong with it?
rizonbro: ok
Overbed: http://chat.codingame.com/pastebin/da18062e-ff07-4da1-989d-7d86df3aed2b
rizonbro: input it is
Overbed: i need to find the circles a
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
Overbed: bruh what is an ASCII value
Uljahn: "for i in range(s)" is wrong i guess
rizonbro: maybe
rizonbro: I am like that I sad
Overbed: whats the good like for i in range then?
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
Overbed: would it be better to make a variable and then make it 10 and then use it in the range?
rizonbro: no what you use languga
rizonbro: :troll:
rizonbro: bruh use pycharm
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
Overbed: my clash of code already expired sadly
rizonbro: ok
rizonbro: uljahn
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
Overbed: huh how does this work?
Uljahn: input some keywords and use serach
Uljahn: *search
Overbed: Errors ValueError: invalid literal for int() with base 10: ' ' at Answer.py. in <module> on line 5
i = int(digit)
5DN1L: can s be negative?
5DN1L: no, the input
Overbed: but its something like
5DN1L: oh there are spaces in between
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
Overbed: how do i do that exactly
5DN1L: the link?
5DN1L: to the question i mean
Uljahn: guess it's Useful digits
5DN1L: if the whole string requires just 1 answer, then just remove the spaces
5DN1L: if the different numbers should be handled one by one, then split it
Overbed: it needs to be 1 answer
5DN1L: Uljahn ok i'll search it
5DN1L: thanks
Overbed: yes its useful digits
Uljahn: https://www.codingame.com/contribute/view/14469b605b22b1554aa3fc5746dea60ebf37
5DN1L: great :)
5DN1L: ah, ok
5DN1L: just remove the spaces
5DN1L: similar to what you wrote
5DN1L: oops
5DN1L: no
5DN1L: replace
5DN1L: use the replace function
Overbed: s = input.replace(" ", "")?
5DN1L: input()
5DN1L: add the brackets there
Overbed: s = input().replace(" ", "")
Uljahn: :tada:
Overbed: http://chat.codingame.com/pastebin/a30a6449-039e-400c-a5eb-e9fcacd36632
Overbed: got this but doesnt work
Overbed: doesnt count them up or something
Uljahn: a = 0 and b = 0 should be outside the loop i guess
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/
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
Overbed: i got it a whole lot smaller now
lakaoe: http://chat.codingame.com/pastebin/5c988fd9-d277-48df-aec0-52d5b58945df
Overbed: why create 4 variables
Uljahn: you could use s.count("8")*2+s.count("6")+...
Uljahn: no need to loop
lakaoe: im a beginner so that was all ive learned
Overbed: whats the count function?
Uljahn: read the docs
Uljahn: https://docs.python.org/3/library/stdtypes.html#str.count
Overbed: s.count("8")+2+s.count["6","9","0"]+1
5DN1L: because count accepts only one string as the string argument
5DN1L: you can put three strings "6", "9", "0" in one count
Overbed: i can only do 1 number in brackets?
5DN1L: can't*
5DN1L: yup
5DN1L: and in () not in []
Overbed: s = input() print(s.count("8")+2+s.count("6")+1+s.count("9")+1+s.count("0")+1)
Overbed: it is supposed to be 6
5DN1L: +1 not needed
5DN1L: +2 should be *2
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
Overbed: what would happen if input was 5243 and print(s.count("5")*2)
5DN1L: what do you think?
Overbed: i have actually no idea
5DN1L: "5" is a string
5DN1L: 5*2=10
5DN1L: "5"*2="55"
5DN1L: "5243".count("5")=1
5DN1L: numbers and strings are different things
Overbed: oh so without " is times eachother
5DN1L: yes, because "" makes the digit a string
5DN1L: correct
5DN1L: without "" it's a number
Overbed: but how does this represent
lakaoe: it says the numbers not how many circles
5DN1L: yes
Overbed: it has 2 "8" and then times 2
5DN1L: step by step
5DN1L: s.count(t) means you count how many times t appears in s
5DN1L: so "5243".count("5") means you count how many 5 appears in "5243"
Overbed: omg ty this helps alot
5DN1L: hence the answer is 1
lakaoe: and if it would be "55241"
5DN1L: "5243".count("5")*2 = 1*2 = 2
lakaoe: it would say theres 2 fives
5DN1L: great :)
Overbed: chat is lagging my bad
Uljahn: and is an operator i guess
Overbed: how can i make a code so i can see who wins in rock paper scissors
Overbed: if you can help me a bit i dont need the entire code just a function
Uljahn: is it CG puzzle or clash?
Overbed: You must output who wins or DRAW by Tanvir
lakaoe: http://chat.codingame.com/pastebin/e850cab4-1db3-4a36-96da-876670a9d85f
lakaoe: i have this shitty ass code that doesnt even work half
Overbed: idk maybe try to make "SCISSORS" = 2
Overbed: or idk if you can but a = "SCISSORS" = 2
5DN1L: if call1 == ___ and call2 == ___:
5DN1L: (fill in the blanks)
Overbed: so and works like that?
lakaoe: well i know how to solve it i think but it would take a while
lakaoe: and this is shortest mode
Thorcode: bruh that's not really hard
5DN1L: good luck
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
lakaoe: http://chat.codingame.com/pastebin/1961456f-b15d-491d-93f4-7606def3c54a
Uljahn: http://chat.codingame.com/pastebin/1579502c-418d-4830-8eb5-bf785bc76485
Jerrasterix: what is this ??
Jerrasterix: clash answer ??
Jerrasterix: :+1:
gems20: lol
gems20: what yalls doing
BlaiseEbuth: Someone ban that mod! He's sharing answers!
gems20: oof
Overbed: we already finished the clash of code
derjack: :tada:
Jerrasterix: if someone bans a mod, can't they just unban themselves ??
Overbed: he only helped us shorten it but not in official clash of code
BlaiseEbuth: Mods can't ban mods
Overbed: well i think owner or admin can just degrade him or ban
Overbed: but i think that wouldnt be fair
Jerrasterix: :neutral_face:
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 !!
Automaton2000: well, if you have a lot of code :p
BlaiseEbuth: Yup derjack.
gems20: 😑
5DN1L: gems20, just ask
Overbed: is automaton2000 a bot?
Automaton2000: i was on the driffting part
BlaiseEbuth: Even to become a mod in fact.
Jerrasterix: Automaton2000 are you a bod ??
Automaton2000: did you have a problem with the same seed
5DN1L: Overbed https://www.codingame.com/profile/b97bb4be55e91775c31501aaabb786a27927211
Overbed: is shortening your code with a website illegal?
Jerrasterix: ofc !!
derjack: its up to golf police
5DN1L: lol
BlaiseEbuth: Yeah you could be arrested for that
5DN1L: As long as you submit the code and nobody arrests you then it's fine :shrug:
Thorcode: exec(bytes('佒䭃䍓卉体卒䅐䕐⁒‽ⰰㄠਲⱡ戠㴠洠灡攨慶ⱬ椠灮瑵⤨献汰瑩⤨牰湩⡴䐢䅒≗椠㴽戠 †††攠獬倢䅌䕙≒†猫牴⠨㴽⠠⤱┠㌠ ⤱ ','u16')[2:])
Thorcode: this is shorter XD
Jerrasterix: you can even to sentenced to serve a life time writing golfed code
Overbed: so can i get banned for using
derjack: opening books everywhere :unamused:
Overbed: is golfing bannable or bot
Uljahn: no
Overbed: so exec(bytes('佒䭃䍓卉体卒䅐䕐⁒‽ⰰㄠਲⱡ戠㴠洠灡攨慶ⱬ椠灮瑵⤨献汰瑩⤨牰湩⡴䐢䅒≗椠㵡戽 †††攠獬≥䱐奁剅⬢瑳⡲愨㴽戨†ㄫ┩⤳ㄫ⤩','u16')[2:]) is allowed
Jerrasterix: yeah
Uljahn: why not?
Overbed: in official clash of codes?
Jerrasterix: its a loophole
Overbed: that its from a website
Uljahn: there is no readability requirements
Uljahn: you can do it yourself
Jerrasterix: it needs to work at end of the day
Overbed: so i can use some weird golfing website and not get banned
Uljahn: i don't use sites
5DN1L: but if you can't even write the main code, how do you shorten it
Overbed: you make them yourselves?
Jerrasterix: you will not learn anything
Overbed: can you shorten something yourselves
Uljahn: sure
Jerrasterix: isn't the whole point of code golfing ?? :confused:
Overbed: can you make a code 1 character long if you do it right?
Jerrasterix: if others are all 0% then you can
Uljahn: byte_string = b"Compress with utf-16" compressed = byte_string.decode('u16') print(compressed) print(len(byte_string), len(compressed))
Overbed: ill just use the random website for golfing
Overbed: whats that supposed to mean
NotGoodatall: what language do yall use
TeslaRam: c++
NotGoodatall: i use C#
Jerrasterix: C and C#
Overbed: why is golfing script weird chinese characters
Wontonimo: people use this https://clemg.github.io/pythongolfer/
Overbed: yes i got sent that aswell
Overbed: but why is it weird characters
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"
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?
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
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?
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
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
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...
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
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?
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
Considerably_Disagreeable: its actually quite ridiculous if u think about it, because theres lack of imagination or room for imagination
jacek: hm?
jacek: initialize index variable before the loop
Considerably_Disagreeable: how would u do that, the game requires it to be in loop
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
Considerably_Disagreeable: correct
struct: the inputs are new every turn based on your previous action
Considerably_Disagreeable: exactly and i tried a simple bubble sort but that doesnt even work either
Considerably_Disagreeable: i even tried the reversed order method, didnt work
struct: well you dont need sort at all
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
Considerably_Disagreeable: you cant set the alt outside the loop
Considerably_Disagreeable: thats just not, correct
struct: why would you need to sort?
struct: 8, 5, 4, 5, 6, 3, 1
Considerably_Disagreeable: in case values are different upon input
struct: do you need to sort those values to get the highest index?
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
Considerably_Disagreeable: I am not looking for fake solutions, I call them fake because its copy pasta
Considerably_Disagreeable: thats not coding
jacek: :+1:
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
Considerably_Disagreeable: you are and i love oyu <3
struct: but you are just saying its impossible
Considerably_Disagreeable: ^ yeah i hate my mentality too
Illedan: What language are you using ?
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
AmitBG: someone got job from this game?
Illedan: By doing CodinGame?
AmitBG: By geting skiils and then ...
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
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
Considerably_Disagreeable: I hate being timed
Considerably_Disagreeable: its make me rush then i fuck up and my thoughts go crazy
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: 🤔
Considerably_Disagreeable: while 1: http://chat.codingame.com/pastebin/e4a2202d-c850-4ab3-9ff4-2488331a2e70
jacek: isnt max reserved in python?
Considerably_Disagreeable: so with things like this, why is there even an if conditional? Why is it wrong without it?
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:
Considerably_Disagreeable: its like creating a pointless conditional
Considerably_Disagreeable: that makes absolutely no sense...
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
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
Considerably_Disagreeable: it makes no sense why my answer is wrong without a conditional
Considerably_Disagreeable: because the conditional would be there even if its not there
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 ^
Considerably_Disagreeable: so you are pulling the index to which the greatest value is coming from?
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
Considerably_Disagreeable: isnt this the same as what is the solution while 1: http://chat.codingame.com/pastebin/2e6facdc-9402-4199-9fe9-8921002ba534
Considerably_Disagreeable: ignore the max and imax values
Considerably_Disagreeable: that are lowercase
5DN1L: we aren't comparing with 0
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?
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
Considerably_Disagreeable: max = 0
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
Considerably_Disagreeable: wouldnt u use something along the lines like, max(mountain_h)
Considerably_Disagreeable: max is always 0
Considerably_Disagreeable: because u set it to 0
Considerably_Disagreeable: ur not pulling the max value of the mountains
struct: How long ago did you started programming?
Considerably_Disagreeable: if mountain_h > max:
Considerably_Disagreeable: and max = 0
struct: max = 0 before the for loop
struct: the for loop checks all the mountains
Considerably_Disagreeable: i see
Considerably_Disagreeable: so when u shadow after the first time
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)
Considerably_Disagreeable: that is what I was talking about
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
Considerably_Disagreeable: exactly
Considerably_Disagreeable: which was my confusion
Considerably_Disagreeable: but if u overshadow it then compare the shadow
Considerably_Disagreeable: that makes sense
BartholomewIII: I would use a different variable name, like "max_" or "maximum"
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
Considerably_Disagreeable: you guys are like angels from the depths of love
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
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
Considerably_Disagreeable: *more than you prolly are uk
5DN1L: enough test
Astrobytes: camnwalter: FAILED
BlaiseEbuth: Astrollbytes
Considerably_Disagreeable: Just make sure people dont die at your shows
BlaiseEbuth: Jacek said Astrobytes is uk?! :scream:
BartholomewIII: uk=United Kingdom?
Illedan: Ukulele
Astrobytes: There is no UK. Only a fragmented mess of filth.
Considerably_Disagreeable: I think thats the world dont feel bad
Astrobytes: I can't play ukulele, just mandolin and banjo
Considerably_Disagreeable: I can rap vary, vary badly
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. :))
Overbed: for i in range(a).split:
5DN1L: No
BartholomewIII: .split() is a method on strings
lakaoe: for i in range(str(a)).split:
5DN1L: No
Overbed: for i in range str(input()).split?
BartholomewIII: No, what are you trying to do?
Sayach8: range works on in
Sayach8: int*
Overbed: want to split the input
Overbed: and make every character a variable
Sayach8: for i in input().split()
BartholomewIII: list(input())
Overbed: how do i make variables then
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?
Automaton2000: don't tell me that i can do that
Overbed: message = input() for i in message:
if i == "_": print("snake_case")
Overbed: code so it doesnt print snake case 2 times
Overbed: and can only print it 1 time
jacek: add break?
Azkellas: or `if "_" in message:`
jacek: next line after print
Azkellas: assuming python
Overbed: whats the website called for the puzzles
e_fishel: what do you mean
e_fishel: the website for the puzzles
Overbed: where you search up keywords and then
Overbed: see the clash of code
5DN1L: Do you mean this? https://eulerschezahl.herokuapp.com/codingame/puzzles/
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
Overbed: http://chat.codingame.com/pastebin/659fa6a9-db15-4213-b86f-709002de53d7
Overbed: hello this keeps printing PascalCase
Overbed: it prints PascalCase here
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
struct: you already had a loss jacek
jacek: :exclamation:
Overbed: http://chat.codingame.com/pastebin/0c140c57-6334-49b5-b0ae-bf80ace011aa
Astrobytes: elif message[0] != message.isupper():
Astrobytes: I'd rethink that one
jacek: did you mean elif message[0].isupper():
struct: the 2nd one
ZeroCinq: what's up guys
Overbed: this is like my first time using the "isupper()" function
e_fishel: hello
Overbed: but i got it almost right lol
ZeroCinq: hola amigo
e_fishel: B)
Overbed: i am newbie btw so yeah
5DN1L: you may wanna try islower() too
Overbed: islower() = small letter right
5DN1L: yes
5DN1L: yes
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
Overbed: is me asking for help
Overbed: i dont have a teacher or anything
jacek: if you dont learn from classes/school or university then its self learning
Overbed: that means i am a self learner
Overbed: how long did it take for you 5dn1l to get so good?
5DN1L: Well I've been coding for many years :shrug:
Overbed: i am going to sleep now :wave:
5DN1L: ok, good night!
Astrobytes: goodnight!
Illedan: I guess it's Overbed time
5DN1L: lol
Astrobytes: heh heh
e_fishel: hehehe
The_King_of_Demons: :joy:
Considerably_Disagreeable: why would this be printing the first 3rd element then resume iterating through the entire alphabet?
Considerably_Disagreeable: http://chat.codingame.com/pastebin/c7a4bad9-17c7-4301-9511-f080a9d5ad13
Considerably_Disagreeable: all i am asking for is it to print the index+3 not hte index+3 and the rest of the alphabet?
Considerably_Disagreeable: why is it it doing that?
struct: you never exit the for loop
struct: you need break;
struct: or something
Considerably_Disagreeable: if i do that then it only prints the first 3rd element
Considerably_Disagreeable: i need to keep doing that
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
Considerably_Disagreeable: yes
Ezuker: Who is good in Java
Ezuker: I need help with IndexOF
Considerably_Disagreeable: when i run the code i get this
Considerably_Disagreeable: http://chat.codingame.com/pastebin/284cb5fd-6628-445c-9ef0-a88be639e5cd
struct: yes
struct: because the for loop keeps going
Considerably_Disagreeable: if it keeps going why is it not printing index+3
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?
Considerably_Disagreeable: makes absolutely no sense.
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
Considerably_Disagreeable: no I want to print the 3rd index of the alphabet
Considerably_Disagreeable: every third index
struct: for each letter of the string given?
Considerably_Disagreeable: so 3,6,9,...
Considerably_Disagreeable: 3 will be d 6 will be g and so on
Considerably_Disagreeable: its vary unintuitive to not be able to re use a loop iteration
Considerably_Disagreeable: http://chat.codingame.com/pastebin/5d58d4ce-539a-4ddb-96c3-6c09c31a6fbe
struct: print(alphabet[(index+3) % 26])
Considerably_Disagreeable: mind blown
Considerably_Disagreeable: why does that work now?
struct: because it doenst go out of range
Considerably_Disagreeable: modulos takes the remainder right?
struct: the alphabet has 26 letters
struct: 25%26 = 25
struct: 26% 26 = 0
struct: yes
Considerably_Disagreeable: omg thats brilliant
Considerably_Disagreeable: ceasar
Considerably_Disagreeable: u dog
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
Salick: I need help with one c++ task
Salick: can someone help me please ?
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
Considerably_Disagreeable: http://chat.codingame.com/pastebin/fca1bbc8-ccc5-47b9-8bd9-0ec918e98dd4
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
Considerably_Disagreeable: so like GFRGHA
UZUHAMA: :thumbsup:
UZUHAMA: You guys are the best
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
Considerably_Disagreeable: how do i know when to use len of something then
Considerably_Disagreeable: ill change though but how do i get it back in order though
Considerably_Disagreeable: because when it matches it matches in the order of cddeox
Wontonimo: what puzzle is this?
Considerably_Disagreeable: Code Breaker Puzzle, I am encrypting a message to see how the algo works
Wontonimo: i think i know that puzzle
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
Considerably_Disagreeable: nonono
Wontonimo: no need to actually reverse the encryption
Considerably_Disagreeable: im not reversing yet
Wontonimo: have you made the above function yet?
Considerably_Disagreeable: i simply want to rearrange, the order of the encryption to the order of the word
Considerably_Disagreeable: so the word is still encrypted
Wontonimo: rearrange the order of the encryption? why?
Considerably_Disagreeable: wouldnt it be best practice to?
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'
Considerably_Disagreeable: ok, let me try to repharse
5922: Do you mean you are only encrypting the word and not the message or what
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
Considerably_Disagreeable: because d is g
Considerably_Disagreeable: c is f
Considerably_Disagreeable: o is r and so on
Considerably_Disagreeable: its a trippy question
Wontonimo: okay so there are 3 parts, the alphabet, the message, and the word
Wontonimo: the objective is to find the A and B that decodes the message such that the word is in the message
5922: In other words, the word is in plaintext.
Wontonimo: yes, the word is plaintext and already decoded
Wontonimo: yes
Considerably_Disagreeable: how so
Considerably_Disagreeable: the letters are shifted
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"
Considerably_Disagreeable: if the letters are shifted right?
5922: You think this is harder than The Resistance? D:
Wontonimo: haha
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
5922: Did you solve Caesar is Chief?
Thorcode: nah
Wontonimo: try decrypting the message using a variety of ceasar ciphers.
Wontonimo: that will pass the first 4 test cases
Considerably_Disagreeable: bro
Considerably_Disagreeable: i know how to decrypt it
Wontonimo: ok
Considerably_Disagreeable: thats not the question
Wontonimo: what's the question?
Considerably_Disagreeable: http://chat.codingame.com/pastebin/31b8ea25-ca8a-48cc-b169-ea424c03d8a9
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.
Considerably_Disagreeable: the puzzle or my question
Considerably_Disagreeable: two different things
Wontonimo: the puzzle
Considerably_Disagreeable: exactly
Wontonimo: i don't even understand your question
Considerably_Disagreeable: how when i tell you what order you have to rearrange them in
5922: It is a shift which is then multiplied
5922: At least not in the sense that I gather
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
5922: As Wontonimo suggested above
Considerably_Disagreeable: the question, literally had nothing to do with the puzzle. stop talking about the puzzle. Its not about the puzzle
Considerably_Disagreeable: http://chat.codingame.com/pastebin/defb0526-ff31-4e8c-93f2-118ec00f78dd
Wontonimo: ah. sorry, can't help you then
5922: Boy, you are disagreeable.
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
Dren: hello
Thorcode: hi
Thorcode: WHy codyz nick changed to anoymous?
Thorcode: I've just talked to him 10 min ago
Thorcode: then It changed to Anonymous
Thorcode: ?
Thorcode: could any mods or guy can tell me about that?
Considerably_Disagreeable: btw
Considerably_Disagreeable: @Wontonimo
Westicles: he will be reborn, it is Saṃsāra
Considerably_Disagreeable: http://chat.codingame.com/pastebin/4ba79884-cd2a-4ee9-935e-8c1ba92a87d2
Considerably_Disagreeable: this is what i was talking about doing
Considerably_Disagreeable: http://chat.codingame.com/pastebin/a54cd488-d3bc-4afb-846e-10a431ac38f6
Considerably_Disagreeable: how do i delete previous messages
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
Considerably_Disagreeable: Well what was before u being born?
Considerably_Disagreeable: sperm right?
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
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