Chat:World/2022-05-26

From CG community
Jump to navigation Jump to search

Bari: Damn

jacek: :upside_down:

RivalRickson: hi

Yody: :muscle:

Default avatar.png Tenokas: Salut coco vous explose en Java askip

5DN1L: English only in this channel

5DN1L: Please go to #fr channel for French

Default avatar.png Tenokas: ok ty my friend

Default avatar.png elie.f.asmar: One of the challenges of the quest map consists of approving or rejecting a contribution, however I could only upvote or downvote; your help is appreciated.

5DN1L: You need to meet certain requirements before you can approve or reject contributions

5DN1L: Any player who has played more than 50 clashes has approver rights for clash contributions

5DN1L: Any player whose level is greater or equals to 20 has approver rights for other contributions

Default avatar.png elie.f.asmar: I have played more than 50 clashes, and the quest is currently my only active quest. However, i cannot find any process/ button within the contributions that says approve/disapprove

5DN1L: which one?

5DN1L: it may be WIP

5DN1L: WIP can't be approved or rejected

Default avatar.png elie.f.asmar: Moderate a contribution

5DN1L: i mean which contribution

5DN1L: if a contribution is a WIP you can't approve or reject it

Default avatar.png elie.f.asmar: https://www.codingame.com/contribute/view/15393a564554228a5628109e94abdf89702a6

5DN1L: that's a WIP

5DN1L: it's stated below the author's name

Default avatar.png elie.f.asmar: okay, thank you very much

5DN1L: np

geppoz: I got a message that i completed the "become a legend" target, but... in which game?? :sweat_smile:

geppoz: I didn't find it

geppoz: it is not the last contest, so... they recalculate some old leaderboard?

Uljahn: those are just occasional submits

geppoz: still, in all challenge I see completed in my profile, only gold there...

Uljahn: https://cgmulti.azke.fr/players?p=geppoz

Uljahn: this might be helpful

geppoz: thanks, as said, no legend there :grinning:

geppoz: that should be an "ad honorem" reward :D

Uljahn: you can click xp progress bar to see details of recent xp gains

geppoz: it said "+100XP - Quest - Become a legend" but no clue on which contenst it refers to

geppoz: *says

Uljahn: there is the "Clash of code legend" achievement for 500 CoCs played, but it's worth of 250 xp

Uljahn: ah, you are talking about quest map

Uljahn: i think there is a bug with defining legend league as the last one, because some games have wood leagues only, so wood 1 equals to legend

Uljahn: i think it was Connect 4 in your case geppoz

Leeward: Speaking of the quest map, I'm trying to start the Optimization path but I'm stuck at 39200/40000 in Code vs. Zombies lol... any advice?

Uljahn: randomize your search, then spam-submit :smiley:

Uljahn: i mean if your search is deterministic you can hardcode your first move to be in random direction and then submit with different seeds

Leeward: That feels like cheating

derjack: https://en.wikipedia.org/wiki/African_wild_ass

5DN1L: wrong channel

derjack: oO

5DN1L: Leeward you can refer to the forum post for some ideas

Leeward: Thanks

Uljahn: Monte Carlo search is not cheating btw :smirk:

Leeward: Well technically no but it's more like flinging all the sh*t at the wall to see what sticks

Uljahn: that's exactly what Evolutionary Algorithms actually do

Uljahn: and Neural Networks

kovi: nah, it is just that cg setup is not good for competitive optimization (not enough testcases, unbalanced score of testcases)

Uljahn: true

Leeward: And also the compute time limitations don't really allow for much "think time" on each test case for this type of approach

derjack: so you need to make it more efficient

Leeward: or find another approach better suited to the problem

Uljahn: add pragmas [solved]

Uljahn: i guess better approach would be to use anytime simulation-based search algorithms

TKirishima: please some tacos!

5DN1L: antiwonto is offline

Yozamu: Hey guys, I'm trying to code golf "Don't panic" in JS. Do you have any tip to reduce below 200 characters ? The split+map to numbers when I read lines seem to take quite some space but I cannot think of a shortcut... And same goes for logic, I'm stuck at ~230

5DN1L: have you made a function for readline?

Yozamu: yep

Yozamu: but I still have r().split` `.map(Number) Which occurs three times

Ajaiy: Today I learnt how dangerous programming can be by watching a simple program almost destroy my computer

Ajaiy: def hextobinmeg(he, cnt): http://chat.codingame.com/pastebin/45e1a08e-066e-405b-88ac-cebd4068eb2a

5DN1L: don't you have fn_name=()=>etc? Yozamu

