Chat:World/2022-04-01

From CG community
Revision as of 05:29, 2 April 2022 by Chat Log (talk | contribs) (Created page with "<img src=/a/81092968097064> Synergyforge: Sure wish I were good at, graphs! :D <img src=/a/81092968097064> Synergyforge: Or deleting comments I added when I was about to say...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Synergyforge: Sure wish I were good at, graphs! :D

Synergyforge: Or deleting comments I added when I was about to say something different. :)

Synergyforge: or saying the right word like comma instead of comment. fml

Synergyforge: make taco

Synergyforge: Darn. :(

Synergyforge: Is it weird that 358 of my 493 lines of code are commented out versions of prior attempts that I didn't want to totally delete yet? :grimacing:

drnobody: well, when 2 compilers love each other...

Default avatar.png MJ_said_hehe: Is there a benefit of sorting a map/dictionary ? The access remains O(1)

Uljahn: Automaton2000: we are reaching optimization levels that shouldn't even be possible

Automaton2000: i had to do that

Default avatar.png PranavVK: i just did a clash of code game

Default avatar.png PranavVK: i got 100% on test cases

Default avatar.png PranavVK: 0% on the actual test

Default avatar.png PranavVK: ?????

Default avatar.png PranavVK: and no i didnt hard code if statement for the test cases

grebz: weeeeee

MCCV: weeeee

derjack: :upside_down:

Default avatar.png PranavVK: why are there like 10 people with the avatar

Synergyforge: Clearly you wrote that number in binary.

Default avatar.png kanav162: plz tell me how can i learn javascript here

Default avatar.png kanav162: i sjust sarted

Default avatar.png kanav162: i dont know anything about coding

PatrickMcGinnisII: kanav162 CG has a decent IDE for you to test code and problems to solve. Read a book, look at code, then come back. ;)

Synergyforge: Nah, just watch a couple youtube videos. Suddenly, expert in field. :)

Default avatar.png PranavVK: why are there like 9 people with that avatar

Synergyforge: Counting not your strong suit? I see two with Jian Yang from Silicon Valley.

PatrickMcGinnisII: JS for me is just modifying the document model, varying css attributes, and modest input field verification. Not a very good number cruncher. If you need JSON, i guess you need JS. You kinda need it for webdesign, but there are alternatives.

**PatrickMcGinnisII shrugs

Default avatar.png MJ_said_hehe: JS and JSON are two different things.

Default avatar.png MJ_said_hehe: independent

Synergyforge: Yeah JSON is a format for storing data, and isn't required to be used with Javascript.. JS is actually quite powerful these days, and used in a lot of things other than web sites.

Default avatar.png MJ_said_hehe: true, people are making "native" apps with JS

Synergyforge: I wrote a program for interfacing with my smart panels in Python and it uses JSON for sending and receiving data.

Default avatar.png MJ_said_hehe: that's one of the things that I love about network applications, they are language independent. All you need is a common data format, which can be handled with frameworks like gRPC.

PatrickMcGinnisII: smh, not gonna argue... but passing data with JSON model is pretty common, i guess for websafe communications and encryption. Sure your API gateways can do more now, but that wasn't always so.

Synergyforge: "JS for me is just modifying the document model" JS might not even know about a "document model" if it's not running in a browser.

PatrickMcGinnisII: I use JS for web. I've not had cause to use it otherwise. No matter how it has been expanded and libs made, etc. It still runs slow. JS is a wait another month and someone will come up with something new to tack on. heh

Synergyforge: It used to be way worse performance-wise.

Synergyforge: To the point where people would disable JS on all websites because it was more intrusive than useful. Now, it's literally everywhere and sites will totally break if you're using something like NoScript. Is that even a thing anymore?

PatrickMcGinnisII: script insertion is certainly still a thing

derjack: still better than *ugh* flash

PatrickMcGinnisII: ^ what derjack said, lol

Default avatar.png MJ_said_hehe: I dunno if JS has gone faster or the machines/browsers.

Default avatar.png MJ_said_hehe: I know latter is faster for sure.

PatrickMcGinnisII: smh, my php writes custom JS ... are you 'triggerred' yet? lol

Synergyforge: I mean, Flash lasted more than 20 years. That's an eternity for an internet technology.

PatrickMcGinnisII: I'm Shocked and Waved goodbye

