Chat:World/2022-04-06
Husoski: "Nice" and "1-line" don't usually go together.
antiwonto: [auto] Hey Husoski, here is a :taco: for loggin in today while it is quiet. You now have 10 tacos
Husoski: eat taco
antiwonto: [auto] That taco command has moved to the #taco channel
Westicles: elegant?
derjack: :taco: jacek
antiwonto: [auto] Hey derjack, here is a :taco: for loggin in today while it is quiet. You now have 48 tacos
derjack: 3:
SilverEagle: take taco
antiwonto: [auto] aww, there are no tacos to take
Thorcode: taco
antiwonto: [auto] Hey Thorcode, here is a :taco: for loggin in today while it is quiet. You now have 7 tacos
Thorcode: yay
Thorcode: eat taco
antiwonto: [auto] That taco command has moved to the #taco channel
Thorcode: take taco
antiwonto: [auto] aww, there are no tacos to take
Thorcode: no
Mortis_666: :taco: Thorcode
antiwonto: [auto] Mortis_666 has awarded Thorcode 8 tacos. Thorcode now has 15 taco. Mortis_666 now has 23 taco
Mortis_666: nice
Thorcode: thanks
Mortis_666: eat taco
antiwonto: [auto] That taco command has moved to the #taco channel
Thorcode: how can you award alot taco
Thorcode: shakedown automaton2000
Automaton2000: i just check if a pac is dead
Thorcode: shakedown automaton2000
Automaton2000: thats not what i mean
Thorcode: shakedown Automaton2000
antiwonto: [auto] That taco command has moved to the #taco channel
Automaton2000: that's why i need to write a bot
Westicles: lmgtfy Thorcode tacos
antiwonto: [auto] hey Thorcode let me google that for you https://letmegooglethat.com/?q=tacos
Thorcode: bruh
Thorcode: How can i move around a circle with a given radius (my problem in the escaping the cat)
Uljahn: heh
Westicles: probably with a bunch of math. 1-star, math puzzle not programming
Thorcode: that would be tired
Westicles: more seriously
Westicles: lmgtfy Thorcode How can i move around a circle with a given radius
antiwonto: [auto] hey Thorcode let me google that for you https://letmegooglethat.com/?q= How+can+i+move+around+a+circle+with+a+given+radius
Thorcode: geez i just looked at some solution for my ans, it is kinda complicated
Thorcode: anyway thanks i'm gonna copy it
Westicles: Anyone else have XP disappear lately?
Thorcode: how can xp disapear?
Thorcode: it have wings?
Westicles: Beats me. I had 666 earlier and it was spooking me out, then it clicked back to 616
Uljahn: migth be a caching problem, try ctrl+f5
Thorcode: Might be a gosh do that XD
Thorcode: *ghost
LelouchVC2: someone kiss me
Uljahn: you mean kick?
Thorcode: ghost can do that XD
LelouchVC2: If a kick is the price of a kiss
KiwiTae: :kissing_heart:
LelouchVC2: 😳
LelouchVC2: Made my heart flutter
KiwiTae: its for the ghost
LelouchVC2: oh :(( I see
**Thorcode is playing with a ghost or even coding with one XD
Westicles: Are people going to hate this? I thought it was fun but am not always right
Westicles: https://www.codingame.com/contribute/view/1305066e2c3191cf2e59b0815a8866e5490f8
Thorcode: how can i solve this bruh
Thorcode: ah you made a file input bruh
Uljahn: ye, it's fun to discover how things work under the hood
cagriy: hi from Turkey
antiwonto: [auto] Hey cagriy, here is a :taco: for loggin in today while it is quiet. You now have 1 tacos
cagriy: what is this taco
Uljahn: :taco:
antiwonto: [auto] ':taco:' was defined as ' A currency to some, sustenance for others '
ETET: take taco
antiwonto: [auto] aww, there are no tacos to take
ETET: give tacos to me
BrokenBrain: love taco
ETET: Hellow world
ETET: *Hello
Darleanow: Hello guys, it's been a while ! :)
Thorcode: hi
Darleanow: how are you thorcode ?
Balta5Sokoladas: sup
ETET: Whats yall's favourite language to code in?
ETET: taco
ETET: take taco
antiwonto: [auto] aww, there are no tacos to take
ETET: take tacos
antiwonto: [auto] aww, there are no tacos to take
ETET: lmgtfy Thorcode tacos
antiwonto: [auto] hey Thorcode let me google that for you https://letmegooglethat.com/?q=tacos
Passifi: z80 assembler, Quickbasic, c++ in that order
ETET: how do you even code in z80 assembler??
ETET: it looks so hard
ETET: and also Quickbasic looks hard too
Passifi: ld a,3
Passifi: like that
Passifi: it's not really harder per se just way more work
ETET: hummm
ETET: do u self study?
Thyleo: name somethong your girlfriend like to do to your face :microphone2:
Thyleo: something*
ETET: I don't have one, I am too young :)
Passifi: I m almost certain there aren't many ways to formally learn z80 ml anymore ;)
Thyleo: oh waouh
Passifi: caress it, then serenade my beauty in verse and song
Passifi: she's strange like that
Thyleo: XD
AlexS293: :flag_dj:
LelouchVC2: Funny, my relationship lasted about 14 hours
LelouchVC2: She said it wasnt going to work out after our first time. Weird though, I couldn't find my wallet after that
AlexS293: :flag_mk:
Uljahn: friendly reminder: https://www.codingame.com/playgrounds/40701/contribute---help/code-of-conduct
LelouchVC2: I like how it says, "Cheating is discouraged"
PovkeHD: Turime klouną mūsų gretose
NewCoder09: Vandenis PovkeHD english only please
antiwonto: [auto] Hey NewCoder09, here is a :taco: for loggin in today while it is quiet. You now have 6 tacos
Darleanow: Hello guys, any idea of simple program to generate added variable names
Darleanow: for exemple, i have n variables to make, and will create n variale with a different name
Trunksistor: It strongly depends from your prog lang... but would not be better to have an array / list?
Darleanow: python :)
Darleanow: no, i need variables, to store a X value
Darleanow: for ex var1=1x
Darleanow: var2=2x
Darleanow: until n
Trunksistor: Well, I strongly suggest you to change your strategy, it easily may be wrong... BUT, if you want to try for the sake of knowledge, who am I to block you? I'll put here a possibility, let me just check one thing
Darleanow: i got something
Darleanow: for i in range(0, 9): http://chat.codingame.com/pastebin/e23c98b9-6c22-4180-a261-d60f38f7ff51
Darleanow: https://www.codingame.com/ide/puzzle/cyborg-uprising
Wontonimo: use a dictionary
Darleanow: its for this game, i'm going to evaluate distance between all of factories to take the closest ones
Trunksistor: Ok, in general yes you can go with it. But Wontonimo is right
Trunksistor: http://chat.codingame.com/pastebin/fb69ab77-62d7-473a-9dbc-0813541819a9
Darleanow: its coded hardly
Darleanow: i don't want to do this way
Darleanow: this is the point
Wontonimo: "coded hardly"?
Trunksistor: but you can generate the key of the dictionary
Trunksistor: like you would generate the name of the variables
Darleanow: yes wonto, i mean by this, the french expression "coder en dur"
Darleanow: i'll try my idea, if it doesn't works i'll get to now about dicts :)
Trunksistor: hardcoded, same thing. The point is that you can use whatever key for your dictionary
Darleanow: :point_up_2:
Wontonimo: you can do it like this
Wontonimo: http://chat.codingame.com/pastebin/1af384c9-5bfa-4833-a4d8-6da54c64a606
Darleanow: indeed this is what i was going to do
Darleanow: almost
Trunksistor: Then, that is a dictionary :wink:
Darleanow: :o
Darleanow: this is ? for i in range(0, 9):
globals()[f"my_variable{i}"] = f"Hello from variable number {i}!"
Wontonimo: ^^ that won't work
Darleanow: why ?:'(
Wontonimo: oh, it will. never mind
Darleanow: :)))
Wontonimo: it's so ....wrong... though *shiver*
Darleanow: HEHEHEHE WONTO
Darleanow: i'm the next wonto
Trunksistor: It's working, but it's a dangerous path xD
Darleanow: i've always been a sith anyways
Wontonimo: why on gods green earth would you want to commit such an atrocity ?
Darleanow: you should already know as time goes by that i have mental issues
Darleanow: :)
Trunksistor: I think you should have a Sith Lord to teach you the path :grin:
Darleanow: i have no master, only pain is.
Darleanow: am i acting like a sith good enough ?
Wontonimo: in all seriously though, don't do the globals()[ ... ] thing. really, it's really bad programming practice
Wontonimo: "in all seriousness"*\
Darleanow: why are globals vars bad ?
Darleanow: if they have a really specific name, i should not be having problems right ?
Wontonimo: no, using globals()[...] to make new vaiables is yuck. use an array or a dictionary
Darleanow: i don't know, i'm open to ideas
Darleanow: okay so should i gen a dict, with first to distance from 1-2 as 12 and value as 6 for ex ?
Wontonimo: if you want a global do it like this
Wontonimo: for i in range(0, 9): http://chat.codingame.com/pastebin/7790ee34-c139-4ce7-8dc2-fcc49448a1f1
Darleanow: i mean replace key by value
Darleanow: I LIKE THIS WONTO <3
Darleanow: give wontonimo :taco:
Darleanow: i forgot the syntax --'
Darleanow: :taco: wontonimo
Darleanow: okay then
Darleanow: drop :taco:
antiwonto: [auto] Darleanow has thrown 5 :taco:s on the floor for the taking but 1 was eaten by a software bugs!
NewCoder09: take taco
antiwonto: [auto] NewCoder09 has taken 2 :taco:s off the floor and now has 8. There are 2 left
NewCoder09: :taco: Wontonimo
Darleanow: THEYRE FOR WONTO >:(
antiwonto: [auto] NewCoder09 has awarded Wontonimo 8 tacos. Wontonimo now has 39 taco. NewCoder09 now has 9 taco
Wontonimo: hehe
Darleanow: okay nice
justhalf: take taco
Darleanow: take :taco:
antiwonto: [auto] aww, there are no tacos to take
Wontonimo: :taco: NewCoder09
antiwonto: [auto] Wontonimo has awarded NewCoder09 10 tacos. NewCoder09 now has 19 taco. Wontonimo now has 40 taco
Darleanow: i'm taking em back
Darleanow: i can't --'
justhalf: take :taco:
antiwonto: [auto] aww, there are no tacos to take
Wontonimo: I got a bunch, thanks Darleanow
NewCoder09: Antiwonto can be cap sensitive
Darleanow: <3
Darleanow: Antiwonto should get a punishment by my red lightsaber
Darleanow: pfiouuu
Darleanow: antiwonto disappeared
NewCoder09: No
NewCoder09: He's good
NewCoder09: He's a Jedi
Darleanow: too late
NewCoder09: Your're a sinth
NewCoder09: you're*
Darleanow: he's now resting in the kedi's paradise
Darleanow: jedi's*
NewCoder09: Shakedown Darleanow
Darleanow: i am indeed :=)
antiwonto: [auto] That taco command has moved to the #taco channel
Darleanow: HEY
Darleanow: DO IT AGAIN U GON EAT MY LIGHTSABER TOO
Wontonimo: hey Darleanow , here is some python exercises that could help you https://www.hackinscience.org/exercises/
Darleanow: i already did the 18 firsts
Wontonimo: and a python helper book or common programming patterns http://bedford-computing.co.uk/learning/wp-content/uploads/2015/10/Python-Cookbook-3rd-Edition.pdf
Darleanow: and half of the right pan
Darleanow: pannel*
Wontonimo: cool. Check out this python game for some insight into using variables and dictionaries dynamically https://tech.io/snippet/wLSSnKR
Trunksistor: Yes, but try to figure out how to improve yourself. Those link from Wontonimo are gold!
Wontonimo: you may have to copy the code from the last link and run it locally. The tech.io interactive mode seems to be having issues
Darleanow: Thanks Wonto !
Darleanow: yeah i tred the tech.io game it looks really cool !
Wontonimo: play around with the variables in it. see if you can make it so that there is a secret message per room that is shown only the second time someone enters the room.
Darleanow: i'll save this in my notebook, i'll do it !!!
Darleanow: and i'll get back to you once i did it :)
Wontonimo: the secret message should be stored in the same data structure as the room data.
Wontonimo: cool cool
Wontonimo: have fun!
Darleanow: thanks, you too !!!
justhalf: Any python golfer online?
Uljahn: :thinking:
justhalf: You Python golfer?
Darleanow: https://code.golf/
Darleanow: if this answers you question
justhalf: Oh, I'm just looking for a conversation partner about a specific problem about code golfing. Or perhaps we're not supposed to discuss problems here?
Darleanow: i mean tbh you can
Darleanow: i'm doing this quite often, and nobody told me that it was bad
Shrimpster: hello people o/
Darleanow: o/
Darleanow: \o/
Darleanow: even better : ö/
Shrimpster: yeah because I have ears like a cat :D
Darleanow: :o
Darleanow: aren't you a shrimp ?
Shrimpster: if you put the feelers up they look like ears :D
Darleanow: /\_/\
|o-o|
\___/
Shrimpster: Forgot to run my code before test in arena xD
Darleanow: OOF
Darleanow: begineer.
Shrimpster: hahah yeah happens
Darleanow: https://www.codingame.com/ide/puzzle/cyborg-uprising /// when my brain will be able to move his ***, i'll finish this
Shrimpster: lol gl, Im on uTTT
Shrimpster: tryna break top 20
Darleanow: wut is this ?
Shrimpster: ultimate Tic Tac Toe
Darleanow: OH
Shrimpster: basically MCTS
Darleanow: mcts ? xd
Hugesn0wduck: hello all!
basically: hello
Hugesn0wduck: how is your day/night so far?
Shrimpster: monte carlo tree search Darleanow
Darleanow: aight mr shrimp, thanks :)
Shrimpster: my day is pretty good, had a neat workout a couple of hours ago and have a nice afternoon planned hbu? Huge
Hugesn0wduck: um, tired
Hugesn0wduck: cross country started so im really tired from yesterday
Shrimpster: I mean its like 4am in USA right?
Shrimpster: 6*
Hugesn0wduck: its 9:30 for me
Darleanow: mr schrimp, i need your help
Shrimpster: ah, just woke up?
Darleanow: http://chat.codingame.com/pastebin/fc15ce9b-2b04-4114-a1db-4b4cf3553e89
Hugesn0wduck: darleanow with what? i may be able to help
Hugesn0wduck: no i wake up at like 4am
Darleanow: linke 13-14
Darleanow: line 34
Darleanow: maybe you can ! :) i hope so
Shrimpster: you havent declared dist10
Darleanow: I DID
Darleanow: basically during the loop for i in range(link_count)
Darleanow: when factory_1 is 1
Darleanow: OKAY NVM
Shrimpster: I dont think python works that way
Darleanow: my {i} was stupid, now its fixe
Darleanow: it works :)
Shrimpster: maybe try a hash map {}
Shrimpster: lol ok gl
Darleanow: ('distance from 1 to', 0, 'is', 8)
Darleanow: 8 )
Darleanow: i'm happy now that it works
Shrimpster: keep it up :D
Darleanow: <3
justhalf: I'm wondering what kind of methods people use in the Thor codegolf puzzle. I saw people with as low as under 70 bytes. Meanwhile I'm stuck at 118 with no obvious way to reduce it further. So I assume this could come from a completely different way to approach the problem.
justhalf: (context: Python 3)
Darleanow: justhalf, a quick tip that made me discover a lot of things, is the python book
Darleanow: for example, ik that you know way more than me
Passifi: there is this thing that outputs your code as some weridly format utf 16 gibberish and that saves a lot of space
Darleanow: but lambda funct are way more short than funct etc
Passifi: https://clemg.github.io/pythongolfer/
Passifi: there it is
Passifi: I think this is a quiet well known open secret so if the code seems impossible short they might have used this
Darleanow: THIS IS GENIUS
Darleanow: exec(bytes('牰湩⡴栢汥潬眠牯摬∡ ','u16')[2:])
antiwonto: [auto] hey Darleanow that looks like python golf compression. It's legit, and acceptable to use. You may be interested in this tool https://clemg.github.io/pythongolfer/
Darleanow: i will win all my clash of codes mouahahhahaa
timbersson: lol thanks passifi, that just took my code for that puzzle from 135 to 93 :smile:
Shrimpster: yeah almost everyone knows it apparently Darleanow so... goodluck :D
Darleanow: :'(
Darleanow: imma go back in time to remove the idea from the head of the creator
Darleanow: and make it for myself
Darleanow: :)
justhalf: Lol, that's a cool trick for static puzzles, haha
Darleanow: oh, justhalf, i've seen that you're interested in nlp, which language are you using to deal with it ?
justhalf: Most industry standards use Python, since there are many libraries there already
Darleanow: yeah i've seen about spacy and nlp
Darleanow: nltk*
Darleanow: i had a question about it
justhalf: Ask away
Darleanow: it's quite hard to explain it in english as it's not my main language, but i'll try; I'm trying to develop a sort of ai which would process language, i mean understand it
justhalf: Yes, that's the general goal of NLP
Darleanow: indeed
Darleanow: i can get the function of the words in a sentence
Darleanow: using spacy
Darleanow: ITS SO HARD TO EXPLAIN
justhalf: Function, as in part of speech? Or dependency parser?
Darleanow: i mean the role of each word in a sentence
justhalf: What are some examples of roles
Darleanow: do : verb
justhalf: Ah, ok, you mean part of speech
Darleanow: indeed
Darleanow: but for example when i'm telling it sentences like I like apples, i need to make it able to identify that when it's an input, and ther's an I it's me
Darleanow: but if it says I, it's not going to be me obv
Darleanow: and process all of this in sql queries to store data
Darleanow: for example i'm saying i like apples
Darleanow: i'd like to make it able to query a sql table named Darleanow
Darleanow: in which apples is something that i like, and when i ask What do i like, it would tell me that i like apple
Darleanow: apples*
justhalf: You're building Knowledge base
Darleanow: exactly
Darleanow: and i would also like to build an entire emotionnal system, which is affected by randomness, but also by other factors, for example if it likes rainy days and its raining, hapiness would go up
Passifi: some of the difficulties of these puzzles are just a bit skewed I've been working on Battle Tower for hours and still no success but war i finished in one session and the later gives you more exp :upside_down:
Darleanow: and the whole emotional system would affect the way it answers me
Uljahn: Automaton2000: doomed from the start
Automaton2000: you need to learn it
NewCoder09: Hello
MaliciouslyCrypticUsername: Uljahn why was csb renamed .-.
eulerscheZahl: i'm not Uljahn but may I answer too?
Husoski: ...only if you get permission to ask first. :)
MaliciouslyCrypticUsername: sure euler
eulerscheZahl: possible copyright infringements, "The Empire strikes back"
eulerscheZahl: CG renamed a lot of their games recently
**PatrickMcGinnisII dislikes the new names
eulerscheZahl: same
MaliciouslyCrypticUsername: ya I was thinking copyright but I wasnt completely sure
Wontonimo: i think we can all agree
MaliciouslyCrypticUsername: hiiii Wontonimo
Wontonimo: hi MaliciouslyCrypticUsername :wave: :wave:
MaliciouslyCrypticUsername: Hav a taco :taco:
Wontonimo: thanks
inoryy: but has anybody considered risks of MK suing for the obvious copyright infringement in the new name?
Wontonimo: :grin:
MaliciouslyCrypticUsername: our school blocked replit on their computers .-.
eulerscheZahl: that makes absolutely no sense to me
eulerscheZahl: students could learn coding there, bad?
MaliciouslyCrypticUsername: Well some ppl were using it as a proxy to get past the content filter
PatrickMcGinnisII: the Mad one funnelled alot of users into CSB
Wontonimo: is there any multi that is easier to get to gold than CSB?
MaliciouslyCrypticUsername: Probably not
eulerscheZahl: when you don't know the -3v, it's not that easy actually
Wontonimo: *if you are given the 1 line trick
MaliciouslyCrypticUsername: euler everyone knows it tho
MaliciouslyCrypticUsername: AutomatonNN hi
MaliciouslyCrypticUsername: ._.
Wontonimo: nope, i help a few people a month learn it
eulerscheZahl: i reversed the physics (not the collisions, but the friction and max turn angle)
eulerscheZahl: wrote a monte carlo to reach gold. and then it was part of the statement
eulerscheZahl: i was pretty pissed
MaliciouslyCrypticUsername: lol
MaliciouslyCrypticUsername: where did AutomatonNN go?
eulerscheZahl: got the covid virus and died
Wontonimo: because you missed it in the statement, or was the statement updated after you did the work eulerscheZahl
MaliciouslyCrypticUsername: ioof
MaliciouslyCrypticUsername: oof*
eulerscheZahl: no more pings for me, i don't miss automaton
PatrickMcGinnisII: eulerscheZahl <3s Automatons
eulerscheZahl: the friction+turn angle were (are?) not part of the statement below gold
Wontonimo: ah
Wontonimo: that would be piss inducing
PatrickMcGinnisII: I dove into the math and ran sims...beyond using -3v ... the floating math kills cycles, better to use that time for more searches
PatrickMcGinnisII: having said that, my CSB still sucked
inoryy: -pi*v better
MaliciouslyCrypticUsername: Did csb change recently? Apart from the name
PatrickMcGinnisII: +/- .1 dependent on speed did work, but every conditional reduced depth
MaliciouslyCrypticUsername: cus my code is being funkyt
MaliciouslyCrypticUsername: funky*
eulerscheZahl: 75ms/turn instead of 150. but that's been years ago
MaliciouslyCrypticUsername: huh
PatrickMcGinnisII: i wrote 659 lines of code for Block the Fire ... more than half is commented out, smh. I should start over now that the experimenting is kinda over
hyphz: The PotW is getting on my nerves.. is the cat cheating and getting its paws wet on the surround moves?
Wontonimo: nope
PatrickMcGinnisII: My cats, even the blind one, would win everytime
Wontonimo: hey MaliciouslyCrypticUsername , your CSB pods are not doing and drift correction (-3v or otherwise)
Wontonimo: and your lookahead for drifting is too aggressive and needs to be made a little more conservative
Wontonimo: it looks like your bots are going to do an amazing drift past a checkpoint but then miss it by pixels and have to loop back.
1zanie: hello world
NewCoder09: Hello
antiwonto: [auto] Hey NewCoder09, here is a :taco: for loggin in today while it is quiet. You now have 10 tacos
NewCoder09: ello maate
NewCoder09: ello mate
PatrickMcGinnisII: shaakedown Wontonimo
PatrickMcGinnisII: shakedown Wontonimo
antiwonto: [auto] That taco command has moved to the #taco channel
PatrickMcGinnisII: :P
NewCoder09: #fr
NewCoder09: #angel
NewCoder09: #devil
jacek: :upside_down:
antiwonto: [auto] ':upside_down:' was defined as ' ɥǝllo '
Neralem: What to do if i fail on a single validator of a puzzle? :/
PatrickMcGinnisII: Neralem look at the puzzle contribution and look at the validator you failed.
Uljahn: his level is not high enough i guess
Neralem: Sadly not. Can only see pending ones
PatrickMcGinnisII: well that's annoying
Neralem: Got help, thanks :)
jacek: :tada:
Neralem: Anyone else getting the message "Network error : status -1" when trying to run a test in the IDE? Can't run any testcases really
PatrickMcGinnisII: What did you break?
Neralem: It wan't me :( .... i think
PatrickMcGinnisII: I usually only get that when my internet goes down
Husoski: This might be a good time to restart your browser
Neralem: even tried a different browser. Same
Neralem: suddenly works again
Husoski: Sometimes that happens when a cow flies by.
PatrickMcGinnisII: The BSI inserted a Kasperky virus
a-Rye: Or when the hamster falls off the wheel
PatrickMcGinnisII: cat did a dance on CG keyboard
Westicles: hmm, the french poked a hole in my clash
antiwonto: [auto] Hey Westicles, here is a :taco: for loggin in today while it is quiet. You now have 16 tacos
Smelty: o-o
hyphz: Oh, no, it's the sodding mouse spiralling inwards instead of circling because of rounding error on the pixels.
HoneyGlazedGherkinsEggTartare: :taco:
antiwonto: [auto] ':taco:' was defined as ' A currency to some, sustenance for others '
Synergyforge: Dead chat
antiwonto: [auto] Hey Synergyforge, here is a :taco: for loggin in today while it is quiet. You now have 9 tacos
ycsvenom: can i get a taco antiwonto
antiwonto: [auto] Hey ycsvenom, here is a :taco: for loggin in today while it is quiet. You now have 13 tacos
ycsvenom: Automaton
ycsvenom: Automaton200
ycsvenom: Automaton2000
Automaton2000: i should probably look at performance on a more macro level as well
ycsvenom: i hate shortest
Astrobytes: What was the 'issue' people had with Block The Spreading Fire optim?
antiwonto: [auto] Hey Astrobytes, here is a :taco: for loggin in today while it is quiet. You now have 32 tacos
Smelty: can i get a taco antiwonto
Smelty: automaton2000
Automaton2000: why do you think is important
potatok: i give up
Simlas1337: yes give up its isnt worth it
Westicles: Astrobytes, I think they didn't like it has a random validator
Simlas1337: btw i dont understand why easy puzzles are hard to optimize in order to receive 100%
Astrobytes: Westicles, lol not the end of the world is it
Astrobytes: Simlas1337: often it's a case of complexity reduction, nothing crazy
Astrobytes: *time complexity
Westicles: yeah, and I think it was a misunderstanding, looks like it was generated randomly but doesn't change
Westicles: anyhow, they are mad at me now instead
Astrobytes: looks alright, might give it a go
Astrobytes: What have you done or not done now? :D
Westicles: ruined their day with this
Westicles: https://www.codingame.com/contribute/view/1305066e2c3191cf2e59b0815a8866e5490f8
Astrobytes: :rofl:
Astrobytes: Don't ever change
Westicles: ha, well this time my intentions were good. I didn't realize the tests would all fail if it got approved
Astrobytes: It's interesting enough, wonder if they'll pick up on it
Astrobytes: anyway, gotta run, catch you later
Simlas1337: Did somebody make mime type for 100%? I'm just curious how to optimilize this
Westicles: bye Astro
Sarstan: Weird. Got the Escaping the cat puzzle solved. Then submit and it fails the latter 3. For some reason my mouse is turning around when it shouldn't.
ASM_MOV_INT: My mouse moves so slow, it only escapes the first test.... I'm heading exactly opposite of where the cat is, so there's no further point to run away to
Sarstan: My deal is I got tired of trying to setup the trig, so I decided to try making the cat go back and forth as long as I could before rushing the edge.
ASM_MOV_INT: then again, i just recovered from heading the mouse directly to the cat!
ASM_MOV_INT: rofl
Sarstan: Which worked for me!
Sarstan: Until the validators.
ASM_MOV_INT: i bet you have to do some fancy calculations to figure just the perfect direction to avoid the super fast cat....
ASM_MOV_INT: move just enough to keep the cat going the direction it's going, yet move closer to the border
Sarstan: Yeah, without giving away too much, I essentially get to the center and then when the cat moves one direction, the mouse moves the opposite until the cat catches up, then move the other direction and so on.
Sarstan: To a certain point where I have it make a break for it.
ASM_MOV_INT: i use atan to figure where the cat is on the circle, then cos and sin to figure the point to aim the mouse
Synergyforge: Yeesh. Math is hard.
Sarstan: That's what I tried at first until I kept having issues with going from positive to negative values.
Sarstan: I know there's a way to handle it, but I'm lazy right now.
ASM_MOV_INT: yeah, my mouse bounces back and forth and doesn't get far
ASM_MOV_INT: same
ASM_MOV_INT: the clash of code !
Sarstan: There we go! I had a stupid mistake in my code. An OR statement that needed to check the same statement from the other side that I didn't include.
Sarstan: Alright, now that that's done, I should probably try to solve it as intended in the near future, lol.
Kaelidian: I can't get TID to work right on Game Of Drones
antiwonto: [auto] Hey Kaelidian, here is a :taco: for loggin in today while it is quiet. You now have 1 tacos
PatrykJagielski: tak taco
antiwonto: [auto] Hey PatrykJagielski, here is a :taco: for loggin in today while it is quiet. You now have 1 tacos
love_0_0: is anyone still breathing?
RandomSteve: YO GUYS I JUST COMPLETED MY FIRTS CLASH OF CODE 100% LET'S GO
RandomSteve: yeah I'm breathing
Wontonimo: congrats
RandomSteve: boy I've been trying with several clashes of code and with each one I learned more but couldn't solve any till now
Wontonimo: that's a milestone for sure
Wontonimo: what language are you practicing?
Wontonimo: nice, i did java for a long time. i liked it a lot
RandomSteve: I am pretty new to programming
RandomSteve: so you changed? why? you found a better language?
Wontonimo: well it is pretty cool that you kept at it! Most people have a really hard time getting over that initial hump
RandomSteve: thank you well this community in codingame is really cool and helpful and nobody is discouraging
Wontonimo: no, i changed because work changed. I started at a new place that needed me to learn PHP
RandomSteve: oh I see so they worked with a different language and you had to change
Wontonimo: yeah, then after that it was Javascript. Now I'm onto Python.
RandomSteve: wow you're like a polygloth
Wontonimo: I miss the strict types of java and the old javadoc
Wontonimo: :grin: thanks
Wontonimo: what attracted you to programming?
PatrykJagielski: eat taco
antiwonto: [auto] That taco command has moved to the #taco channel
Wontonimo: :taco: RandomSteve
antiwonto: [auto] Wontonimo has awarded RandomSteve 1 tacos. RandomSteve now has 1 taco. Wontonimo now has 31 taco
PatrykJagielski: whats time in Canada?
RandomSteve: so sorry I had to go afk for a second
RandomSteve: thanks for the taco lol
Wontonimo: Canada is huge. The second largest country in the world. There are lots of time zones here
Wontonimo: for me it is 11:34pm
RandomSteve: I guess the fact that you can do theorically anything with programming, from games to webpages or apps etc. And a youtuber that I watch recently codes minecraft mods so I guess seeing that I could code a webpage or a mod or an app or a game or anything I want is pretty interesting to me
RandomSteve: I feel like a kid saying minecraft mods but I'm actually 20 lol
RandomSteve: well I guess at heart I'm 5 years old anywau
RandomSteve: it is 10:36 pm here
Wontonimo: hey, I tried my hand at minecraft mods when my kids were 11 and 12. It was fun
Wontonimo: heck, I still play once in a while. why not? it's fun
RandomSteve: yeah I guess you're right. I like being a creative person and java and minecraft hold a creative aura adn I really like that
Wontonimo: have you done any of the puzzles RandomSteve ? Like "The Descent" ?
RandomSteve: dude you're a pro you're top 0.1% on this page and still stop to congrat a complete noob like me wow thank you
RandomSteve: I tried the mouse scape event
Wontonimo: that one is tricky
Wontonimo: how about this one https://www.codingame.com/training/easy/the-descent
RandomSteve: boy I spent like two hours and I passed level one and that's it
a-Rye: Minecraft is awesome! But if you want to develop mods for it, disable the logging that's associated with the log4j vulnerability
RandomSteve: oh wait I remember this
Wontonimo: here are the other intro puzzles https://www.codingame.com/training/easy/temperatures
Wontonimo: https://www.codingame.com/training/easy/power-of-thor-episode-1
RandomSteve: I tried this the other day but I felt like I didn't know enough maybe I could give it another shot
Wontonimo: which one?
Wontonimo: oh
Wontonimo: want some help?
Wontonimo: I won't solve it for you but i'll give you hints
RandomSteve: Oh that would be amazing honestly
Wontonimo: okay, so go into it https://www.codingame.com/ide/puzzle/the-descent
RandomSteve: I have been watching some tutorials but I am still a bit confused
Wontonimo: and look at the default code.
Wontonimo: do you know how to load the default code if you want it again?
Wontonimo: it's the arrow in the top right. looks like a circle
Wontonimo: okay, run the first ttest case using the default code
Wontonimo: it will just always shoot mountain 4
Wontonimo: which is wrong, but let's solve it
Wontonimo: the objective is to shoot the highest mountain each pass
Wontonimo: lines 11-12-13 read in the remaining height of each mountain
Wontonimo: line 12 specifically gets the mountain height
Wontonimo: and "i" is the index of tthe mountain
RandomSteve: wait lines 11-12-13 are just comments
Wontonimo: oh sorry ... just a sec
Wontonimo: 19-21
Wontonimo: i deleted some comments above
Wontonimo: line 18-27 are your main game loop
Wontonimo: that section of code is run every round. you get 1 shot per round
Wontonimo: so, how would you find the mountain with the largest height out of the 8 mountains ?
RandomSteve: ok give me a second to think
Wontonimo: you can add code, just like you can in clash of code
RandomSteve: so I know mountain one in this case is the highest one
Wontonimo: mountain 0 actually, but yeah
RandomSteve: but I am not sure how to tell the program to identify the highest one
RandomSteve: ok mountain 0 you're right
Wontonimo: okay, what if we declare 2 more variables at the start of main
Wontonimo: int highest_height = 0; int highest_mountain_i = 0;
Wontonimo: and right after int mountainH = in.nextInt();
RandomSteve: you mean the main loop?
Wontonimo: we check and update those variables
RandomSteve: sorry for being a noob
Wontonimo: np
RandomSteve: so I would add that in the while block
Wontonimo: let's put those variables right after public static void main(String args[]) {
Wontonimo: oh no, you are right,
Wontonimo: right after the while(true)
Wontonimo: sorry
RandomSteve: yeah I feel like it wouldn't link both things and confuse the program it has happened to me sometimes
RandomSteve: so the line with the for loop with the variable i is between theint highest_height = 0;
int highest_mountain_i = 0; I jsut made
Wontonimo: This is where I'd suggest putting them
Wontonimo: http://chat.codingame.com/pastebin/0f59c619-c3e1-4a0c-99ef-4890e70cf09f
RandomSteve: ok so that is exactly where they are
Wontonimo: cool, now you can add some logic after int mountainH = in.nextInt();
Wontonimo: to check if mountainH is larger than the highest height
Wontonimo: and if it is, then update the highest height and the i
Wontonimo: take your time
RandomSteve: http://chat.codingame.com/pastebin/9e096e8c-4e09-4161-a6bc-1558b1a0e0f8
Wontonimo: getting there , but not quite
RandomSteve: but I am don't really know how to update the i and now I am ignoring the int highest mountain which I wanted tto print
Wontonimo: highest_height = 8; sets it to 8, but you want to set it to mountainH
Wontonimo: like this
Wontonimo: highest_height = mountainH
Wontonimo: and then right after that save the i into the variable highest_mountain_i
Wontonimo: I'm describing in words what to do so you can code it. if i just send youu the code... it'll spoil it
RandomSteve: it's ok I think that's the right way to lern
RandomSteve: http://chat.codingame.com/pastebin/c5e0b98c-d30d-462c-9375-9335918657ce
RandomSteve: ok so I tought a lot I came up with that
Wontonimo: very close.
RandomSteve: I think it0's backwrds tho
Wontonimo: use highest_mountain_i = i ; instead
RandomSteve: oh it is backwards lol ok
Wontonimo: then at the end change the println statement to System.out.println(highest_mountain_i);
Kaelidian: You doing the mars lander?
Kaelidian: Just maintain your height until you're over the landing zone
RandomSteve: I feel like that should be it but I think I made a sintax error somewhere
RandomSteve: uhmm I am doind the descent tho
Wontonimo: i sent you a DM RandomSteve
Wontonimo: gotta go
RandomSteve: ok thank you so much
Kaelidian: just set a bool check to determine if you're over the landing pad when you are start your decent
Kaelidian: if not, you gonna smash the last one when its all the way up
RandomSteve: wait I think I made it
RandomSteve: but it's not mars lander it's the descent
Kaelidian: oh, dont think I've done that one
RandomSteve: I think this exercise makes me understand better how to use for i loops
RandomSteve: This is like the second ever problem I solve at this page