Yozamu: Uh I just have r=readline, not sure what you meant there. Like, storing the whole function?

5DN1L: yes

Yozamu: would something like r=()=>readline().split` `.map(Number) and then calling with r() work ?

5DN1L: you can try :wink:

Yozamu: true, ty for the hint, not sure it'll be enough for below 200, but will definitely help

5DN1L: np

Yozamu: 218 damn it, still seems so far away

5DN1L: Do you really need to map Number?

Yozamu: It doesn't work without it so I guess so

Yozamu: Well I think I can see what you mean there

Yozamu: Alright 196 is way enough for me, thanks again

5DN1L: np :)

5DN1L: I hope I get a hint to get below 102 :joy: (without the compression trick)

5DN1L: (and without hardcoding)

Yozamu: uuuuh seems small

blop200: how an I revisit a 'clash' and it's test cases after finishing it

blop200: I want to see if some implementation works or not

5DN1L: Try to search here

5DN1L: https://eulerschezahl.herokuapp.com/codingame/puzzles/

blop200: Thank you, found it.

5DN1L: np

waterproofsodium: NOO

waterproofsodium: 4898 CP!!

waterproofsodium: oops I accidentally sent feedback with 0 stars all..

TINOUAINANI: How you get CP in codegolf ?

5DN1L: https://www.codingame.com/help/rank

Ajaiy: 5DN1L: Are moderators allowed to ban bots?

5DN1L: i think so, why?

Ajaiy: Because people may use it as a loophole to spam or sth

5DN1L: i see. well i don't think the chat distinguishes between the two, but i dunno

5DN1L: at least i had kicked antiwonto before

Ajaiy: wait what

5DN1L: when antiwonto went out of control

5DN1L: and wontonimo wasn't online

Ajaiy: i don't understand how a bot could get out of control

5DN1L: antiwonto spammed the chat that time lol

5DN1L: bugs in its code

Ajaiy: understandable

5DN1L: if Automaton2000 writes things here non-stop, I'll have to kick it out too

Automaton2000: this sounds like a lot of fun

5DN1L: don't even think about it

Ajaiy: sounds like the dawn of the rule of AI over codingame lol

5DN1L: yup lol

waterproofsodium: python regex: |\_/|

waterproofsodium: C# regex: \|\\_\/\|

waterproofsodium: and still "wrong"

waterproofsodium: acutally not a regex in python even

Ajaiy: Speaking of which, am I the only one who passed CGX formatter in python without regex?

Ayza: anything can probably be done without regex with a bit of work

Ayza: I have a regular expressions skill but I've never used it lol

Kido-san: Hi all, sorry to jump in middle of a conversation.

Anyone playing Code4Life and will be able to review a replay for me? Losing badly in silver league :-(

Kido-san: Hehe regex has generally worked for me :-)

Ayza: didn't solve it, sorry

Kido-san: No problem

Default avatar.png Abdullah7890: hello

waterproofsodium: cheater!

waterproofsodium: c=[2,3,5,7,11,13,17,19,23,29]

Default avatar.png Abdullah7890: I am new to this

waterproofsodium: hardcoded primes!

waterproofsodium: police!

Default avatar.png MAGAPROREYSTARTER: HIII

Default avatar.png MAGAPROREYSTARTER: I AM A NEW PLAYER

Default avatar.png Abdullah7890: same

waterproofsodium: hardcoding primes in python = 3000 IQ

Default avatar.png MAGAPROREYSTARTER: lvl?

Default avatar.png Abdullah7890: I am at the first level

Default avatar.png Abdullah7890: do u have discord?

Default avatar.png MAGAPROREYSTARTER: no

Default avatar.png Abdullah7890: okie

Default avatar.png Abdullah7890: at which level u r?

Default avatar.png MAGAPROREYSTARTER: 12

Default avatar.png MAGAPROREYSTARTER: hehe

Default avatar.png Abdullah7890: hum

5DN1L: MAGAPROREYSTARTER others can check out your profile to see which level you are at

Ayza: not until you get asked to get the 200th prime waterproofsodium

Default avatar.png MAGAPROREYSTARTER: i pily jhbviyrugviwencyfevuwue

5DN1L: no spam please

Default avatar.png MAGAPROREYSTARTER: kkkk

Default avatar.png MAGAPROREYSTARTER: bye

waterproofsodium: lv 42 ;)

C_breeze: is codinggame down?

struct: its working for me

C_breeze: keep getting unable to load bad route message

C_breeze: Loading chunk 1259 failed after 5 retries. (1259.b184b1ed.js)


