Chat:World/2021-09-06

From CG community
Revision as of 05:29, 7 September 2021 by Chat Log (talk | contribs) (Created page with "File:Default_avatar.png gabevenberg: Ive never seen this in my python install. why is codinggame giving me invalid syntax: not in a function? <img src=/a/68983084061211>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Default avatar.png gabevenberg: Ive never seen this in my python install. why is codinggame giving me invalid syntax: not in a function?

jrke: whats the code?

gabevenberg: http://chat.codingame.com/pastebin/fe741169-8807-43d2-b008-11a26bb8192f

gabevenberg: tried putting some stuff in a function just incase codingame had some weird reqirements to put some logic in one, but nope.

ProCoder03: the if condition has =

ProCoder03: should be ==

gabevenberg: im an idot...

ProCoder03: mistakes , happen

gabevenberg: still gives the same error, on my def statement.

ProCoder03: I tested it its working

jrke: which line the error is coming?

gabevenberg: got it working, thnaks.

Default avatar.png GAME12CODER34: hhfhfhvhjb

Default avatar.png GAME12CODER34: hi

ProCoder03: :wave:

ProCoder03: gabevenberg, don't post the question both in discord and here in chat, please !!

Mr_BlueBird: https://www.youtube.com/watch?v=rwXatLhXTrc

Please watch my youtube video, I need to cross 100+ Views on youtube

Mr_BlueBird: and 100+ Subscribers

eulerscheZahl: no

chinoto: @Mr_BlueBird Why would anyone bother to help a stranger with such a thing? Better to talk about how the viewer could benefit (eg, amusement, education) than how you will benefit.

Westicles: blaise will be happy, potw

eulerscheZahl: oh dear, this will be a hard week for the rest of us

**eulerscheZahl saw a wall of text and a spotify link. And then immediately ran away

derjack: hm?

derjack: what potw now

derjack: oh, some puzzle :c

eulerscheZahl: the blaise maze

derjack: lets downvote it so it deletes

Justin-Truong: could yo post the link of that puzzle

eulerscheZahl: https://www.codingame.com/training/hard/a-man-with-a-plan

Justin-Truong: thanks

Justin-Truong: how to downvote it now it's a hard puzzle

eulerscheZahl: you don't just downvote a puzzle because its hard

eulerscheZahl: that's toxic behaviour and shows to respect to the puzzle creator

**eulerscheZahl hates it to get 1 star reviews without even knowing why

eulerscheZahl: creating a puzzle can be a lot of work

TimothyAlexisVass: Yep

TimothyAlexisVass: This one is getting downvotes and I don't know why. https://www.codingame.com/contribute/view/7308d63b764bf1979ade0e862fcb636fa0f4

eulerscheZahl: "Rotate the matrix" clockwise? counterclockwise?

derjack: yes

eulerscheZahl: for the downvotes: might be because the idea isn't very original https://eulerschezahl.herokuapp.com/codingame/puzzles/?q=rotate&category=ANY&title=on&statement=on&tests=on&comments=on&tags=on&author=on

eulerscheZahl: but for clashes that's allowed

TimothyAlexisVass: Is there a good way to check uniqueness of a clash?

TimothyAlexisVass: Oh

TimothyAlexisVass: Thank you

derjack: yeah, by using tools provided by official CG staff ~

Stilgart: TimothyAlexisVass: consider that clashes are never unique

Stilgart: brainless, and more than 90% success

Stilgart: eulerscheZahl: seems that you're in CG staff now :)

ProCoder03: what is simulated annealing ??

ProCoder03: is it like GA ??

eulerscheZahl: for a GA you have multiple solutions that you try to combine to a better one SA has just 1 solution that you try to improve by applying minor modifications

eulerscheZahl: staff? don't listen to jacek

ProCoder03: Thanks eulerscheZahl

ZeroCinq: Guys! someone good in c programming I have a couple of questions to ask

Default avatar.png zKebxb: ok

Default avatar.png zKebxb: ok

Default avatar.png zKebxb: ok

Default avatar.png zKebxb: ok

Default avatar.png zKebxb: ok

Illedan: eulerscheZahl?

Illedan: is your IDE codes gone too?

Sundiver: mine is

ProCoder03: yeah, the current language codes are gone in mine too.....

Illedan: Staff is looking into it.

z19ma: Just when i solved my first

Default avatar.png LorikKender: Good morning

Default avatar.png LorikKender: I have a little problem, when i enter any excescise, the code is empty

Illedan: Devs are looking into it

Default avatar.png LorikKender: oh ok illedan

Default avatar.png LorikKender: srry i didnt read it

ESMAKING: hrello

derjack: hri

sirsatan: hey if i use time.perf_counter() in python

sirsatan: and subtract end of program and begining will i see true time of execution ?

sirsatan: in Night Of War i use it and i can see sometimes 139 ms and max time for turn is 100ms

eulerscheZahl: the start time should be taken after you read the first line of input (otherwise your timing includes the opponent and general server activity)

sirsatan: oh

sirsatan: thank's eulerscheZahl

eulerscheZahl: no problem, it's a common mistake

derjack: ocassionally, you can use a little more time than 100ms, but its unreliable

eulerscheZahl: except for code vs zombies

eulerscheZahl: statement tells you 100ms but in reality you have 150

sirsatan: you mean time debt :D

eulerscheZahl: the server has some error margin on your time limit. but also measures unreliably itself

eulerscheZahl: sometimes you can use 110ms without losing

eulerscheZahl: other times you already lose below 100ms

eulerscheZahl: a science on its own

sirsatan: oh i thought the problem will be always in the favor of the player

sirsatan: error*

sirsatan: good to know

Default avatar.png Gasman123: kiki

MiyamuraIzumi: Hi wala

MiyamuraIzumi: HI GUYS

Default avatar.png grubywitkpr: hhii

derjack: ohai

Bilaboz: hey

Default avatar.png simsar: i know nothing

BlaiseEbuth: Jon? Is it you?

Default avatar.png TheGhost98: hello

Hoyer: Hm with C++ u can use the GCC pragmas to give extra boost for performance.. Is there anything similar we can/should do in Rust? I rewrote my c++ uttt bot in rust for experience and saw an unexpected reduction in amount of sims I got

eulerscheZahl: rust has release mode on CG, no need for pragmas

Hoyer: then it's annoying that I'm seeing less perf

Hoyer: I'll go through my code I guess

eulerscheZahl: maybe you suck at rust? :P

Hoyer: could be

Hoyer: but I made pointers work and everything, and I feel like it works pretty much like my c++ bot did

Hoyer: maybe I missed something

struct: maybe gcc does some optimizations that rust doesnt

struct: and how much reduction are we talking about?

Default avatar.png monkeydfee: hello

Default avatar.png TheSpooN: hi

Default avatar.png monkeydfee: wacha doing

Default avatar.png SethBlakley: uisydf

Default avatar.png SethBlakley: ya koshnya ne spastoya

Default avatar.png Gogovich: yo

jacek: hm?

Default avatar.png dsfjkfdls: l

jacek: potw of this week, meh ~

jacek: well it uses graphs, so its alright ~

Westicles: there is a wonderful little 36 line solution in python

amorasaco: wow

BlaiseEbuth: (╯°□°)╯︵ ʞǝɔɐɾ

BlaiseEbuth: ʞǝɔ ︵ \(°□°)/ ︵ ja

BlaiseEbuth: ╰(⇀︿⇀)つ-]═─── jacek

