https://cg.spdns.eu/index.php?title=Chat:World/2022-05-17&feed=atom&action=historyChat:World/2022-05-17 - Revision history2024-03-29T06:33:55ZRevision history for this page on the wikiMediaWiki 1.34.0https://cg.spdns.eu/index.php?title=Chat:World/2022-05-17&diff=2321&oldid=prevChat Log: Created page with "<img src=/a/84043629502391> Inferno_dragon: hehehehaw <img src=/a/75369242083208> jacek: :upside_down: <img src=/a/70964948703282> antiwonto: [auto] ':upside_down:' was defi..."2022-05-18T05:29:14Z<p>Created page with "<img src=/a/84043629502391> Inferno_dragon: hehehehaw <img src=/a/75369242083208> jacek: :upside_down: <img src=/a/70964948703282> antiwonto: [auto] ':upside_down:' was defi..."</p>
<p><b>New page</b></p><div><img src=/a/84043629502391> Inferno_dragon: hehehehaw<br />
<br />
<img src=/a/75369242083208> jacek: :upside_down:<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] ':upside_down:' was defined as ' ɥǝllo '<br />
<br />
[[File:Default_avatar.png]] Frukostbord: This might be a weird question. But what´s up with all the tacos?<br />
<br />
<img src=/a/79633423380001> 5DN1L: :taco:<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] ':taco:' was defined as ' A currency to some, sustenance for others '<br />
<br />
<img src=/a/79633423380001> 5DN1L: or just for fun<br />
<br />
<img src=/a/64869146225502> derjack: and its tuesday<br />
<br />
[[File:Default_avatar.png]] thainameawv.2: hello<br />
<br />
[[File:Default_avatar.png]] thainameawv.2: +<br />
<br />
<img src=/a/82259342966340> SLedolter: if i publish a solution multiple times cause of refactoring it, will all versions be public? or just the last one?<br />
<br />
[[File:Default_avatar.png]] SpeedyGonzales123: hi<br />
<br />
<img src=/a/23956705948685> Uljahn: only the last one<br />
<br />
<img src=/a/82259342966340> SLedolter: thx ^^<br />
<br />
<img src=/a/81471642390492> MrBizard: automaton2000<br />
<br />
<img src=/a/40502662118268> Automaton2000: depends on which one you'd rather make and fulfil promises to ... :door:<br />
<br />
<img src=/a/64869146225502> derjack: oO<br />
<br />
<img src=/a/84007501602661> Dasohneplan: hi<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] Hey Dasohneplan, here is a :taco: for loggin in today while it is quiet. You now have 1 tacos<br />
<br />
<img src=/a/84007501602661> Dasohneplan: tacos<br />
<br />
[[File:Default_avatar.png]] Frukostbord: tacos<br />
<br />
<img src=/a/68584246741876> Jumong2: heyMan<br />
<br />
<img src=/a/68584246741876> Jumong2: i want play reverse Mode<br />
<br />
<img src=/a/67347301695471> Helix38: e<br />
<br />
[[File:Default_avatar.png]] Tien118: hi<br />
<br />
<img src=/a/83902402519881> succacactus: hey<br />
<br />
[[File:Default_avatar.png]] twannieone: hey<br />
<br />
<img src=/a/75841544820365> cagriy: hello from turkey :flag_tr:<br />
<br />
[[File:Default_avatar.png]] twannieone: how is it there?<br />
<br />
<img src=/a/84007501602661> Dasohneplan: does anyone like turkey:poultry_leg: ?<br />
<br />
[[File:Default_avatar.png]] twannieone: yes but it has been a while<br />
<br />
<img src=/a/78887728718468> NewCoder09: i love turkey <br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] Hey NewCoder09, here is a :taco: for loggin in today while it is quiet. You now have 10 tacos<br />
<br />
<img src=/a/81237603600652> umut3RC: hello, i am from newzeland<br />
<br />
<img src=/a/81237603600652> umut3RC: i like this place<br />
<br />
<img src=/a/83754060837528> AurelienDev: We're getting tacos here?<br />
<br />
[[File:Default_avatar.png]] JacksonWhitmore: No pizza better <br />
<br />
<img src=/a/81237603600652> umut3RC: no kebab is best<br />
<br />
<img src=/a/69251242499711> i_V2: test<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] 'test' was defined as ' this is a test '<br />
<br />
<img src=/a/69251242499711> i_V2: :laughing: :laughing: :laughing: :laughing: <br />
<br />
<img src=/a/57774109997186> Miki09: :taco: Wontonimo<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] Miki09 has awarded Wontonimo 10 tacos. Wontonimo now has 24 taco. Miki09 now has 50 taco<br />
<br />
<img src=/a/60413902297900> Astrobytes: :upside_down:<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] ':upside_down:' was defined as ' ɥǝllo '<br />
<br />
<img src=/a/57774109997186> Miki09: How to define things,<br />
<br />
<img src=/a/57774109997186> Miki09: ?<br />
<br />
<img src=/a/60413902297900> Astrobytes: I think that feature was disabled...<br />
<br />
<img src=/a/57774109997186> Miki09: :-(<br />
<br />
<img src=/a/81237603600652> umut3RC: :(<br />
<br />
<img src=/a/82768884745464> Rushtoxin: I love when I pass all of the tests on a clash and get 75% :'/<br />
<br />
<img src=/a/67353989164707> Mortis_666: Miki09 i think its still available but u need to be a super user<br />
<br />
<img src=/a/84038049467521> Shalis: whats the taco thing for :P<br />
<br />
<img src=/a/60413902297900> Astrobytes: Humour and distraction.<br />
<br />
<img src=/a/84038049467521> Shalis: i'll take 1 carnitas and 1 chorizo por favor :)<br />
<br />
<img src=/a/60413902297900> Astrobytes: :drooling:<br />
<br />
<img src=/a/60413902297900> Astrobytes: :drooling_face:<br />
<br />
<img src=/a/79633423380001> 5DN1L: Mortis_666 super user means Wontonimo :wink:<br />
<br />
<img src=/a/67353989164707> Mortis_666: no there are actually other super users https://github.com/Mortis66666/cgchat/blob/main/responseHandlers.js#L3<br />
<br />
<img src=/a/79633423380001> 5DN1L: oh wow<br />
<br />
<img src=/a/79633423380001> 5DN1L: didn't know that was defined!<br />
<br />
<img src=/a/67353989164707> Mortis_666: :D<br />
<br />
<img src=/a/57774109997186> Miki09: wow<br />
<br />
[[File:Default_avatar.png]] Big_Code: http://chat.codingame.com/pastebin/b8d75b10-a621-475e-b9c6-0cbc68fcb7fc<br />
<br />
<img src=/a/57774109997186> Miki09: shakedown tacos<br />
<br />
<img src=/a/57774109997186> Miki09: test<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] 'test' was defined as ' this is a test '<br />
<br />
<img src=/a/60413902297900> Astrobytes: #taco channel<br />
<br />
<img src=/a/60413902297900> Astrobytes: (for taco related activities)<br />
<br />
<img src=/a/57774109997186> Miki09: ok<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: hi<br />
<br />
<img src=/a/60413902297900> Astrobytes: moin<br />
<br />
<img src=/a/79633423380001> 5DN1L: Big_Code because the formatting code does not add leading zeroes for you. You have to specify the required format yourself<br />
<br />
[[File:Default_avatar.png]] Big_Code: I'm still a bit confused, cause both 100101, and 0100101 both equal %. So for this exercise, I literally have to add a 0 to the beginning of %s binary value? <br />
<br />
<img src=/a/79633423380001> 5DN1L: Yes, you do, the puzzle statement says you need 7 bits for every character<br />
<br />
[[File:Default_avatar.png]] Big_Code: Yea it does state that the "Input message" has a 7-bit ascii character, never would have assumed I'd have to manually add a bit. But thanks for the clarification<br />
<br />
<img src=/a/79633423380001> 5DN1L: Yes, it is not written very clearly, but the requirement is that<br />
<br />
<img src=/a/79633423380001> 5DN1L: np<br />
<br />
[[File:Default_avatar.png]] Big_Code: Now I have testcase 3 working but not 1 & 2 XD, but progress!<br />
<br />
<img src=/a/79633423380001> 5DN1L: Keep going :)<br />
<br />
<img src=/a/79633423380001> 5DN1L: You can do it<br />
<br />
[[File:Default_avatar.png]] Big_Code: :100: Thanks for the kind words :D<br />
<br />
[[File:Default_avatar.png]] Big_Code: 1 2 3 done! Now to figure out chuck norris's magic<br />
<br />
<img src=/a/79633423380001> 5DN1L: :thumbsup:<br />
<br />
<img src=/a/83602361403306> AngelicCapy: Hello 5DNL<br />
<br />
<img src=/a/79633423380001> 5DN1L: Hello AngelicCapy<br />
<br />
<img src=/a/79633423380001> 5DN1L: Since there's no user called 5DNL I assume you're saying that to me :)<br />
<br />
<img src=/a/83602361403306> AngelicCapy: Yes sorry mb i mispell it<br />
<br />
<img src=/a/79633423380001> 5DN1L: no worries :)<br />
<br />
<img src=/a/79782263306586> Darleanow: hello 5dn1l :)<br />
<br />
<img src=/a/79633423380001> 5DN1L: hello Darleanow :)<br />
<br />
<img src=/a/79782263306586> Darleanow: how r u sir ?<br />
<br />
<img src=/a/79633423380001> 5DN1L: quite good, thank you. how are you sir?<br />
<br />
<img src=/a/79782263306586> Darleanow: I'm good too !! I'm cooking while doing some clashes ahah<br />
<br />
<img src=/a/79633423380001> 5DN1L: wow<br />
<br />
[[File:Default_avatar.png]] Big_Code: Now I have 1 & 3 working but not 2 and 4 XD But I have a meeting. This puzzle is goin down after!<br />
<br />
<img src=/a/79633423380001> 5DN1L: ok :)<br />
<br />
[[File:Default_avatar.png]] doogyman2: cool<br />
<br />
[[File:Default_avatar.png]] doogyman2: pokemon<br />
<br />
<img src=/a/75369242083208> jacek: oO<br />
<br />
<img src=/a/79633423380001> 5DN1L: I have sent doogyman2 to his pokemon paradise<br />
<br />
[[File:Default_avatar.png]] AzCoder: :)))<br />
<br />
[[File:Default_avatar.png]] OmniMan: what other sites do you guys use besides this one?<br />
<br />
<img src=/a/21066575261709> programjames: code.golf<br />
<br />
<img src=/a/21066575261709> programjames: Project Euler<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: https://clist.by/resources/<br />
<br />
<img src=/a/83405163738802> doogyman: i also use code.golf<br />
<br />
[[File:Default_avatar.png]] OmniMan: ty guys<br />
<br />
[[File:Default_avatar.png]] OmniMan: there are a lot of sites like this but some are paid<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: depends on the aspect of CG you are interested in. the multiplayer section is quite unique<br />
<br />
[[File:Default_avatar.png]] OmniMan: eulerscheZhal that list is really useful ty<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: also shows upcoming contests<br />
<br />
<img src=/a/17784428403916> MSmits: it even has euler's project on there<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] Hey MSmits, here is a :taco: for loggin in today while it is quiet. You now have 10 tacos<br />
<br />
<img src=/a/17784428403916> MSmits: whoa free tacos<br />
<br />
<img src=/a/83405163738802> doogyman: cool<br />
<br />
<img src=/a/17784428403916> MSmits: it's a nice list eulerscheZahl, but it doesn't really do justice to codingame. Unless any of those other sites have 50 bot arenas and optimization rankings<br />
<br />
<img src=/a/17784428403916> MSmits: kinda makes it seem like CG is mediocre if you're just looking at that list<br />
<br />
<img src=/a/75369242083208> jacek: :taco: MSmits<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] Spread the love. Give tacos to someone else, not someone you spam with tacos.<br />
<br />
<img src=/a/75369242083208> jacek: :rage:<br />
<br />
<img src=/a/75369242083208> jacek: :taco: Automaton2000<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] That's a bot. Bots don't eat tacos<br />
<br />
<img src=/a/40502662118268> Automaton2000: i guess the answer is yes<br />
<br />
<img src=/a/17784428403916> MSmits: :taco: jacek<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] MSmits has awarded jacek 10 tacos. jacek now has 25 taco. MSmits now has 11 taco<br />
<br />
<img src=/a/75369242083208> jacek: :taco: derjack<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] Spread the love. Give tacos to someone else, not someone you spam with tacos.<br />
<br />
<img src=/a/17784428403916> MSmits: lol<br />
<br />
<img src=/a/17784428403916> MSmits: it's not your day jacek<br />
<br />
<img src=/a/60413902297900> Astrobytes: :taco: jacek<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] Spread the love. Give tacos to someone else, not someone you spam with tacos.<br />
<br />
<img src=/a/60413902297900> Astrobytes: :o<br />
<br />
<img src=/a/60413902297900> Astrobytes: :taco: MSmits<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] Astrobytes has awarded MSmits 10 tacos. MSmits now has 21 taco. Astrobytes now has 56 taco<br />
<br />
<img src=/a/75369242083208> jacek: probably i found the faulty code that would really rarely segfault. i could fix it with one if. but why the bug happens in the first place, it bothers me<br />
<br />
<img src=/a/60413902297900> Astrobytes: Debugger time<br />
<br />
<img src=/a/17784428403916> MSmits: ah yes, the worst bugs are the ones you can live with, but dont understand<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: :taco: Astrobytes<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] PatrickMcGinnisII has awarded Astrobytes 10 tacos. Astrobytes now has 66 taco. PatrickMcGinnisII now has 29 taco<br />
<br />
<img src=/a/75369242083208> jacek: :taco: Astrobytes<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] jacek has awarded Astrobytes 10 tacos. Astrobytes now has 76 taco. jacek now has 26 taco<br />
<br />
<img src=/a/64170920248296> BJD: :taco: Astrobytes<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] BJD has awarded Astrobytes 10 tacos. Astrobytes now has 86 taco. BJD now has 14 taco<br />
<br />
<img src=/a/75707267075165> '''**PatrickMcGinnisII pokes the moderators for :taco:'''<br />
<br />
<img src=/a/60413902297900> Astrobytes: wow, I sure have a lot of tacos<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: why is it after 2 days of stuggling with a very hard puzzle I feel the need to hand out hints?<br />
<br />
<img src=/a/60413902297900> Astrobytes: Natural generosity?<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: Dungeon Designer isn't hard once you figure out the math, and the formula given is whack ... and a little wrong<br />
<br />
<img src=/a/75369242083208> jacek: godwin's law eh https://cdn.discordapp.com/attachments/733556241493917766/976114142501040219/unknown.png<br />
<br />
[[File:Default_avatar.png]] LavLlama: heheheha<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: no one posted on the forum, I guess Imma follow suit and keep it under wraps<br />
<br />
<img src=/a/75369242083208> jacek: or give misleading hints :imp:<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: what was the original name of "The Fall" ?<br />
<br />
<img src=/a/75369242083208> jacek: the last crusade<br />
<br />
<img src=/a/75369242083208> jacek: they didnt change achievements tho<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: ahh tx<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: The last one i did with achievents that changed names only gave me like 1/2 the XP<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: Bender v Blunder ep 2<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: unless i did 50% and quit many years ago<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: *shrug*<br />
<br />
<img src=/a/17784428403916> MSmits: probably you did 50% in ancient times<br />
<br />
<img src=/a/75369242083208> jacek: like before covid?<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: what covid?<br />
https://xkcd.com/2396/<br />
<br />
<img src=/a/60413902297900> Astrobytes: heh heh<br />
<br />
<img src=/a/83489949098762> TINOUAINANI: Hi, what version of c++ in clash code ? is it c++20 if it is why a cant use range::sort() for ex ?<br />
<br />
<img src=/a/60413902297900> Astrobytes: C++17<br />
<br />
<img src=/a/75369242083208> jacek: https://www.codingame.com/playgrounds/40701/help-center/languages-versions<br />
<br />
<img src=/a/75369242083208> jacek: are you trying shortest c++? :scream:<br />
<br />
<img src=/a/83489949098762> TINOUAINANI: whay they can,t add c++20 ?<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: :salt:<br />
<br />
<img src=/a/60413902297900> Astrobytes: Not required for their business side I guess. <br />
<br />
<img src=/a/60413902297900> Astrobytes: Strange for them to upgrade g++ and not bother though<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: maybe they tried and ran into some problems?<br />
<br />
<img src=/a/60413902297900> Astrobytes: Normally they mention it if their intention was to upgrade language version as well as compiler<br />
<br />
<img src=/a/83489949098762> TINOUAINANI: its not fair , we need c++20 for shertes mod<br />
<br />
<img src=/a/60413902297900> Astrobytes: try ruby<br />
<br />
<img src=/a/60413902297900> Astrobytes: or python<br />
<br />
<img src=/a/83489949098762> TINOUAINANI: yah even with c++20 no chance with those guys<br />
<br />
<img src=/a/75369242083208> jacek: nerf python plx<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: forbid system calls and unicode<br />
<br />
<img src=/a/47384461132252> SandmanSW96: Hey quick question...<br />
<br />
<img src=/a/47384461132252> SandmanSW96: I don't think google can find the answer to this one<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: i opened google anyways, bring it on<br />
<br />
<img src=/a/47384461132252> SandmanSW96: Okay, what YOYO decided to choose a clash that requires 30 decimal places, restricted to a language that only goes up to 29?<br />
<br />
<img src=/a/47384461132252> SandmanSW96: lol and.... go<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: what's the task?<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: maybe you don't even need floating points<br />
<br />
<img src=/a/47384461132252> SandmanSW96: To put numbers into decimal notation, if non repeating include the whole thing<br />
<br />
<img src=/a/47384461132252> SandmanSW96: no it doesn't give enough of them period lol. Test 4 literally wants 30 digit precision for the answer<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: can you share the task?<br />
<br />
<img src=/a/47384461132252> SandmanSW96: it was the c# event clash just now<br />
<br />
<img src=/a/60413902297900> Astrobytes: if you remember anything about it, keywords, the name etc we can look it up<br />
<br />
<img src=/a/47384461132252> SandmanSW96: aka => input was 11, 24 and 11/24 was 0.4583333333,<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: astro understands me<br />
<br />
<img src=/a/47384461132252> SandmanSW96: output => 0.458(3)<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: https://www.codingame.com/contribute/view/5824d5a473f5c894b379b9803f0a6dc78a18<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: denominator is less than 1000<br />
<br />
<img src=/a/47384461132252> SandmanSW96: divide a/b and format the decimal<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: did you learn how do divide with pen and paper?<br />
<br />
<img src=/a/82997285678576> VirtualRealityRocks: Yes I believe that's the one EulerscheZahl<br />
<br />
<img src=/a/47384461132252> SandmanSW96: lol how many other languages don't have to write extra code for that<br />
<br />
<img src=/a/1848632360793> b0n5a1: o/<br />
<br />
<img src=/a/47384461132252> SandmanSW96: now if that was the reason to choose that one for c#, to make it trickier then i get that,<br />
<br />
<img src=/a/1848632360793> b0n5a1: SandmanSW96 you should try https://www.codingame.com/ide/puzzle/recurring-decimals<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: even python does not have unlimited precision for floating point<br />
<br />
<img src=/a/47384461132252> SandmanSW96: but if it was just an oversight lol,<br />
<br />
<img src=/a/47384461132252> SandmanSW96: then that's just sad lmao<br />
<br />
<img src=/a/47384461132252> SandmanSW96: was a nice monkey wrench and all, if it was intentional kudos. tc lol<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: first of all: clashes are intended for all languages. these events artificially limit the language while using the same pool of questions<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: i can't see the author's solution but i don't think that it works with built-in division<br />
<br />
<img src=/a/79146641399080> Westicles: this one is seemed questionable as well<br />
<br />
<img src=/a/79146641399080> Westicles: https://www.codingame.com/contribute/view/546313e8a5acd8d16b10e6c03cfea1f6d7bc<br />
<br />
<img src=/a/47384461132252> SandmanSW96: lol you had me at "bring it on", take care i said my peace<br />
<br />
<img src=/a/47384461132252> SandmanSW96: my point => if someone set that up completely by accident it was a bonehead thing to do lol that's all<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: and i'm pretty sure that using the division of your programming language is not the intended solution<br />
<br />
<img src=/a/60413902297900> Astrobytes: Quite tough for a clash, compared to the majority I see<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: yes. but still doable without extra hoops in any language<br />
<br />
<img src=/a/60413902297900> Astrobytes: Yep. I think that guy misunderstood the problem.<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: getcontext().prec = 50<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: PHP magic?<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: does this work beyond double precision?<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: I googled python precision for Decimal class<br />
<br />
<img src=/a/43135502422075> eulerscheZahl: oh, it worked. didn't know about that<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: actual precision for certain functions is still only 15 places...like sqrt... I don't know how it fills in the rest<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: at least PHP has BC math functions, they are slow AF...but they are better than the guessing game of .00000001<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: eulerscheZahl.clone(); would probably solve the world's problems. :joy:<br />
<br />
<img src=/a/79146641399080> Westicles: this derivative puzzle is brutal. you have to implement the derivative and then an eval if your language doesn't have it<br />
<br />
<img src=/a/17784428403916> MSmits: PatrickMcGinnisII don't forget to cast<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: (smitsimax) world *=<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: better?<br />
<br />
<img src=/a/17784428403916> MSmits: sure<br />
<br />
<img src=/a/75707267075165> PatrickMcGinnisII: oops: throws exception<br />
<br />
<img src=/a/17784428403916> MSmits: of course. I am exceptional<br />
<br />
<img src=/a/60413902297900> Astrobytes: And modest.<br />
<br />
<img src=/a/17784428403916> MSmits: :)<br />
<br />
<img src=/a/75369242083208> jacek: :no_mouth:<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] Hey jacek, here is a :taco: for loggin in today while it is quiet. You now have 21 tacos<br />
<br />
<img src=/a/75369242083208> jacek: phew<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: nom<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: nom?<br />
<br />
<img src=/a/75369242083208> jacek: how may we help you, Sir/Madam<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: I just wanted a taco<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: thought "nom" was the right way to trigger that<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: and don't call me Madam please Sir<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: also since you're asking:<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: I'm kinda stuck with the bulls and cows problem sigh<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: seems quite complicated? can someone confirm? xD<br />
<br />
<img src=/a/17784428403916> MSmits: it's a difficult optim<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: that it requires at least handling 3 complicated cases<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: optim in what sense MSmits?<br />
<br />
<img src=/a/17784428403916> MSmits: to get an initial solution that is<br />
<br />
<img src=/a/17784428403916> MSmits: oh you mean the puzzle?<br />
<br />
<img src=/a/4210501575817> aCat: optimization game ;]<br />
<br />
<img src=/a/17784428403916> MSmits: there is an optimization game and a puzzle<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: yeah "bulls and cows"<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: puzzle<br />
<br />
<img src=/a/4210501575817> aCat: ah, I skipped both ;]<br />
<br />
<img src=/a/17784428403916> MSmits: oh ok, that puzzle wasn't too hard for me, but i played a lot of the game as a child.<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: well it seems interesting so i wanna do it<br />
<br />
<img src=/a/17784428403916> MSmits: it is. Let me see what my solution is, maybe i can give a hint<br />
<br />
<img src=/a/60413902297900> Astrobytes: aCat: I am at last working on a locam: Constructed bot ;)<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: is there a trick to it maybe? since you played it a loot<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: i don't even have a half solution by now<br />
<br />
<img src=/a/17784428403916> MSmits: I bruteforced it<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: think I don't really want a hint at this point even<br />
<br />
<img src=/a/4210501575817> aCat: Astrobytes :*<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: often I'm just looking for a reason not to give up<br />
<br />
<img src=/a/17784428403916> MSmits: I tried all combinations with all information. If any of the scores are incorrect when combined with a solution-try, it means it failed<br />
<br />
<img src=/a/17784428403916> MSmits: I will show a small snippet:<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: deja vouz xD<br />
<br />
<img src=/a/17784428403916> MSmits: http://chat.codingame.com/pastebin/859a083d-0694-41a1-af00-591d3652e080<br />
<br />
<img src=/a/17784428403916> MSmits: so i brute force all code combinations this way<br />
<br />
<img src=/a/17784428403916> MSmits: and check them against the scores<br />
<br />
<img src=/a/17784428403916> MSmits: program is around 120 lines in total, but it's C# and it's me, so a bit wordy and long<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: sigh<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: "if any are incorrect when combined with solution"..<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: ofc<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: why didn't I think of that<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: seriously why haha<br />
<br />
<img src=/a/17784428403916> MSmits: well i thought of it because that is what i do when i play the actual game<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: nice<br />
<br />
<img src=/a/17784428403916> MSmits: I try stuff and check against previous scores<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: that's a good answer to my question<br />
<br />
<img src=/a/17784428403916> MSmits: it's a fun game, but the last 1 or 2 turns before i solve it, i need to think for like 10 minutes<br />
<br />
<img src=/a/17784428403916> MSmits: the fewer solutions possible, the harder it is to find one<br />
<br />
<img src=/a/17784428403916> MSmits: and the more scores you get, the more limited the solution-space becomes<br />
<br />
[[File:Default_avatar.png]] karimbjjj: i cant get the input just yet <br />
<br />
[[File:Default_avatar.png]] karimbjjj: i have a hard time understanding this site<br />
<br />
<img src=/a/60413902297900> Astrobytes: Any mods around? Someone is spamming #de pretty hardcore<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] Hey Astrobytes, here is a :taco: for loggin in today while it is quiet. You now have 67 tacos<br />
<br />
<img src=/a/83988905905404> regismeysso22: https://www.codingame.com/servlet/urlinvite?u=4897832<br />
<br />
<img src=/a/83988905905404> regismeysso22: dude come on<br />
<br />
<img src=/a/30776889241351> Husoski: Onboarding, huh?<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: hm<br />
<br />
<img src=/a/70964948703282> antiwonto: [auto] Hey waterproofsodium, here is a :taco: for loggin in today while it is quiet. You now have 23 tacos<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: early in the morning taking some good places in clash :p<br />
<br />
[[File:Default_avatar.png]] waterproofsodium: Husoski how do I retire once?<br />
<br />
<img src=/a/79782263306586> Darleanow: Anyone not sleeping ?<br />
<br />
<img src=/a/79782263306586> Darleanow: i need help on the eval function<br />
<br />
<img src=/a/79782263306586> Darleanow: i'm asking for the user the enter a print with an arg in it, e.g : print("Helloworld")<br />
<br />
<img src=/a/79782263306586> Darleanow: but when i return the result in an f string like so :print(f"Résultat obtenu :\n{eval(PremierEx)}")<br />
<br />
<img src=/a/79782263306586> Darleanow: it prints Hello world before, and prints none right after<br />
<br />
<img src=/a/30776889241351> Husoski: Darleanow You know that print() always returns None, right?<br />
<br />
<img src=/a/79782263306586> Darleanow: i don't lol<br />
<br />
<img src=/a/30776889241351> Husoski: ...so if you eval("print('hello')"), you'll get 'hello' printed, but the expression return None<br />
<br />
<img src=/a/79782263306586> Darleanow: indeed !<br />
<br />
<img src=/a/82480647751771> dot.nick: tfw just me and 3 bots in a clash lobby for a minute there<br />
<br />
<img src=/a/79782263306586> Darleanow: But how do i do if i want the user to print something<br />
<br />
<img src=/a/79782263306586> Darleanow: like in an input ?<br />
<br />
<img src=/a/30776889241351> Husoski: You want to print the value *and* use what was printed?<br />
<br />
<img src=/a/30776889241351> Husoski: Here's an idea I use for debugging:<br />
<br />
<img src=/a/79782263306586> Darleanow: i got a solution<br />
<br />
<img src=/a/79782263306586> Darleanow: http://chat.codingame.com/pastebin/f688a75b-ea99-45db-b9bd-f742d9f27251<br />
<br />
<img src=/a/79782263306586> Darleanow: it's not really like using the function print in a py command line, but almost :)<br />
<br />
<img src=/a/30776889241351> Husoski: You can also front-end python's print() function with something like:<br />
def print(*a, **k, _print=print):<br />
_print(*a,**k)<br />
return a<br />
<br />
<img src=/a/30776889241351> Husoski: I use something like that for debugging. The above prints (with keywords, if needed) and returns a list of the positional arguments printed. You won't get the effect of sep= or end= keywords in that list, though.<br />
<br />
<img src=/a/79782263306586> Darleanow: this is a bit too technical for me<br />
<br />
<img src=/a/79782263306586> Darleanow: i'll try to implement it<br />
<br />
<img src=/a/79782263306586> Darleanow: _print=print<br />
<br />
<img src=/a/79782263306586> Darleanow: throws an error<br />
<br />
<img src=/a/79782263306586> Darleanow: ;.<br />
<br />
<img src=/a/79782263306586> Darleanow: Parameter cannot follow "**" parameter<br />
<br />
<img src=/a/30776889241351> Husoski: Oh...yes...put **k last.<br />
<br />
<img src=/a/79782263306586> Darleanow: ty :)<br />
<br />
<img src=/a/30776889241351> Husoski: gn<br />
<br />
<img src=/a/79782263306586> Darleanow: >>>print("Hello World")<br />
Hello World<br />
Résultat obtenu :<br />
('Hello World',)<br />
<br />
<img src=/a/79782263306586> Darleanow: gives this :/<br />
<br />
<img src=/a/83821886058987> Wild_Python: which is better to lrean :(((<br />
<br />
<img src=/a/83821886058987> Wild_Python: java or javascript<br />
<br />
<img src=/a/79782263306586> Darleanow: depends on ur needs :)<br />
<br />
<img src=/a/79782263306586> Darleanow: imma assume java is more for app dev focused, and js is more for like web <br />
<br />
<img src=/a/30776889241351> Husoski: Oh...it's a tuple? I thought *a made a list. You can return ' '.join(a) instead to simulate what print usually does.<br />
<br />
<img src=/a/79782263306586> Darleanow: TOO GOOD<br />
<br />
<img src=/a/79782263306586> Darleanow: eval(PremierEx)<br />
<br />
<img src=/a/30776889241351> Husoski: ...or get a bit trickier and check for sep= and end= values in k<br />
<br />
<img src=/a/79782263306586> Darleanow: works perfectly<br />
<br />
<img src=/a/79782263306586> Darleanow: it's getting out of my spirit..<br />
<br />
<img src=/a/79782263306586> Darleanow: but the print is now modified right ?<br />
<br />
<img src=/a/79782263306586> Darleanow: how will it behave differently ?<br />
<br />
<img src=/a/30776889241351> Husoski: Nope. Just make "print" refer to your function in your namespace (local or your modules globals) You can always `del print` to make that go away and use the real one. Or pass eval a dict for locals or globals to just use that print function during the eval(). Lots of options.<br />
<br />
<img src=/a/30776889241351> Husoski: Or define the funny functon as "my_print" instead of "print" and then:<br />
print = my_print<br />
<br />
<img src=/a/30776889241351> Husoski: result=eval(blah)<br />
del print<br />
<br />
<img src=/a/79782263306586> Darleanow: OH GREATTTTTT<br />
<br />
<img src=/a/79782263306586> Darleanow: you're too good sir, sadly i'm not seeing you quite often in here<br />
<br />
<img src=/a/30776889241351> Husoski: Im usually clashing or working on a puzzle.<br />
<br />
<img src=/a/30776889241351> Husoski: Right now, I was just on the language version page to compare with what's on CodeWars and saw your question.<br />
<br />
<img src=/a/30776889241351> Husoski: I'm disappearing now to get in a little guitar practice before bed. Good night!<br />
<br />
<img src=/a/79782263306586> Darleanow: Okay sir !! gn :)<br />
<br />
[[File:Default_avatar.png]] Alpredex: hell yeah, just won my first clash B)<br />
<br />
<img src=/a/84036307462982> kann1er: good<br />
<br />
[[File:Default_avatar.png]] Alpredex: to be fair it was easy<br />
<br />
[[File:Default_avatar.png]] Alpredex: it was just a string format for a phone number<br />
<br />
<img src=/a/84036307462982> kann1er: yeah, at least it's your first step. see you in nasa<br />
<br />
<!-- THE END --></div>Chat Log