regismeysso22: z22wxocehx67sgky4hjc6xommnuvyimgp2yv2lltbis6c42pivioonad.onion:grin:

5DN1L: no spam please

C_breeze: not sure what gone wrong, can't seem to access any of my contributions or practice or games

Default avatar.png Moze_97: :grin:

Rushtoxin: just made my first contribution :raised_hands:

jacek: :tada:

Default avatar.png crackedcoder: how are my favorite mods doing? I wont be spamming chat or trolling today, dont worry.

Rushtoxin: updated my contribution to match guidelines a bit better, hopefully that's all sorted out

Default avatar.png crackedcoder: struct is my favorite mod

Default avatar.png crackedcoder: :clown:

5DN1L: no spam please

5DN1L: https://www.codingame.com/playgrounds/40701/help-center/code-of-conduct

Foxboy: HXH is back ladies and gentlemen

Johannnn: yessir

icyee: damn 1.3m likes for a pic of a blurry tree

swagat-dash: hello world

zakacat: hola mundo

zakacat: Id like to start working on another contribution, but a puzzle this time. Can someone send me the link to the catalogue? orrr what is the best way for me to look for similar puzzles?

5DN1L: https://eulerschezahl.herokuapp.com/codingame/puzzles/

zakacat: Awesome, thank you.

zakacat: Eres amable

5DN1L: np

5DN1L: i didn't know that Spanish :joy:

Rushtoxin: Hoping my contribution gets approved :kissing_smiling_eyes: just a matter of time

zakacat: I think I forgot é

jacek: https://xkcd.com/2619/

zakacat: haha

zakacat: I was wrong though, no accent

TINOUAINANI: i just discovered that python sucks in recursion

TINOUAINANI: :joy:

jacek: haskell doesnt suck in recursion :v

TINOUAINANI: yeh c++ to

zakacat: Is it the language that sucks or is it recursion that sucks? :thinking::thinking::thinking:

TINOUAINANI: the language of course :joy:

jacek: it doesnt suck in vacuumCleanerLang

zakacat: lol

Uljahn: btw you can use sys.setrecursionlimit() in python

Uljahn: default value is kinda low

MAWAAW: no

jacek: Oo

jacek: and there is some @memoize to cache intermediate results

Uljahn: @cache and @lru_cache from functools?

Uljahn: it's always easier to blame a language than yourself :smirk:

Foxboy: such a funny way to tease pple xd

Westicles: loved that hard 'learn memoization!' puzzle... just add @cache

Westicles: gerrymandering I think it was

Default avatar.png Breakmaster: How is it going guus

Default avatar.png kchskandar: zeni

demetedPufferfish: Hi I just started doing the game Space Shooter, and I have a question, https://forum.codingame.com/t/community-puzzle-space-shooter/192343/8? Could someone please help me? Thanks!

struct: Bullet's damage radius is 120, the damage caused at the bullet's position is 10 and decreases linearly with the distance to it, reaching 0 at damage radius. The bullet is shot with the given velocities along each axis (in relation to the ship), with the resultant velocity being clipped to be at most 100.

struct: Isnt it this?

demetedPufferfish: Does the bullet have to hit somewhere on the ship, or does it have to hit the center coordinates?

struct: from what i understand it doesnt

struct: but damages decreases based on distance

demetedPufferfish: Ok, so it just has to hit the center of the ship?

struct: no it can be at 120 distance

struct: but it wont do full damage

demetedPufferfish: Ok, Thank You!

Default avatar.png Wizard-Dude: does anyone know how to calculate your vx and vy after you activate shield in mad pod racer?

Default avatar.png Reyil: hi

Default avatar.png vvgf: aaron i just got back my sol score

Default avatar.png vvgf: guess what i got

Default avatar.png vvgf: well anyway i got a 600

Default avatar.png vvgf: perfect score

Default avatar.png vvgf: it was 85 questions

struct: vx = vx * 0.85 vy = vy * 0.85

Default avatar.png Wizard-Dude: thanks!

struct: but that is when turn ends

struct: you should move and then only after all moves are completed you should updated the velocity

Default avatar.png Reyil: hi

Default avatar.png Dono1: Could anyone explain what's special about the '%' character when trying to convert to binary?

I can convert 'C' and 'CC' using charCodeAt() and then toString(2), but when given '%' I get the correct unicode but wrong binary result.

struct: you need trailing zeros

struct: it needs to be 7 bit binary

struct: so if it is 1011

struct: you need to convert it to 0001011