eulerscheZahl: jacek is right, it's not as good as paper soccer

jacek: :blush:

BlaiseEbuth: Don't say bulshits, even you wich play to any multi that came in your field of view, haven't played paper soccer...

jacek: hes not worth it

jacek: hard puzzle and only 50xp

Default avatar.png DJJ05: :postbox:

BlaiseEbuth: One day I'll also create a multiplayer with the first place hard-coded to be mine...

jacek: hard-coded?

Westicles: Funny you should mention that...

Westicles: https://chadok.info/codingame/leaderboard_languages.html

BlaiseEbuth: In the referee yes

Default avatar.png DJJ05: :mrs_claus:

AllYourTrees: holy crap training C4 bot over holiday weekend payed off :scream:

jacek: huh

jacek: is it better?

AllYourTrees: up to #4 in C4 now

AllYourTrees: just slightly above msmits :O

jacek: :tada:

AllYourTrees: tbh from the graphs it seems like it randomly got really good for like 2 iterations lol

Golyator: join the birthday stream and private lobby https://twitch.tv/golyator

jacek: oO

ja_fica: AllYouTrees ?

ja_fica: NN or opening book in C4?

AllYourTrees: nn

Default avatar.png 34436789: how do i use this sorry im new

Default avatar.png Thunar: UwU

Default avatar.png pythonforfun_: 0.0

Default avatar.png Thunar: :joy:

Wontonimo: quiet here. Who's around?

Medoo: Hey

Wontonimo: what's going on Medoo

Medoo: Trying to have fun with clash

Medoo: What's up with you

Medoo: Wontonimo

Default avatar.png 023: 0

Default avatar.png 023: 0

Default avatar.png EEgmoney: 0

Wontonimo: hey

Wontonimo: i'm helping someone with getting MCTS working for TTT

Wontonimo: done

Shiryo_Yurei: um...

Shiryo_Yurei: can someone help me?