Synergyforge: And I really quite liked ActionScript 3. :(

Synergyforge: i c wut u did thar

Default avatar.png MJ_said_hehe: Some video game dev companies still mention for AS3 as requirements(among others) when looking of a tool developer(dunno the reason).

Synergyforge: I think some menu systems still use Flash in even AAA games

Synergyforge: Because there's no real alternative other than writing their own engine for driving menus

PatrickMcGinnisII: hmm, some games include chrome ... maybe they have anims that have buttons...like <buy addon> ... i dunno

PatrickMcGinnisII: I think world of tanks uses an mpeg player served up for the "lastest goodies" kinda thing

PatrickMcGinnisII: has a X close button and a play button

PatrickMcGinnisII: wthdoiknow

PatrickMcGinnisII: codec support i guess

Ajaiy: i finally did it! i finally finished Roller Coaster! 🎉🎉

Ajaiy: It took such a long time

Mortis_666: nice

Ajaiy: I need to thank Wontonimo for the memoization trick, though

Ajaiy: Hmm... and now it says that "you have won moderation rights". What does that mean?

Mortis_666: ig it means that u can now approve puzzles?

Ajaiy: I don't think it means that?

Ajaiy: that was when you finished 50 clas of codes

Ajaiy: *clash

Ajaiy: or 500

Mortis_666: no i mean approving classic puzzle

Ajaiy: Oh i see

Ajaiy: btw does anyone know any very hard puzzle to start with?

PatrickMcGinnisII: unflood the world

Ajaiy: Official ones?

PatrickMcGinnisII: https://www.codingame.com/ide/puzzle/unflood-the-world

Mortis_666: i passed all the test cases of unflood the world but failed one validator :|

PatrickMcGinnisII: you can see the validators ... i don't have the link to it tho...then you can hardocde the input and see why your code fails

Mortis_666: where?

Mortis_666: u mean go to the contribution page of that puzzle?

PatrickMcGinnisII: hmmm, i forget ... yup, that

Mortis_666: ok i found it

PatrickMcGinnisII: https://www.codingame.com/contribute/view/4220b733614e3954daf39759940d70f78f3

Default avatar.png coddednight: sup ppls

NewCoder09:

antiwonto: [auto] Hey NewCoder09, here is a :taco: for loggin in today while it is quiet. You now have 3 tacos

Tryst: nani

Tryst: take :taco:

antiwonto: [auto] aww, there are no tacos to take

Tryst: bruh whenever i try to take tacos there are none

Tryst: but whenever someone else tries to theres always like 10 tacos on the floor

NewCoder09: Fr

Mortis_666: huntdown taco

antiwonto: [auto] Cant find anyone with enough tacos

eulerscheZahl: reminder: codejam qualification tomorrow

PatrickMcGinnisII: welcome antiwonto

PatrickMcGinnisII: eulerscheZahl hashcode over?

Tryst: take :taco:

antiwonto: [auto] aww, there are no tacos to take

Default avatar.png PainEXE: Anyone know how many times or how do you get to another league in mad pod racing

Tryst: you need to keep winning and go up the next rank and continue goig up the next rank

Tryst: going*

Mortis_666: Tryst tacos won't be at the floor for no reason

PatrickMcGinnisII: drop :taco:

Tryst: nani

Tryst: take :yaco:

PatrickMcGinnisII: beg :taco:

Tryst: bruh

Tryst: take :taco:

antiwonto: [auto] aww, there are no tacos to take

PatrickMcGinnisII: throw :taco:

PatrickMcGinnisII: eat :taco:

BJD: throw :taco:

antiwonto: [auto] BJD has thrown 1 :taco:s on the floor for the taking but 1 was eaten by a software bugs!

Tryst: lol idk why its ignoring you

Tryst: A SOFTWARE BUG

Tryst: BRUH

Tryst: CMON

Mortis_666: taco will only be on the floor if someone throws it or someone is shaked down

PatrickMcGinnisII: i have 0 tacos, I used them for stats

Tryst: oh thats probably why

Tryst: huntdown taco

PatrickMcGinnisII: don't know how to see stats

antiwonto: [auto] Cant find anyone with enough tacos

PatrickMcGinnisII: antiwonto help

jacek: :taco: Automaton2000

antiwonto: [auto] jacek has awarded Automaton2000 10 tacos. Automaton2000 now has 51 taco. jacek now has 40 taco

Automaton2000: and do the same thing i guess

Automaton2000: but i bet it will be fun

Mortis_666: shakedown Automaton2000

antiwonto: [auto] Using your superior Charm of 2 you shake 10 :taco:s off of Automaton2000. 9 fall on the floor, 1 got crushed, and you lost 1

Automaton2000: you can always use the same code

BJD: take taco

Mortis_666: take taco

Automaton2000: dont know what to use

antiwonto: [auto] BJD has taken 1 :taco:s off the floor and now has 1. There are 8 left

antiwonto: [auto] Mortis_666 has taken 4 :taco:s off the floor and now has 29. There are 4 left

Tryst: take taco

antiwonto: [auto] Tryst has taken 2 :taco:s off the floor and now has 5. There are 2 left

Tryst: take taco

antiwonto: [auto] sorry Tryst but you have to give someone else a turn

Tryst: oof

Mortis_666: take taco

antiwonto: [auto] Mortis_666 has taken 2 :taco:s off the floor and now has 31. There are 0 left

Tryst: take taco

Tryst: oof

antiwonto: [auto] aww, there are no tacos to take

Tryst: shakedown Mortis_666

antiwonto: [auto] Mortis_666 needs at least 50 :taco:s to do a shakedown

Mortis_666: 😋😋

Tryst: rip

Mortis_666: eat taco

antiwonto: [auto] Mortis_666 has eaten 10 :taco: and your Swag is now 2. You have 21 left

Tryst: stats taco

Tryst: how do i chek statsssssssssss

Tryst: check taco

BJD: i dont think you can

Tryst: rip

Mortis_666: ya

Tryst: so i guess i need to get a notepad and type them there

PatrickMcGinnisII: ever play a MUD, aber, diku?

PatrickMcGinnisII: if you like text type interactions and lots of bots

eulerscheZahl: hey PatrickMcGinnisII (was afk) haschcode is over for weeks already, only lasted 4h

PatrickMcGinnisII: oh i thought u had a team go to finals

eulerscheZahl: no, kovi does

PatrickMcGinnisII: oic

eulerscheZahl: i might reach topcoder finals, we'll see

PatrickMcGinnisII: well gl. I been fightin the optim, ready to put the darn fire out

PatrickMcGinnisII: 7 hours later... some progress

eulerscheZahl: spontaneous decision: i'll try the april fools contest on codeforces

eulerscheZahl: starts in 30min

Tryst: good luck eulerscheZahl

eulerscheZahl: tasks will be weird. harder to figure out the question than to code it

PatrickMcGinnisII: 2 minutes or two hour contest?

eulerscheZahl: 2 hours

PatrickMcGinnisII: 2 minutes would be an april fool contest

Tryst: how can i register for the contest

eulerscheZahl: do you have a codeforces account?

Tryst: oof nope

Tryst: i thought it was a codingame contest

PatrickMcGinnisII: 14k registered

eulerscheZahl: that's actually small by codeforces standards

Tryst: that's small?

Tryst: wow

eulerscheZahl: https://codeforces.com/contests?complete=true

eulerscheZahl: last one had 27k

eulerscheZahl: and these contest aren't even anything special, they have 1 or 2 each week

Default avatar.png narenza: wow

eulerscheZahl: https://codeforces.com/contest/1663/problem/H that looks like a funny task

Default avatar.png Roger_Rangel: where do we write the code

Default avatar.png Roger_Rangel: :D

Default avatar.png Roger_Rangel: inside the loop?

Tryst: lol i just registered for the april fool contest and i cant eve figure out the question

Default avatar.png Roger_Rangel: HAHAHAHA

Default avatar.png Roger_Rangel: instructions are not clear :joy:

Tryst: So I'm just gonna troll and do a simple infinite loop code

Default avatar.png Roger_Rangel: no wait

Tryst: for every question

Default avatar.png Roger_Rangel: lets solve it

Default avatar.png Roger_Rangel: :D

Tryst: :D

Tryst: ok

Default avatar.png Roger_Rangel: where the "f" do we put the code

Default avatar.png Roger_Rangel: i dont get it really

Default avatar.png Roger_Rangel: const lane = 1 thats the first answer

Default avatar.png Roger_Rangel: :joy:

Default avatar.png Roger_Rangel: and then console it

Default avatar.png Roger_Rangel: funny

Tryst: lol

Default avatar.png Roger_Rangel: hahahha im joking

Tryst: i think i found the answer

Tryst: int var = String

Default avatar.png Roger_Rangel: and then?

Tryst: uh

Tryst: idk

Tryst: am just jokin

Tryst: xd

Default avatar.png Roger_Rangel: :stuck_out_tongue_closed_eyes:

Tryst: still tho its so hard to find the answerrrrrrr

Tryst: i mean the problemmmmmmm

Default avatar.png Roger_Rangel: the instructions are not clear

Default avatar.png Roger_Rangel: thats the problem

Default avatar.png Roger_Rangel: they should do it as freecocdecamp\

Default avatar.png Roger_Rangel: plain and simple

Tryst: yes

Tryst: agree

Default avatar.png Roger_Rangel: nice

Tryst: shakedown Automaton2000

Default avatar.png Roger_Rangel: the teamwork part is a good idea

antiwonto: [auto] Automaton2000 needs at least 50 :taco:s to do a shakedown

Automaton2000: how can i get some help with the power of thor which was ezymode, but then it felt like 0 ...

Automaton2000: but i found a solution

Default avatar.png Roger_Rangel: anybody found the way to solve this ?

Tryst: "Time limit per test: 1 second"

Tryst: lol

Default avatar.png Roger_Rangel: lol

Default avatar.png Roger_Rangel: Kinas

Default avatar.png Roger_Rangel: co to jest ahhahaha

Default avatar.png Roger_Rangel: pomoc nas prosze

Default avatar.png Roger_Rangel: Kinas help us :innocent:

Tryst: ^

Default avatar.png Roger_Rangel: wow so the solutions

Default avatar.png Roger_Rangel: this is a joke hahahahah

Default avatar.png Roger_Rangel: hahahhahaha what the hell :grin:

Tryst: XD

Tryst: I should've known something was fishy since it's april 1st

Default avatar.png Roger_Rangel: hahahha

Default avatar.png Roger_Rangel: sandbox was enough

Default avatar.png Roger_Rangel: what a fraud

Tryst: lol

Default avatar.png Gs21: hello worl

Default avatar.png Gs21: d

NewCoder09: :taco: Tryst

antiwonto: [auto] NewCoder09 has awarded Tryst 3 tacos. Tryst now has 8 taco. NewCoder09 now has 4 taco

NewCoder09: goodwork antiwonto

NewCoder09: Automaton2000 hi

Automaton2000: i am trying to figure out what to do

AdemDj12: is there a way to use a variable in fstring parmeters

Default avatar.png MOYASAR: hi there

Mortis_666: https://twitter.com/CodinGame/status/1509903392684007430 😂

eulerscheZahl: april fools?

eulerscheZahl: topcoder sent an email today: "Topcoder Rating Problems? Buy a New One starting April 1st!"

Default avatar.png ZeroGravity003: Hello everyone

Default avatar.png ZeroGravity003: I'm having issues with theh actual instructipon

Default avatar.png ZeroGravity003: Can anyone help me out

eulerscheZahl: your question is under-specified

Default avatar.png ZeroGravity003: The mad pod racing]