Default avatar.png Dono1: Ok, thank you! I didn't realize it was something like that at all, lol. Going to study up on that a bit.

jacek: a 7th bit :smirk:

Default avatar.png Dono1: ^

MAWAAW: https://oeis.org/A006047

5DN1L: leading zeros instead of trailing zeros

Ajaiy: btw 5DN1L what is the coolest piece of code you have ever seen?

struct: oh yes I always make that mistake

Default avatar.png Breakmaster: are anyone good at the mad pod race ??

MAWAAW: no

Default avatar.png Breakmaster: I cant understand the first exercise

Ajaiy: wood?

MAWAAW: print x y ? :)

Ajaiy: you just print the next target of your pod's x-axis and y-axis separated by a space

Eg: In python, print("5000 6000")

Ajaiy: if that is the case

Default avatar.png Breakmaster: like this?

Default avatar.png Breakmaster: console.log(nextCheckpointX, nexCheckpointY);

struct: and thrust

Default avatar.png Breakmaster: how do i ad the thrust

struct: console.log(nextCheckpointX, nextCheckpointY, 100);

Ajaiy: print("5000 6000 100")

Ajaiy: For example

Ajaiy: Sorry I forgot about that

Default avatar.png Breakmaster: you guys are amazing thanks a lot

jacek: so mad

Default avatar.png Breakmaster: I know i suck..

Ajaiy: it's okay

Ajaiy: i didn't even know what to do when i came into codingame

Default avatar.png Reyil: how are y'all

Default avatar.png OscarLeung115: Hello, I am new

Default avatar.png OscarLeung115: Do you guys have any advice for the beginner?

Default avatar.png bbies: what language oscar

Default avatar.png OscarLeung115: python

MAWAAW: have fun

Default avatar.png bbies: if you're brand new to programming you might want to do a tutorial first

Default avatar.png bbies: otherwise the puzzles here might be a bit confusing

Default avatar.png bbies: https://www.learnpython.org/en/Welcome

Default avatar.png bbies: this is a good one

Ajaiy: It will take some time to adapt to Codingame. I used to be suprised even if I get 100% in a Clash.

Default avatar.png OscarLeung115: o... I see, I spent few hours to solve the "temperatures"

Default avatar.png OscarLeung115: thank you for your suggestion

jacek: https://www.codingame.com/training/tutorial/space-maze

struct: :rolling_eyes:

MAWAAW: https://www.codingame.com/ide/puzzle/prime-fractals-in-pascals-triangle

Darleanow: jacek is a funny one

Default avatar.png MacBlack: go best language, don't @ me

Wontonimo: Breakmaster , are you still online? I can help you with mad pod racing

Darleanow: Hello wonto !! :)

Wontonimo: hi

Wontonimo: I've been without power for 5 days. Just got it back, and the first thing I do? Log into codingame

Wontonimo: how are you Darleanow ?

jacek: :taco: derjack

jacek: where is my taco, Automaton2000?

Automaton2000: no but you can only use it for the same reason

Ajaiy: :taco: Wontonimo

Wontonimo: thanks for the taco Ajaiy

jacek: :rage:

Wontonimo: y u mad jacek ?

jacek: no :taco:

Wontonimo: oh. I hear the taco days are numbered

Wontonimo: ah, what i mean is the webchat days are numbered

Wontonimo: (again)

jacek: mid june apparently

jacek: eat :taco:

Westicles: blaise is gonna set up a chat but we probably won't get invited

jacek: pascal?

Wontonimo: who is blaise?

Westicles: your french buddy

jacek: a former mod

Wontonimo: that's a use of the word "buddy" that I am unfamiliar with

Darleanow: I'm good sir !! sry, been off for a bit, is everything ok now ?

Darleanow: maybe a level based chat would be great

Darleanow: i.e ppl who have been here for quite a while would we able to be in it

Darleanow: and also your XP points on CG

Westicles: people who have been here quite while are the people they are least interested in

Westicles: though I'm not sure they are interested in any of us at this point

Westicles: very few quality US guys on here

jacek: or anywhere :v

Westicles: hey, we saving yo ass :P

quasi_ubique: regex almost screwed me on my last puzzle. word\?\b didn't match bc before the ? is counts as a boundary in the text or smthn

jacek: regex on puzzle?

quasi_ubique: madhare clashofcode puzzle.

quasi_ubique: Transforming text, regex was easiest

Default avatar.png Dono1: For the MIME Type challenge, my solution is timing out. I currently do pass all the other tests. What kinds of things might be the culprit here? I'm creating a large Map but idk if that's the issue.

Default avatar.png Dono1: Timing out on the final test**

Default avatar.png Dono1: final test has 9999 elements in the association table, and 9999 file names to be analyzed.

jacek: i use map also and it works for me

Default avatar.png Dono1: hm

jacek: depends how you use those

jacek: i have N loop and Q loop. its O(N+Q) i think

Default avatar.png Dono1: just mapping the file extensions to the mime type

Default avatar.png Dono1: http://chat.codingame.com/pastebin/06453c58-8df1-4eb1-a7bb-450711d94de0

Default avatar.png Dono1: ah, didn't mean to paste a link.

Default avatar.png Abdullah7890: hello

5DN1L: It's fine Dono1

Default avatar.png Abdullah7890: did anyone study Mad Pod Racing

5DN1L: It's automatically changed into pastebin

jacek: yeah

Default avatar.png Dono1: Gotcha 5DN1L

jacek: Dono1 dunno if this is issue. but you can put lower cased extension into map in the first place

5DN1L: just convert into lowercase no matter what and compare on that basis. no conditions tested, no questions asked.

Default avatar.png Dono1: Ok I will try that. I wasn't sure if the map might have keys that are uppercase.

5DN1L: but it doesn't matter

5DN1L: when you just convert :wink:

Default avatar.png Dono1: I think I get what you're saying. I will need to convert both the map keys *and* the file extensions to lowercase.

5DN1L: yes, everything before doing anything

Foxboy: why does this chat have participants

Foxboy: isn't it supposed to be common between all users?

jacek: participants?

Foxboy: third Button bottom left

Default avatar.png Dono1: 5DN1L, do you think there's a problem with building up a huge string and then console.log'ing that string to deliver the answer? I figured that's how we are expected to submit (?)

5DN1L: oh

5DN1L: you don't have to

5DN1L: you can just console.log after analysing each case

5DN1L: i mean each file

Default avatar.png Dono1: Ahhh. I thought on all games on the site, you could only have a single console.log happen.

jacek: w00t

Default avatar.png Dono1: That should reduce memory usage lol.

5DN1L: definitely

5DN1L: for you to change that

Wontonimo: hey Abdullah7890 , I can help you with mad pod racing

Default avatar.png Dono1: Yeah that fixed it. I was no longer concatenating a huge string, and I removed some other unused variables as well.

jacek: it passed

struct: time to try stc again

jacek: is your backgammon engine complete?

struct: nah I lost interest

struct: ah backgammon

struct: I read breakthrough

struct: I will finish backgammon soon

struct: :p

Default avatar.png IsmaPLos: jjajaj hola

Default avatar.png IsmaPLos: como estan ?

5DN1L: English only in this channel

Default avatar.png IsmaPLos: sorry

Default avatar.png IsmaPLos: jajaj

Default avatar.png IsmaPLos: hello

Default avatar.png IsmaPLos: my name is Ismael

jacek: good evening

Default avatar.png RandomSteve: hi

Default avatar.png Najjari.Rida1: hello

jacek: how may we help you, Sir/Madam

Default avatar.png SriniSus: taco

Default avatar.png Alpha77: Good evening

Default avatar.png Alpha77: anyone knows python

jacek: :snake:

PatrickMcGinnisII: :popcorn:

imathwee: hey

mdfarhansadiq: hi

Numby: TFW you add System.gc() to your java code main loop to avoid timing out due to a random GC later

44AA44: boubs

WattWillstu: :nerd:

gokubill: tôi yêu em

ASM_MOV_INT: wascally wabbits

RivalRickson: hi

Westicles: hi

PatrickMcGinnisII: Westicles it's not MonkeyPox... it's MoneyPox

Westicles: hmmm, maybe that's a variant

eulerscheZahl: oh, my herokuapp died...

eulerscheZahl: http://chat.codingame.com/pastebin/c1d021ed-471d-44b9-bca5-2686cab26979

Westicles: you could pay the $7 and host chat there

eulerscheZahl: would still not be integrated into the CG website

eulerscheZahl: except if i add CG via iframe

PatrickMcGinnisII: does CH prevent enveloping the DOM with JS parent pops?

eulerscheZahl: CH? switzerland?

PatrickMcGinnisII: ahh typo CG

eulerscheZahl: no idea what is or isn't possible. i don't even know web development that well

PatrickMcGinnisII: CG scripts probably do a JS check to prevent too much automation

PatrickMcGinnisII: although iframe would be the way... and that sucks imo

PatrickMcGinnisII: any bootstrap loader might do ... hmm