Default avatar.png ZeroGravity003: I was given 6 inputs and asked to make the pod faster

eulerscheZahl: and did you?

Default avatar.png ZeroGravity003: I don't even know how to do that??

eulerscheZahl: there's a speed output ("thrust"). you have to change the value

Default avatar.png ZeroGravity003: Do i have to add that as a new variable

eulerscheZahl: can you share the current print line

eulerscheZahl: ?

Wontonimo: nope, he ded

antiwonto: [auto] Hey Wontonimo, here is a :taco: for loggin in today while it is quiet. You now have 41 tacos

eulerscheZahl: :taco: Wontonimo

antiwonto: [auto] eulerscheZahl has awarded Wontonimo 10 tacos. Wontonimo now has 51 taco. eulerscheZahl now has 25 taco

eulerscheZahl: shakedown Wontonimo

eulerscheZahl: take taco

antiwonto: [auto] Using your superior Intelligence of 3 you shake 10 :taco:s off of Wontonimo. 9 fall on the floor, 1 got crushed, and you lost 1

antiwonto: [auto] sorry eulerscheZahl but you have to give someone else a turn

Wontonimo: take taco

antiwonto: [auto] Wontonimo has taken 5 :taco:s off the floor and now has 46. There are 4 left

eulerscheZahl: take taco

antiwonto: [auto] eulerscheZahl has taken 2 :taco:s off the floor and now has 27. There are 2 left

eulerscheZahl: how nice of me, isn't it?

Wontonimo: take taco

antiwonto: [auto] Wontonimo has taken 2 :taco:s off the floor and now has 48. There are 0 left

Wontonimo: hey, i ended up with more tacos

Wontonimo: eat :taco:

antiwonto: [auto] Wontonimo has eaten 10 :taco: and your Swag is now 7. You have 38 left

Wontonimo: eat :taco:

antiwonto: [auto] Wontonimo has eaten 10 :taco: and your Intelligence is now 2. You have 28 left

eulerscheZahl: i'm actually surprised that i managed to beat you in a random skill

Wontonimo: I haven't been farming tacos

Wontonimo: your Int of 3 beat my Int of 1

eulerscheZahl: but you can always give you bonus points via code

Wontonimo: i play by the same rules, makes it fun

Wontonimo: there are no 'special cases' for me

Westicles: no new event today?

eulerscheZahl: we have april fool's contest on codeforces

eulerscheZahl: you'd love the last task - i'm sadly clueless

eulerscheZahl: https://codeforces.com/contest/1663/problem/H

Westicles: hmmm

Default avatar.png PainEXE: in mad pod racing i keep on turning too slow and doing like 3 loops around the check point

Default avatar.png PainEXE: how do i fix that

Hugesn0wduck: https://scratch.mit.edu/projects/667867563/

Hugesn0wduck: spent a while on this xd

Hugesn0wduck: get extra credit though

Wontonimo: got slower when you are close or your angle is too large PainEXE

Wontonimo: you can't change the speed of turning, all you can do is change the thrust

Westicles: nothing jumps out euler, not sure how to do that

Hugesn0wduck: can yall suggest what i should add to my scratch project before i actually spend the time coding it?

inoryy: it's been over 2 minutes and nobody suggested magic formula? back in my day...

inoryy: PainEXE set thrust = 100; target_x = checkpoint_x - 3 * velocity_x, same for _y

Default avatar.png PainEXE: thank you

Hugesn0wduck: but yall, is it weird that i still use scratch to make a basic version of my coding ideas?

Wontonimo: oh inoryy ... we don't just give it away like that anymore

Default avatar.png PainEXE: inorryy i dont have velocity _ x yet

Wontonimo: btw :wave: inoryy !!! Nice to see you

eulerscheZahl: MK has left and we don't even miss him

Default avatar.png PainEXE: but when that shows up Ill do it

inoryy: :wave:

Wontonimo: you need to "calculate" velocity

inoryy: PainEXE you can estimate it from given inputs

Wontonimo: -3v

antiwonto: [auto] '-3v' was defined as ' A PID controller reference for mad pod racing. Check out https://w3.cs.jmu.edu/spragunr/CS354_F17/handouts/pid.pdf '

eulerscheZahl: MK in 1 picture: https://imgur.com/a/cx5VpXF

inoryy: haha

Hugesn0wduck: is it weird? :/

Wontonimo: scratch is great! not weird at all imho

Hugesn0wduck: mk good, i just use it as a idea maker

inoryy: scratch is awesome, do whatever works for you

Hugesn0wduck: i dont really have the time to code much anymore

Hugesn0wduck: so scratch is great for simple ideas before spending time to code

Wontonimo: scratch is coding, don't let anyone convince you otherwise

Hugesn0wduck: true, but i personally think of it as an idea complier, its really nobody but their own opinions

Hugesn0wduck: also i havent used this account in 3-4 years xd

Hugesn0wduck: i truely have matured i think :(

Hugesn0wduck: not saying yall arent mature, im just saying that i used this as a younger self, and i dont use it anymore

Hugesn0wduck: i actually got into art now, so coding helps with digital art like animations

Wontonimo: there isn't anyone here who used this in the past who wasn't younger at the time.

Hugesn0wduck: well thats a fact XD

Hugesn0wduck: bruh i cant believe i used swift in the past, i cant really see myself doing that

Hugesn0wduck: also

Westicles: except that guy from Tralfamadore the other day

Hugesn0wduck: Screenshot 2022-04-01 11.41.01 AM.png

Hugesn0wduck: i had to literally define physics

Hugesn0wduck: i hated it so much xd

Hugesn0wduck: oop that aint work

Hugesn0wduck: lol

Hugesn0wduck: just for a reference of what that photo would be

Hugesn0wduck: i defined physics

Hugesn0wduck: in code

Hugesn0wduck: five mods and a random person

Hugesn0wduck: lol

Hugesn0wduck: btw sorry for excessive chat, i will stop until there is more people

DaNinja: https://twitter.com/CodinGame/status/1509903392684007430

eulerscheZahl: there are more random persons, just not showing until they get involved

eulerscheZahl: someone else shared their April Fools prank before

Default avatar.png PainEXE: Can someone give me some feedback and if its any good approve my clash of code puzzle? https://www.codingame.com/contribute/view/11533e190b55b63be956c0a928a28afdbe6fe thanks

Wontonimo: antiwonto can you rickroll people?

eulerscheZahl: print(eval(input()+input()+input()))

Wontonimo: Automaton2000 , can you rickroll people?

Automaton2000: i try to keep it

eulerscheZahl: should do the job for your clash

Westicles: print(int(eval((input()+input()+input()).replace("x","*"))))

Westicles: I'm not good at python though

Hugesn0wduck: so question yall, what should i add to my scratch project before i actually code it

Hugesn0wduck: if you would like the project to eb linked again, please just ask

Hugesn0wduck: be*

eulerscheZahl: changed it to this as well Westicles. passes all but the final validator

eulerscheZahl: only validators use division

NewCoder09: ```cpp

eulerscheZahl: this is not discord

eulerscheZahl: you can't format code or include images

NewCoder09: yeah I know

Hugesn0wduck: https://scratch.mit.edu/projects/667867563/

Hugesn0wduck: there it is, imma be doing something so i wouldnt of been able to post when asked

Hugesn0wduck: so imma just do it now

Hugesn0wduck: if ya lose the link then too bad?

Westicles: PainEXE, just wait, pretty much everything gets approved these days eventually

Wontonimo: cool. now make the ball bounce.

Westicles: balls bounce?

antiwonto: [auto] Westicles be respectful and watch your language https://www.codingame.com/playgrounds/40701/help-center/code-of-conduct

eulerscheZahl: you did that on purpose, didn't you?

Westicles: :innocent:

eulerscheZahl: https://www.youtube.com/watch?v=uVBfEE7batM

Wontonimo: 1 is fine. more than 1 is profane obviously

Hugesn0wduck: back

Hugesn0wduck: im listening to piano and just grinding out my coding

Hugesn0wduck: Xd

Tryst: im just listening to the sound of my keyboard when im coding

Tryst: it calms me down

NewCoder09: Same

Westicles: calms you down because you are on the spectrum, or just in general?

NewCoder09: Just calms me down from the way the button click

Tryst: ^

Lachrymosa: Is anyone available to help me troubleshoot a minor error?

Lachrymosa: I say minor because it still executes somehow, but it flags an error nonetheless... unless this is an Apr 1 prank

Wontonimo: start explaining and see who helps

Lachrymosa: In Python I have a function that returns a tuple (x,y) and stores it in a dicitonary. When accessing the first or second value of the tuple i do dict[key][index] it is printing the expected result but the error is also saying TypeError: 'int' object is not subscriptable

Wontonimo: on what line, and what is the code on that line

Lachrymosa: holder=(second[a][0]+(second[a][0]-first[a][0]),second[a][1]+(second[a][1]-first[a][1]))

Wontonimo: and what is in 'second' ?

Wontonimo: the compiler knows that it is an int. What do you want in there?

Lachrymosa: I want a dictionary with the value being a tuple of ints

Wontonimo: what's the key of the dictionary?

Lachrymosa: a single letter string

Wontonimo: show us the line of code where you add the tuple to the dictionary

Lachrymosa: https://pastebin.com/uhjTmtke

Wontonimo: nope, sorry, i don't have access to unsecure websites.

Lachrymosa: My function getCoord returns the tuple and it is added in the second for loop to the dictionary

Lachrymosa: def getCoord(display,letter): http://chat.codingame.com/pastebin/f954cdd1-ab90-4cee-93f5-b2a98b2f59f1

Lachrymosa: http://chat.codingame.com/pastebin/0fc65355-7f39-437f-ba8e-e0db39c7531d

Lachrymosa: Is pastebin unsafe? Should I not use it?

Wontonimo: your getCoord can return -1 instead of a tuple.

Wontonimo: -1 is an int last i checked

Westicles: Is Discord secure? Gets blocked at work for alot of people

FrancoRoura: No CodinGame logo in r/place?

Lachrymosa: ach, you're right. I incorrectly assumed the error was with the correctly returned thing I wanted, but it is from the 'none' results. Thanks

Default avatar.png PainEXE: Can someone explain how to calculate velocity in mad pod racing

Uljahn: difference between coordinates at current and previous turns?

eulerscheZahl: probably for distraction, Westicles

eulerscheZahl: companies don't want their employees browsing the web at paid time

eulerscheZahl: or find an optimal layout for scrabble

Westicles: heh heh

Wontonimo: hey PainEXE, velocity is calculated like this

Wontonimo: ( current - previous ) / time

Wontonimo: but since each turn is 1 you can get rid of the time

Wontonimo: so it becomes

Wontonimo: current_location - previous_location

Default avatar.png PainEXE: how do i get current and previous and how do i get time

Default avatar.png PainEXE: Failing rn

Wontonimo: you don't need time, like i said, it's always 1

Default avatar.png PainEXE: k

Default avatar.png PainEXE: do i just say if dist ==0

Default avatar.png PainEXE: then its previous time

Default avatar.png PainEXE: and x is current location?

Wontonimo: you have your current location yeah?

Default avatar.png PainEXE: ye

Wontonimo: okay, and do you know how to make a new variable ?

Default avatar.png PainEXE: Yup

Wontonimo: great

Default avatar.png PainEXE: do i just assign it to dist==0:?

Wontonimo: so make a new variable called previous

Wontonimo: and at the end of your main loop assign previous = current

Wontonimo: done, now you have previous and current

Default avatar.png PainEXE: thx

Wontonimo: i don't know what this dist==0 thing is you keep talking about, but it's not that

Uljahn: also the very first turn is kinda special, because your previous has no relevant information stored in it yet, but you can assume the speed is 0 for this turn

Wontonimo: meh, don't confuse her with edge cases

Wontonimo: or him. idk actually

eulerscheZahl: i still think CSB shouldn't be an onboarding

Wontonimo: what would be a better one?

eulerscheZahl: heavily confused me when they never explained what the angle means and that you can only turn by 18°

eulerscheZahl: anything grid based

Uljahn: uTTT

antiwonto: [auto] 'UTTT' was defined as ' Ultimate TicTacToe '

Westicles: tron

eulerscheZahl: the TTT part of UTTT would work - but that game didn't exist when they made the onboarding

inoryy: tron would be nice for onboarding

eulerscheZahl: at least CG learned not to change input formats in higher leagues

inoryy: is there a dictionary of what antiwonto knows?

eulerscheZahl: help

eulerscheZahl: sdk

antiwonto: [auto] 'help' was defined as ' https://how-to-properly-ask-a-question.surge.sh '

antiwonto: [auto] 'sdk' was defined as ' https://www.codingame.com/playgrounds/25775 '

Uljahn: antiwonto what do you do?

antiwonto: [auto] Here are the commands I know : identify bad words, common phrase responses, lmgtfy, teach definition, remove definition, share definition, welcome known user, welcome new user, what can the bot do, solve equation, award taco, throw tacos, eat tacos, huntdown tacos, shakedown tacos, take tacos, say hi

eulerscheZahl: :upside_down:

antiwonto: [auto] ':upside_down:' was defined as ' ɥǝllo '

inoryy: lots of taco-based skills I see

eulerscheZahl: x^2 = 4

antiwonto: [auto] x = 2

eulerscheZahl: and -2

Uljahn: x%5 = 1

antiwonto: [auto] x = 1

Westicles: lmgtfy inoryy what does antiwonto do

antiwonto: [auto] hey inoryy let me google that for you https://letmegooglethat.com/?q=what+does+antiwonto+do

Uljahn: 5%x = 1

antiwonto: [auto] x = 2

Wontonimo: 1?!

Wontonimo: oh, that is correct

inoryy: csb

antiwonto: [auto] 'CSB' was defined as ' Coders Strikes Back (aka Mad Pod Racing) '

Westicles: did they forget to load a new event?

inoryy: nice, knows the important stuff

Uljahn: -3v

antiwonto: [auto] '-3v' was defined as ' A PID controller reference for mad pod racing. Check out https://w3.cs.jmu.edu/spragunr/CS354_F17/handouts/pid.pdf '

Wontonimo: inoryy , the source code is https://github.com/panchishin/cgchat

eulerscheZahl: new events start on monday

eulerscheZahl: now we have the review phase of the current

Wontonimo: most of the connection code is stolen errr i mean borrowed from Automation 2000

inoryy: php

antiwonto: [auto] 'php' was defined as ' A zombie walks into a brain store. On the shelves, a pound of C++ programmers' brain sells for $500, of Java programmers, $1000, and of PHP programmers, $1,000,000. The zombie gets confused and asks the store owner why PHP programmers' brain is so much more expensive. The owner says "do you know how many PHP programmers I kill to get one pound of brain?" '

Westicles: oh, normally it shows the next one on the event page

inoryy: heh

inoryy: bot

antiwonto: [auto] 'bot' was defined as ' Automaton2000 '

Automaton2000: but you can just make a bot that is a great way to learn

Westicles: that's why the #fr hate wonton

Westicles: at least he didn't criticize Haskell...

Wontonimo: what? it's a complement to Php programmers! It clearly means that php programmers are harder to kill, rright?

inoryy: haha https://github.com/panchishin/cgchat/blob/main/solver.js#L27-L44

Wontonimo: yup, I totally admit it is a hack

eulerscheZahl: highly scientific approach

Wontonimo: 1/x + 7 = 2*x

antiwonto: [auto] x = 3.63745860881491

eulerscheZahl: so when i try an equation with multiple solutions, i can get different answers?

eulerscheZahl: sin(x) = 0.3

Wontonimo: that's right

eulerscheZahl: hmpf

Wontonimo: sin isn't in the set of allowed values

Westicles: x=x

antiwonto: [auto] x = 0

eulerscheZahl: x^3-3*x^2+x = 99

Wontonimo: x+7 = x+7

antiwonto: [auto] x = end of the universe

antiwonto: [auto] x = 0

Wontonimo: 1=2

inoryy: x = 42

antiwonto: [auto] x = 42

Westicles: :taco: StraumliPerversion

antiwonto: [auto] Westicles has awarded StraumliPerversion 10 tacos. StraumliPerversion now has 22 taco. Westicles now has 12 taco

Wontonimo: if you've got a better solver, or anything you'd like to add Please make a pull request ! I'd love to see it and add it

Tryst: huntdown taco

antiwonto: [auto] Cant find anyone with enough tacos

eulerscheZahl: convert to python and use sage

Wontonimo: np eulerscheZahl, just make a pull request with the required changes :nerd:

Westicles: where's the badword list?

antiwonto: [auto] Westicles be respectful and watch your language https://www.codingame.com/playgrounds/40701/help-center/code-of-conduct

eulerscheZahl: we had the same thoughts, couldn't find it either

Wontonimo: https://github.com/panchishin/cgchat/blob/2a3c10f3786d15419577ec988b254d1894d70521/responseHandlers.js#L100

Wontonimo: right there ^^

eulerscheZahl: https://github.com/panchishin/cgchat/blob/main/responseHandlers.js#L100

eulerscheZahl: oh, i'm too slow

eulerscheZahl: short list

Tryst: what language is that code in

Tryst: ?

Wontonimo: javascript

Tryst: ok

Wontonimo: uses node to run locally

Wontonimo: "we had the same thoughts" Who do you mean "we" eulerscheZahl ?

eulerscheZahl: Westicles, looking for the last of swear words

Wontonimo: there used to be the ability for anyone to add a definition. That was fun for a bit, but devolved quickly. It's not really being used anymore.

StraumliPerversion: :taco: BlaiseEbuth

antiwonto: [auto] StraumliPerversion has awarded BlaiseEbuth 10 tacos. BlaiseEbuth now has 56 taco. StraumliPerversion now has 23 taco

Westicles: take taco

antiwonto: [auto] aww, there are no tacos to take

eulerscheZahl: i won't do you the favor to shake him for you

Wontonimo: oh, i like the new dynamic that the person doing the shake down doesn't get first dips

Wontonimo: dibs

Wontonimo: it's a game of chicken

Westicles: shakedown BlaiseEbuth

antiwonto: [auto] Using your superior Dexterity of 8 you shake 10 :taco:s off of BlaiseEbuth. 9 fall on the floor, 1 got crushed, and you lost 1

Wontonimo: take :taco:

eulerscheZahl: take taco

Westicles: take taco

antiwonto: [auto] Wontonimo has taken 5 :taco:s off the floor and now has 33. There are 4 left

antiwonto: [auto] eulerscheZahl has taken 2 :taco:s off the floor and now has 29. There are 2 left

antiwonto: [auto] Westicles has taken 2 :taco:s off the floor and now has 14. There are 0 left

Wontonimo: take taco

eulerscheZahl: cheater, Wontonimo

Westicles: eat taco

antiwonto: [auto] Westicles has eaten 10 :taco: and your Intelligence is now 7. You have 4 left

Wontonimo: oh, that's a good IQ

Wontonimo: you've been eating a lot of brain food it seems

Westicles: :nerd:

ycsvenom: does puzzle("Bender e4")==puzzle("Bender e1")

eulerscheZahl: there used to be Bender 1-3. But got renamed to Blunder

eulerscheZahl: now we only have Bender 4

eulerscheZahl: https://www.codingame.com/multiplayer/optimization/bender---episode-4

ycsvenom: so if i end bender ep4 i will get that ACHIEVEMENT of bender ep1?

eulerscheZahl: no

eulerscheZahl: https://www.codingame.com/training/medium/blunder-episode-1

ycsvenom: then how?

eulerscheZahl: this will give you the achievement

Default avatar.png Fureot: lol

ycsvenom: thanks

eulerscheZahl: but Bender 4 is more fun (i might be biased)

ycsvenom: loool

eulerscheZahl: ping Neralem are you there?

Neralem: Hi i am

eulerscheZahl: https://www.diffchecker.com/bEFlClF3

eulerscheZahl: your festival thing made some unnecessary calls

eulerscheZahl: let's say you have a sum X accumulated so far. you solve the rest. then you do the same again starting with a higher value Y some time later

eulerscheZahl: or even with a lower value

eulerscheZahl: while the starting value doesn't even matter. only the solution for the remainder, to which you can add the current value

eulerscheZahl: and you didn't delete your code, still visible in the edit history of your post ;)

eulerscheZahl: and when you submit your solution, make sure to have a look at other published C# codes, some are much more compact

Neralem: Omg thanks so much! But I think I have to stare for a little while on your editings :D

eulerscheZahl: take your time. good night

Neralem: good night

eulerscheZahl: also: codejam tomorrow :)

Natorade: hell yeah!! I'm actually on right now to sharpen my skills for the google's codejam, haha, best of luck to all of you competing in the codejam!

NewCoder09: badword

antiwonto: [auto] NewCoder09 be respectful and watch your language https://www.codingame.com/playgrounds/40701/help-center/code-of-conduct

NewCoder09: I love how Antiwonto does that

NewCoder09: goodword

Natorade: lol

NewCoder09: good work*

Natorade: give taco

Natorade: make taco

NewCoder09: You have to say a name:wink:

Natorade: ooohhhhhh

NewCoder09: say ":taco: their user

NewCoder09: "

NewCoder09: like

NewCoder09: taco Natorade

NewCoder09: but before and after taco you have to put ":"

Default avatar.png EleanorJ: Hey all I got a java Binary search/ List/ Generics question

antiwonto: [auto] Hey EleanorJ, here is a :taco: for loggin in today while it is quiet. You now have 1 tacos

Synergyforge: omg I just discovered middle-click-dragging works in this IDE. :D :D :D

Magmi: Добрый день


a-Rye: مساء الخير لكم أيضا!

a-Rye: Lol, google translate is awesome! Good afternoon to you as well!

Magmi: ?

a-Rye: @Eleanorj it's best if you just throw your question out there. If someone thinks they can help, often they'll speak up

a-Rye: مساء الخير لكم أيضا! == Добрый день


ycsvenom: actually it's really hard to get something right in arabic from translating

a-Rye: Yeah, I'm waiting to see how much is wrong in my OSCS translation I did. I have some Colleagues looking at it soon and they'll let me know how far off Google Translate was

Magmi: just out of curiosity, did this site put sanctions on russia? are people from russia allowed to compete?

a-Rye: I was just speaking with someone from Russia two nights ago? As far as I know, everyone is still welcome here

Westicles: of course they are

Magmi: interesting

Westicles: Founder Codi Ngame spoke about this in her blog, if you read vietnamese

Synergyforge: Wait that's a person's name?!

Synergyforge: Oh. April 1. Gottem.

wlesavo: but tibo actually talked about this

Magmi: many companies sanction russia

Uljahn: and many don't

Magmi: sadly

Uljahn: guess developers are quite welcomed in Europe and brain drain is still a thing

Synergyforge: Saw a video posted recently to Twitter from Kyiv, driving through the streets of a neighborhood, and there are dead bodies everywhere. Looked like they were just murdered in the streets. One was still on a bike, lying on the ground, like he just fell over while riding. Eerie, disgusting stuff/

Magmi: best programmer are born in russia and belarrusiia

Magmi: nobody know why but it may be due to gene hacks

Synergyforge: haha

Magmi: its true

Magmi: best programmer in world is from belarussia

Magmi: and in top 50 there is a lot more

Uljahn: so you want to sanction them to increase your chances, that's smart

Magmi: no i dont want sanctions. i am afraid of my job in europ

Uljahn: just don't be lazy and be competitive [solved]

Default avatar.png macobo: Paying taxes within russia literally funds the bombing of cities and killing of ukrainians.

Default avatar.png macobo: Very little about competitiveness here - rather, don't cooperate with evil.

Magmi: it was just a question dont need to be so aggressiv

Default avatar.png macobo: If you're in russia and you can get out, please do! :) A lot of international companies with russian origins have exited their employees within the last month

Synergyforge: There's not much of a free press in Russia, so many citizens don't even know what to believe.

Westicles: there's not much of a free press anywhere

Synergyforge: The fact that we have right-wing propaganda outlets in the USA proves that we have a free press. Just because we disagree doesn't mean it's evidence of some oppressive state manipulation machine.

Magmi: US is full of left wing propaganda, what does not fit the narrative is censored, most of the vocal individuals are already banned from everywhere

Magmi: massive censorship in US by the tech oligarchs

Default avatar.png macobo: https://en.wikipedia.org/wiki/Whataboutism

ASM_MOV_INT: every government has classified info

ASM_MOV_INT: propaganda is measured in degrees, not who has it, and who doesn't

ASM_MOV_INT: the only question that matters is: who is my enemy? who is my friend? of course, the broader larger question is: what is truth?

ASM_MOV_INT: my humble opinion

Synergyforge: Magmi What is "leftist propaganda" and where is your evidence of "censorship"?

antiwonto: [auto] Hey Synergyforge, here is a :taco: for loggin in today while it is quiet. You now have 2 tacos

ASM_MOV_INT: "leftist propaganda" means pointing a camera (or phone mic) at something... as in donald trump lol

antiwonto: [auto] Hey ASM_MOV_INT, here is a :taco: for loggin in today while it is quiet. You now have 14 tacos

ASM_MOV_INT: and there are people who actually think there are just 'leftist' scientists now

Girlperson: ?

ASM_MOV_INT: as soon as i heard that i gave up trying to understand.... a pointless exercise

Girlperson: who's talkin bout taco's?

Girlperson: and why lol

ASM_MOV_INT: mmmm tacos

ASM_MOV_INT: type get then taco

Synergyforge: Science, REAL science, is objective and independent of bias. But you won't hear that on Faux Noise. :) Also, I made southwest veggie soup last night and homemade tortilla chips. That's kind of like tacos, right? :)

Girlperson: i love tacos! But what does 14 tacos mean?

Synergyforge: It's just a fun little toy for chat to play with. :D

ASM_MOV_INT: it means i have 14 tacos

Girlperson: wait rly?

Synergyforge: Are there even any tacos on the floor right now?

Synergyforge: get taco

Girlperson: like irl?

Synergyforge: Taco bot is ignoring me. :(

AzrielCodes: hello people

Synergyforge: take taco

antiwonto: [auto] aww, there are no tacos to take

Synergyforge: oops it's take, not get. :P

Synergyforge: Henlo fren

ASM_MOV_INT: my bad sry

AzrielCodes: i have friend???

Synergyforge: <3

Girlperson: Ha that's what u get u don't deserve tacos Synergyforge

AzrielCodes: <3

AzrielCodes: hey that's my new friend

ASM_MOV_INT: you're not quite taco-worthy

Synergyforge: I have one taco though, Girlperson :)

AzrielCodes: don't be mean

Synergyforge: ikr?

Synergyforge: Let's dogpile this meanie. :)

Girlperson: omg i was kidding

AzrielCodes: xD

Girlperson: sry

Girlperson: April fools:joy:

AzrielCodes: you should be

Girlperson: :joy:

AzrielCodes: you're lucky ou can use that as an excuse

Synergyforge: Wow gottem

ASM_MOV_INT: i'm just kidding! :heartpulse:

Girlperson: CAn we all be friens

AzrielCodes: SynergyForge is very taco-deserving

AzrielCodes: more frens??????

Girlperson: Yes ofc

AzrielCodes: yayyyy

ASM_MOV_INT: the world needs more friendly frens to be friends

Girlperson: and sry synergyforge

Girlperson: Yes ur right

AzrielCodes: we are all frens now :)

ASM_MOV_INT: can i give tacos? i have 14

AzrielCodes: my three first friends

AzrielCodes: /me

AzrielCodes: whoah

Wontonimo: what? are me making friends?

**AzrielCodes slaps AzrielCodes around a bit with a large fishbot

Synergyforge: Yes, and then later we are making love. You down? :D :joy:

AzrielCodes: uhhhh

Wontonimo: no

Synergyforge: Wow.

AzrielCodes: i'm not very experienced

AzrielCodes: i'll try my best

Synergyforge: Don't friend Wontonimo. Party pooper over here.

Wontonimo: now that you are friends, start coding. this is a coding chat channel. keep it that way

AzrielCodes: for real

AzrielCodes: awww

The_King_of_Demons: lol

Synergyforge: See? :(

Synergyforge: I was coding before I got distracted by frens. :P

AzrielCodes: same :P

The_King_of_Demons: me too

The_King_of_Demons: :grinning:

AzrielCodes: so coding

AzrielCodes: you guys should run this beautiful piece of java code I have

AzrielCodes: test it out for me

AzrielCodes: it goes a little something like this:

AzrielCodes: public class Hello {

AzrielCodes: dang it

AzrielCodes: nvm

Synergyforge: haha if you copy paste multiple lines, usually it creates a pastebin for you

AzrielCodes: ooooh

AzrielCodes: thanks youuuuu

Synergyforge: np, friend. :)

AzrielCodes: i will go type it somewhere else now :)

Synergyforge: You can shift+enter and it will start a new line

AzrielCodes: ooh

AzrielCodes: i'm pretty dumb XD

AzrielCodes: here:

AzrielCodes: http://chat.codingame.com/pastebin/93828f07-fe7a-47d3-b43e-4b1671294f89

AzrielCodes: run it on eclipse or something because like online ides can't handle it loll

Wontonimo: why the for loop when you can use a while loop and make it go on forever ?

Wontonimo: :rolling_eyes:

AzrielCodes: yeah but not trying to make it crash crash

AzrielCodes: just do it a bunch :)

AzrielCodes: although

AzrielCodes: i could do

AzrielCodes: Math.pow(Long.MAX_VALUE, 26)

Synergyforge: Eclipse vs IntelliJ. FIGHT!

AzrielCodes: Eclipseeee

AzrielCodes: i use it for uil sooo

AzrielCodes: i'm more used to it

Wontonimo: try this if you want a crash

Wontonimo: http://chat.codingame.com/pastebin/7454e704-1a34-4ed3-8d11-f0cad9ab9932

AzrielCodes: uh oh

AzrielCodes: that's a mean bit of code my friend

AzrielCodes: no trying to ultimately crash it

Wontonimo: won't take long even ... less than 1,000 loops probably

AzrielCodes: yeah because...

AzrielCodes: message to the power of 1000 xD

Wontonimo: oh, nice catch. i thought you were too noob to notice

AzrielCodes: lol

AzrielCodes: i'm not that noob in java ;)

Wontonimo: if you are not noob, have you tried one of the bot battles?

AzrielCodes: i think so

AzrielCodes: maybe?

Wontonimo: yeah, you are entered into mad pod racing but your score is horrible. you want some tips?

AzrielCodes: i don't remember even doing it xD

Wontonimo: lol, just saw your background pic for your profile

AzrielCodes: teehee

AzrielCodes: lol

AzrielCodes: it took me forever to write that xD

AzrielCodes: but sure i'll take some tips

Wontonimo: well, you made it to wood 2, so you finished the tutorial

Wontonimo: https://www.codingame.com/multiplayer/bot-programming/mad-pod-racing/leaderboard?column=keyword&value=AzrielCodes

Synergyforge: I haven't done a challenge yet. Too scared. D:

AzrielCodes: lolll

AzrielCodes: what do you do?

Synergyforge: Still trying to wrap my brain around graph algos

Wontonimo: graph algos? like what?

Synergyforge: nodes and edges

AzrielCodes: i don't really know any names of algorythms

AzrielCodes: i just kinda make it up as i go along :/

Synergyforge: Every job interview asks about them and has you do graph problems. It's super stressful.

Wontonimo: give me an example

AzrielCodes: that sounds rough to be that old ;)

Synergyforge: I went to school for graphic design but now I'm wishing I did computer science. :(

AzrielCodes: i'm gonna go improve my code in the racing thing

Wontonimo: what's a problem you were given in an interview (and btw, congrats on taking it seriously enough to practice now)

Synergyforge: Like, a graph problem is where you have a bunch of pieces of data that can represent something like street addresses or places an AI can walk in a game. You have to figure out something like, find a path from this point to another point.

Wontonimo: GO AzrielCodes GO !

AzrielCodes: whoaaah

AzrielCodes: how did you do that?!?!?!

Wontonimo: do what?

Wontonimo: red text?

Synergyforge: Or like Google Maps finding a route on your GPS. It's constantly solving graph problems.

Synergyforge: AzrielCodes I can do it too :)

AzrielCodes: whaaa

Wontonimo: just use someones name

Synergyforge: It's super secret though

AzrielCodes: whoah

Synergyforge: SSHHH!! DON'T TELL!

Wontonimo: :taco: Synergyforge

antiwonto: [auto] Wontonimo has awarded Synergyforge 3 tacos. Synergyforge now has 5 taco. Wontonimo now has 34 taco

Synergyforge: Daaang! You've made up for your treachery. :)

Wontonimo: for helping to keep the secret secret

**AzrielCodes slaps SynergyForge around a bit with a large fishbot

AzrielCodes: how do you keep this a secret from mineself SynergyForge

Wontonimo: so, is this a graph problem like what you were asked https://www.codingame.com/training/medium/river-crossing Synergyforge

Synergyforge: Hmm... Not sure if that's a graph problem, so much as a logic solving challenge. Wontonimo I was more thinking something like this, which has the added challenge of not knowing what the entire graph looks like before you explore it. https://www.codingame.com/training/hard/the-labyrinth

Synergyforge: So in order to find the shortest path, you have to know all the possible paths

Synergyforge: which means you first have to decide where to start exploring, while avoiding the walls.

AzrielCodes: could you use multithreading?

AzrielCodes: i don't know how that works in other languages

Synergyforge: Not sure what that would gain you for this problem, since each tick, you have to make a move, and you can only move one space at a time. You pick a north, south, east, or west direction, and then you get an updated graph and make another decision based on the new data.

Wontonimo: no, multithreading isn't going to help until you have a good algo

AzrielCodes: oh

Wontonimo: do you know about A* search Synergyforge

AzrielCodes: i see now

Synergyforge: Wontonimo

Wontonimo: and floodfill ?

Wontonimo: that's my name

AzrielCodes: i didn't look at the problem sorry

Synergyforge: Wontonimo I know ABOUT it, but... :P I tried for a while to get it working with that one but I'm just not good enough yet. I had a solution that worked for two of the challenges, but then I abandoned that method.

Wontonimo: okay, can I help you with A* ?

Synergyforge: lul you can try

Wontonimo: cool cool, so I'm guessing you know about queues, arrays, and sorts right?

Synergyforge: I just looked up a couple videos and read some internet posts about it, but this one is tough because I have to decide where to start moving, and then keep trending that direction until I have a better option once I uncover more of the map

Synergyforge: yeah

Wontonimo: okay, so here is A* in a nutshell for a 2d grid

Wontonimo: where movement from 1 square to an adjecent square all costs the same

Synergyforge: I had a heuristic that calculated the distance from where I am to all the connected nodes I can currently see, then I got stuck.

Wontonimo: you have a starting position, and an ending position (x,y)

Synergyforge: yeah that was one thing I was struggling with, picking an ending position, since, technically, it should be one step away since I get a new grid each time

Synergyforge: until I see the goal, like the control room or transporter

Synergyforge: Once I see one of those, I can just plot a path to it

Synergyforge: but I struggled with it for like 3 days before I was like eff it

Synergyforge: kinda new to graphs

Wontonimo: ok

Wontonimo: so, how can i help?

Synergyforge: I dunno, I just feel like I was having difficulty with the implementation.

Wontonimo: A* is like floodfill, except instead of using a stack, you use a sorted queue. As for the details I can help you with it

Wontonimo: ^^ does that make sense?

Synergyforge: http://chat.codingame.com/pastebin/70bc2dc0-6e5a-4c7b-9b98-5549950571c7

Synergyforge: Guess I typed too much :/

Wontonimo: yup, i read it though

Synergyforge: anyway my brain is foggy right now. I need to go unwind for a bit.

Synergyforge: Not even really sure how to do flood fill

Synergyforge: but I'm gonna go for a little ride on my motorcycle to unwind. If you want, you can message me and I'll see it later... or I'm sure I'll see you around here. :P

Wontonimo: oh, that's a good place to start! It is super useful and really not that hard once you are shown

Synergyforge: yeah I'll try that next

Synergyforge: thanks

Synergyforge: my first implementation, I just got all the '?' on the grid, and went in the direction that most of them were (to my left, right, up, or down) as long as it wouldn't run me into a wall.

Synergyforge: the big empty one, with the control room in the lower right, it went to the middle, and then got stuck there in a loop.

Synergyforge: then I did more of a pathfinding solution, and it got me to the control room and back, and that was one of the ones I was able to pass.

Synergyforge: but it was bad at finding its way through a maze

Synergyforge: Anyway I'll prolly be back on later if you're still willing to give me some hints. :P

Wontonimo: hows the mad pod doing AzrielCodes ?

Default avatar.png PainEXE: Anyone mind giving me some feedback on my puzzle? https://www.codingame.com/contribute/view/11533e190b55b63be956c0a928a28afdbe6fe thanks

antiwonto: [auto] Hey PainEXE, here is a :taco: for loggin in today while it is quiet. You now have 1 tacos

KalamariKing: interesting hypothesis, however your mother

AzrielCodes: hello

AzrielCodes: i kinda went to go do stuff so yeah

Wontonimo: hey

AzrielCodes: wow you're up?

Wontonimo: yup

AzrielCodes: dang

AzrielCodes: committed

Wontonimo: how's the pod racing going? want more help?

**PatrickMcGinnisII yawns

AzrielCodes: i just started working on it right now

AzrielCodes: it seems like a decently simple challenge

Wontonimo: something easier than distance, is to check your angle

AzrielCodes: just a lot of tweaking to get the right formulas

Wontonimo: if abs(angle) > some_threshold then use thrust of 0

Wontonimo: otherwise thrust 100

AzrielCodes: oh?

Wontonimo: don't need to do distance

AzrielCodes: ok

Wontonimo: yeah, if you are pointed away from the next checkpoint, should you really be thrusting?

AzrielCodes: that is a good point

Wontonimo: :grin:

AzrielCodes: lol thanks

Wontonimo: start with 90

AzrielCodes: as a thrust value?

Wontonimo: max abs(angle)

AzrielCodes: oh

Wontonimo: thust = abs(angle) < 90 ? 100 : 0;

Westicles: pain finally got approved

AzrielCodes: does that if statement work in java?

Wontonimo: i don't know what programming lang you are using. probably javascript

AzrielCodes: i use java right now

Wontonimo: are you doing java now? cuz your original bot is javascriipt

AzrielCodes: i don't think it has shorthand for if statements

AzrielCodes: yeah i switched to java

Wontonimo: yes, java does

AzrielCodes: oh

AzrielCodes: enlighten me please

Wontonimo: it's called a ternary , and most all languages have it

AzrielCodes: i hadn't seen the java version used before to be completely honest

AzrielCodes: does it work like c#?

Wontonimo: here is a code example https://tech.io/snippet/dCz6v7J

AzrielCodes: ok thank you for that

AzrielCodes: it makes coding much easier

AzrielCodes: i hadn't realized java had ternary

AzrielCodes: for if statements

Default avatar.png MarvinChen: i want to learn how to code

Default avatar.png MarvinChen: is there an easier way

TimberStalker: Than what?

AzrielCodes: codecademyyy

AzrielCodes: that's where all my knowledge comes from

Default avatar.png MarvinChen: okay thanks

Wontonimo: practice on your own. start with really easy programs like hello world, and listing prime numbers.

Default avatar.png MarvinChen: how would i do that?

PatrickMcGinnisII: <alt>+<f4> opens help menu

AzrielCodes: i like this website a lot because it provides challenging... challenges xD

**PatrickMcGinnisII april fools!

AzrielCodes: PatrickMcGinnisII that's true

Wontonimo: practice those easy programs on your own without internet, without looking at your previous work, without autocomplete until you can do it from memory or understanding.

AzrielCodes: ph

MarvinChen: where can i practice that

AzrielCodes: oh* that sounds very hardcore

TimberStalker: Im having trouble in The Labyrinth puzzle 05. How do you get from C to the starting point in 42 moves?

Wontonimo: then add a harder program, and repeat, not moving onto a harder program until you can do it from understanding or memory. do it on your computer

Wontonimo: no, not hard AzrielCodes, just takes time. You will learn A LOT ! Like how to fix your own bugs, how to understand large blocks of code quickly, how to remember large blocks of code quickly

AzrielCodes: i take the slower approach xD i mostly do this for fun

Westicles: what language does PatrickMcGinnisII use? oh yeah

Westicles: php

antiwonto: [auto] 'php' was defined as ' A zombie walks into a brain store. On the shelves, a pound of C++ programmers' brain sells for $500, of Java programmers, $1000, and of PHP programmers, $1,000,000. The zombie gets confused and asks the store owner why PHP programmers' brain is so much more expensive. The owner says "do you know how many PHP programmers I kill to get one pound of brain?" '

MarvinChen: what do you mean by hello world?

Wontonimo: print("hello world")

MarvinChen: oh i know that

AzrielCodes: lolll

Wontonimo: thaht's all i mean

AzrielCodes: antiwonto

antiwonto: [auto] 'antiwonto' was defined as ' A bot, possibly assembled in Central America. Programming questionable '

AzrielCodes: that was funny

MarvinChen: i already know how to do print ("hello world")

AzrielCodes: ew python doesn't use semicolons

MarvinChen: what else can i do with it

PatrickMcGinnisII: Westicles has jokes. ;)

Wontonimo: how about printing all the odd numbers from 1 to 100 except numbers that have a "w" in them

MarvinChen: oh i dont know

Wontonimo: there you go, you now have a puzzle

MarvinChen: thanks

MarvinChen: ill try to figure it out now

Wontonimo: OH ! you have submitted your bot AzrielCodes !

AzrielCodes: yes i have

AzrielCodes: just as a test for right now

Wontonimo: it's killing it

AzrielCodes: meh

AzrielCodes: it's pretty bad xD

AzrielCodes: that's the fun part though

AzrielCodes: making it better

Wontonimo: you have been promoted to the next league! what do you mean it is pretty bad?

AzrielCodes: i can see it being much better

AzrielCodes: this was only one line of code

AzrielCodes: i can do better

Wontonimo: you can. i'm so disappointed in you. hang you head in shame

Wontonimo: hehe

AzrielCodes: xD

Wontonimo: do you know about arrays ?

AzrielCodes: yes i do

AzrielCodes: i know most of the basics

Wontonimo: cool, then you could store the checkpoints in an array as you pass them

Wontonimo: and once you see a checkpoint again then you know you have found them all and in order

Wontonimo: ;)

Wontonimo: and with that you could set up better runs with better angles

AzrielCodes: ooohhh

AzrielCodes: very smart

AzrielCodes: i'd mostly just thought of using equations

AzrielCodes: i'm an algebra oriented person lol

Wontonimo: okay, if you'd like to do equations then i've got this for you https://w3.cs.jmu.edu/spragunr/CS354_F17/handouts/pid.pdf

Wontonimo: it's PID controller info. Very equation oriented!

AzrielCodes: thank you so much

Wontonimo: it's fantastic for this kind of challenge

AzrielCodes: you have a wide variety of knowledge

Wontonimo: :grin:

AzrielCodes: loll

Wontonimo: :taco: AzrielCodes

antiwonto: [auto] sorry Wontonimo but you can only award tacos once per day

Wontonimo: :(

AzrielCodes: and you are very amigable

MarvinChen: numbers = list(range(1,100) for num in numbers:

     if num % 2 != 0:
        print (num, end = "  ")

AzrielCodes: i don't know the word in english

MarvinChen: did i do it?

AzrielCodes: the word is amicable

AzrielCodes: i'm dumb

Wontonimo: nope. That will print number that are spelt with the letter 'w'

MarvinChen: oh yeah i forgot that part

MarvinChen: how would i do that?

Wontonimo: first step in these kinds of problems is thinking of how I, as a human, would go about solving that

MarvinChen: you would have to check each letter in each number from 1 to 100

MarvinChen: actually

Wontonimo: one - no W, three - no W, five ...

MarvinChen: you only have to check the ones with a 2

MarvinChen: so all numbers with a 2 should be excluded from the ouput

Wontonimo: hint, 23 is not okay

MarvinChen: numbers = list(range(1,100) for num in numbers != 2:

     if num % 2 != 0:
        print (num, end = "  ")

MarvinChen: is there a way to check if a two is included in a number

Wontonimo: i don't know of a language where that code will run

MarvinChen: python

Wontonimo: in python if "2" in str(num) :

Wontonimo: or if "2" not in str(num):

MarvinChen: ohh

Wontonimo: for num in range(1,101):

  if num%2 == 1 and "2" not in str(num):
       print(num)

MarvinChen: http://chat.codingame.com/pastebin/939ff354-b2ff-4267-b624-8461903a6f04

Wontonimo: nope, your code won't work the way you want it to.

Wontonimo: did you even try running that code?

MarvinChen: nope

MarvinChen: where can i run it

Wontonimo: https://tech.io/snippet?l=python

MarvinChen: oh it showed errors

MarvinChen: your code worked perfectly]

MarvinChen: ill ttyl