Chat:World/2022-02-04

From CG community
Jump to navigation Jump to search

ASM_MOV_INT: what was everyone's first computer? and/or first computer they programmed on? at home/school or work?

__Peaker__: hiiii

ASM_MOV_INT: :bird: hi

Default avatar.png vespyer: hiii

tekki: hi vespyer

Default avatar.png vespyer: hello tekki

therealbeef: Philips P2000 for me, in late 80s. you had to insert a cartridge which contained a microsoft basic interpreter into a slot on top. 32k ram, no storage, had to load all programs of those mini casette tapes

ASM_MOV_INT: looks like a Texas Instruments, and yeah very similar, I had cartridges too....

ASM_MOV_INT: nice

therealbeef: it used a graphics system similar to what teletext used

FoXbOw: https://www.codingame.com/clashofcode/clash/22097554ebd793575a2693182936b2a1a739231

wontonimo: [automated] hey FoXbOw, dont paste those links here. Use the channel #clash

Default avatar.png cesqueax: https://www.codingame.com/clashofcode/clash/22098023ba29eeb555a5afe68376ad22aed61c2

wontonimo: [automated] hey cesqueax, dont paste those links here. Use the channel #clash

michalwa: yo is there a way to persist stderr beyond the last line on failure

Ryuuk: Hi All

Ryuuk: is it possible to add photo in problem statment of a contribution please ?

DaNinja: Not possible for CoC and Classic puzzles I think

Stilgart: I think it is possible for puzzle if you choose to make a "solo game"

Stilgart: but this requires to master the SDK from CG and to code in Java

darkhorse64: At least for multiplayer games, adding a picture in the statement does not require Java programming

ASM_MOV_INT: you could add an ASCII ART photo

ASM_MOV_INT: anyone here know python?

5DN1L: Is that information collection? :smirk:

ASM_MOV_INT: ValueError: substring not found

ASM_MOV_INT: I'm working on a problem, and half way through it gives me this, from <string>.index() command

5DN1L: the line which causes the error?

ASM_MOV_INT: yes

ASM_MOV_INT: but the substring that it's finding should be at index 0 when it gets to this line

5DN1L: what do you want to do actually?

5DN1L: if you use find instead of index

5DN1L: and the substring is not found

5DN1L: it will give you -1 instead of error

ASM_MOV_INT: cool, but the thing is, the substring should be found

5DN1L: what are the string and substring then

ASM_MOV_INT: i'm doing prefix code challenge, and with each iteration as it finds the code, i set the string equal to the substring without the prefix code

ASM_MOV_INT: i'm working through the first test

ASM_MOV_INT:

ASM_MOV_INT: abraca 01010010001

5DN1L: ah i see

ASM_MOV_INT: the next substring to find is 010, which is at index 0

5DN1L: let me refresh my memory of that puzzle

5DN1L: there are cases where DECODE FAIL

ASM_MOV_INT: i haven't coded that possibility yet, i'm just working my way through the first test

5DN1L: ah ok

ASM_MOV_INT: weird 2nd test stops exactly half way through as well... ok, i'm doing something wrong or weird with string stuff i bet

ASM_MOV_INT: rofl

5DN1L: have you tried to use any debug print to keep track of your variables?

ASM_MOV_INT: yes the code is littered with them commented out

ASM_MOV_INT: :joy:

5DN1L: well, look at them again :shrug:

ASM_MOV_INT: everything works as planned, until it hits approx mid of string

5DN1L: but hey

5DN1L: are you just looking at ANY substring?

ASM_MOV_INT: hmm?

5DN1L: e.g. 001 can appear in any position

5DN1L: but you have to parse from the start position

5DN1L: if 001 appears in the middle, it doesn't count

ASM_MOV_INT: doesn't index() return first position in string of occurence, if it's not 0, then i have the wrong substring, it tries all codes to see if any are at position 0

5DN1L: ah i see your logic now

5DN1L: but as i said

5DN1L: you have to use "find" instead

5DN1L: because index will cause your code to stop immediately if a substring is not found

5DN1L: find and index are almost the same except for the handling of substrings not found

ASM_MOV_INT: oh wait

ASM_MOV_INT: all the other codes

ASM_MOV_INT: have more than one instance

ASM_MOV_INT: until the point

ASM_MOV_INT: ok, ty

5DN1L: erm... ok (have i helped? lol)

ASM_MOV_INT: it runs until it gets to the point where the cycle of checking for codes hits this error.

ASM_MOV_INT: thank you so much

5DN1L: :)

ASM_MOV_INT: hmmm, now to fix this

ASM_MOV_INT: dude, just replaced index() with find() and it worked.... first test anyways

ASM_MOV_INT: ooh and 2nd test

5DN1L: nice

5DN1L: python also has startswith function

ASM_MOV_INT: for strings? really?

5DN1L: really

ASM_MOV_INT: ah!

ASM_MOV_INT: I really have been reluctant to try Python, but it may be worth more of my time than I've previously thought I should allocate to it!

ASM_MOV_INT: :sunglasses:

5DN1L: each language has its pros and cons i suppose :wink:

ASM_MOV_INT: i was thinking earlier... I wonder what would happen if we merge all the possible programming languages into as large and inclusive a programming language as possible

ASM_MOV_INT: cross platform would be a serious issue

Default avatar.png Sxriptl3ss: I am completly new and Idk i cant gte the bot moving

5DN1L: if you don't know any languages, it'll be difficult for you

5DN1L: programming ones i mean

Default avatar.png Sxriptl3ss: I know but i just wanted to leran smth i guess i am board af

5DN1L: well, this site is not for someone who doesn't know any basics yet

Default avatar.png Sxriptl3ss: It sems like i just google like new progamming learn by game or smth this was the first side showed up

ASM_MOV_INT: what's smth?

Default avatar.png Sxriptl3ss: something

jacek: you need to have at least some basics

bonsaifree: if you ared bored: https://www.youtube.com/watch?v=8hly31xKli0&t=19s

jacek: or try easy puzzles like the descent, temperatures

5DN1L: wow bonsaifree

jacek: i/o sutff on this site can be confusing even for experienced folks

ASM_MOV_INT: i just started with Python tonight! like literally hours ago didn't have a clue

5DN1L: clues are here :wink: as long as you aren't a complete newbie

ASM_MOV_INT: i'm also on w3schools, they have some great starter tutorials

ASM_MOV_INT: whoa I got 75% on that challenge... I need to finish churning through the tests to get 100%.... not bad!

5DN1L: keep going!

jacek: what challenge

5DN1L: Prefix code

5DN1L: the puzzle

ASM_MOV_INT: the real challenge for me, in that, is python

jacek: in next challenge? https://deepmind.com/blog/article/Competitive-programming-with-AlphaCode

ASM_MOV_INT: i'll be back in approx 14 hours or so, that's when I'll be at work tomorrow

ASM_MOV_INT: thanks again for the help @5DN1L

5DN1L: :)

**ASM_MOV_INT applauds

ASM_MOV_INT: made my night

ASM_MOV_INT: :grinning:

susmogus22: im in school

susmogus22: :nerd:

Default avatar.png bortol: do you use move/unmove in uttt?

Arishem_the_Judge: hello

Fasader: hi

Alshock: @bortol well, MCTS is usually prefered in UTTT, but if you make a minimax then it may be a good idea to unmove yes

Default avatar.png bortol: I've tried both approaches (mcts and minimax), with both I can reach top50 in gold, but it's so hard to get to legend :/ Maybe java is the problem...

5DN1L: https://www.codingame.com/events

5DN1L: :thinking:

Miki09: Registered :-)

Miki09: I was the first ever registered person to featured events on codingame oO

5DN1L: 🎉

[CG]Thibaud: you're fast :D

Default avatar.png SilentAuntie_d73d: Hello, I have a project in vba to do on the puzzle loss in the stock market... I succeeded in java but I'm struggling in vba, can someone help me please pleaaaase

HoriMiyamura: what is this feautred Puzzle

Default avatar.png SilentAuntie_d73d: stock market losses

HoriMiyamura: do we have medal/achievement?

Default avatar.png SilentAuntie_d73d: i am at level 3, i am new

5DN1L: what kind of help do you need? please be specific

Default avatar.png SilentAuntie_d73d: we managed to code in java but i would like to tranform the code into VBA. I can send you my code in java

5DN1L: if you don't know any VBA, you have to learn it first

5DN1L: we can't just convert it for you

HoriMiyamura: BRAIN FORK, isn't it should be brain fu*k, it has been several months since last time I open this page.

5DN1L: CG think of those names...

5DN1L: their invention

Default avatar.png SilentAuntie_d73d: I have a code in vba but it does not work I do not understand my error it tells me that I am missing a parenthesis

5DN1L: find and add it

Elena.: ^

derjack: bortol how many playouts in uttt?

HoriMiyamura: 20k or more

5DN1L: HoriMiyamura = bortol ?

derjack: alt accounts? oO

Default avatar.png newbie960: print(`they do${readline()%4!=2?:`n't`}`)

Default avatar.png newbie960: how can this console "they do" if there is a^2-b^2 = n<n

Default avatar.png newbie960: a and b < n *

struct: hi

Astrobytes: hello

DaNinja: morning

Default avatar.png TurkLee: 13:05


Default avatar.png TurkLee: Input Expected output 13:05 785

Default avatar.png TurkLee: how i do this

DaNinja: 13*60+5

Default avatar.png TurkLee: ty

5DN1L: are you in a clash, TurkLee?

Default avatar.png TurkLee: nope

OhTurry: o/

gemaaaaaa: :smile:

Default avatar.png Partizanin: how to set up profile photo ?

Takashi97: goto profile and youll see

Default avatar.png bortol: derjack sry didn't see message, I got about 4/5k playouts on 2nd move (which is so low...), but I use evalulation function.

struct: which game bortol?

5DN1L: UTTT

struct: ah java

Default avatar.png bortol: ye I also use only 60ms per turn because I dont know how to manage moery well, prolly I should rewrite solution to rust

struct: both c++ and rust are good choices

struct: rust has release mode

Default avatar.png Big.Tom: SUIIIII

Default avatar.png Big.Tom: SUIIII

Default avatar.png Big.Tom: LAKAKA

Default avatar.png Big.Tom: #jeremyroadtosummerbody

sparkym: SUIIIIII

Default avatar.png Ricky-chan: SUIIIIIIIIIII

Default avatar.png Big.Tom: SUIIIII

Astrobytes: German schoolkids eh

Default avatar.png newbie960: SUIIIIIIIIIIIIIIIII

struct: stop

struct: last warning

Default avatar.png Big.Tom: suiiiiiiii

Default avatar.png Big.Tom: suiiiii

sparkym: minang 😎 deng😳laka😱kinang🥵suang🤠kinang😯suang😅laka😠kingnang🥰neng😎🙏

JL727: bruh

JL727: BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦BING CHILLING 🥶🍦

Default avatar.png yuutz: SUIIIIIIISUIIIIIII

Default avatar.png yuutz: SUIIIIIIISUIIIIIIISUIIIIIIISUIIIIIII

Default avatar.png yuutz: SUIIIIIII

Wontonimo: no spamming

struct: hi Wontonimo I think they are all banned

Wontonimo: some of you have been given a 10 min time out

Wontonimo: ah

Wontonimo: thanks :grin:

Wontonimo: featured puzzle !?! that's new. neat idea to promote the puzzle of the week with more gusto

therealbeef: they also hinted that you might get CP for it..

5DN1L: did they?

struct: o.o

Astrobytes: So this could be a multi, puzzle or optim from week to week?

darkhorse64: through new leagues in the selected multi

struct: lets wait and see I guess

struct: I already got what I wanted

darkhorse64: although I doubt they will open a Legend league for 200 players

therealbeef: ah, i misread, only CPs for bot programming style eatured events

darkhorse64: optims five also CPs

darkhorse64: give

therealbeef: http://chat.codingame.com/pastebin/75618262-6951-4486-885b-c10be4c13e96

therealbeef: sounds exciting anyway

Astrobytes: we'll see how it pans out participation-wise I guess, as long as there are enough people it will be

therealbeef: yes, a cool part of contests was always that everyone is talking about and working on the same problem

Astrobytes: Indeed. Speaking of which, now we have these events plus a sprinc contest :tada:

Astrobytes: Or indeed a spring contest.

darkhorse64: From #fr, bot events are not yet ready

Astrobytes: no rush, plenty other things going on until then

struct: soon enough nulte will comeback

darkhorse64: no worries, just fyi.

Astrobytes: lol struct

Astrobytes: darkhorse64: all good, ty for the heads up ;)

eulerscheZahl: oh, an "event" somehow i expected this to be the official contest announcement

eulerscheZahl: i have to register for a puzzle now?

Astrobytes: Apparently so. I'll wait for the multis to be ready

eulerscheZahl: "Register to receive an email" my bad, didn't read

Astrobytes: oh, neither did I

eulerscheZahl: i think i solved the quora demo task, submit time

Astrobytes: nice

eulerscheZahl: only C, C++, Java, Python and I don't even know which Java version

Astrobytes: Surprised there's no Rust in that list tbh

eulerscheZahl: oh, only 32/100 points some wrong answers (unexpected) and timeouts (not a total surprise)

eulerscheZahl: but i understood their platform and that's what the test session is about

Astrobytes: btw I only pinged you on discord to pin a link to the contest channel

Astrobytes: Platform OK then?

eulerscheZahl: i just closed discord

Astrobytes: I thought that's why you closed it :D

eulerscheZahl: no, to get some screen space for quora

eulerscheZahl: an update broke the re-adding of tabs to the main window

eulerscheZahl: oh wait, it's working again. but i swear it was broken last week

Josdel: hey guys

Josdel: all fine?

derjack: hmm

darkhorse64: Astrobytes: The TSP optim is ready

wlesavo: euler whats a quora? I found only some strange social network? is that it?

BlaiseEbuth: It is.

BlaiseEbuth: But there's a contest

wlesavo: oh i see, shouldve just google quora contest

Astrobytes: darkhorse64: thanks :)

Default avatar.png Anonymous_coder687: is there a way i can use the dart code cuz i use it and i just die i tried to change the code but nothings working

5DN1L: What do you mean by dart code?

Default avatar.png Anonymous_coder687: the shoot code

5DN1L: Which puzzle are you working on?

Default avatar.png Anonymous_coder687: the mad pod

5DN1L: Which league are you in? Wood 3?

Default avatar.png Anonymous_coder687: yes.

5DN1L: Which programming language do you use? Dart?

Default avatar.png Anonymous_coder687: bash and dart yes

5DN1L: You can choose either from the menu

5DN1L: above the coding area

Default avatar.png Anonymous_coder687: but the dart does nothing and kills me

Squar3: can someone explain the leagues thing and how to play? I only play coc :3

5DN1L: You have to modify the code first, Anonymous_coder687

Default avatar.png Anonymous_coder687: oh.

5DN1L: Squar3 coc has no leagues

Squar3: ikr but m asking about the league thing how to play it..

5DN1L: you mean the leagues in bot programming?

Squar3: yeah

Squar3: how to play

5DN1L: You have to choose a bot game, write the code for your bot, enter it in the arena, if you win the boss of that league, you're promoted to the next league

Default avatar.png Anonymous_coder687: i have no coding experience whatsoever

5DN1L: Then you have to learn it elsewhere first

Squar3: sry but where I find bot programming I only know coc and puzzles

Default avatar.png Anonymous_coder687: i just heard this was a great source from one of my buddies

5DN1L: https://www.codingame.com/multiplayer

5DN1L: Squar3

5DN1L: under BOT PROGRAMMING

5DN1L: Anonymous_coder687 This website is more for practising than for learning from zero

Squar3: okay m wood 2 I need to solve tasks to promote or what?

5DN1L: You have to enter your bot in the arena, and win enough games to beat the boss of that league

5DN1L: then you're promoted

5DN1L: You usually have to rewrite your code as you go up the leagues

5DN1L: to improve your bot

Default avatar.png Anonymous_coder687: 5DN1L do you work here because you have a badge thingy.

5DN1L: I don't work here

Default avatar.png Anonymous_coder687: oh

5DN1L: I'm a volunteer moderator

BlaiseEbuth: *slave

jacek: he get paid in insults

5DN1L: yeah :(

Default avatar.png Anonymous_coder687: oh that makes sense

therealbeef: and gray hairs

Default avatar.png KDW: let no good deed go unpunished !!

Squar3: why I can't understand this games :(( isn't about solving problems like puzzles?

5DN1L: it's about competing against other bots

5DN1L: read the statement

5DN1L: to understand how you win or lose

therealbeef: like playing chess

5DN1L: yup

Default avatar.png Anonymous_coder687: what was that one game where you shoot a laser at bots?

Default avatar.png Anonymous_coder687: it starts with a c

Default avatar.png Anonymous_coder687: i cant remeber it

Default avatar.png Anonymous_coder687: remember*

jacek: onboarding?

Default avatar.png Anonymous_coder687: yes

Default avatar.png Anonymous_coder687: that one

jacek: conboarding

Scarfield: conair

Default avatar.png Anonymous_coder687: is it just me or does it look like a c

Default avatar.png Anonymous_coder687: idk i might be dumb idk

5DN1L: :older_man:

5DN1L: old or cold

Default avatar.png Anonymous_coder687: wha?

5DN1L: erm... nothing :P

Default avatar.png Anonymous_coder687: awe the onboarding game only has 1 lvl.

5DN1L: that's just intro

5DN1L: it's not a bot programming game

5DN1L: no leagues there

5DN1L: anyway as I said, either you learn the basics elsewhere, or you can try to google the relevant info to help you solve the puzzles here

Default avatar.png Erkus: hello

Default avatar.png Erkus: i lost the game

Default avatar.png Anonymous_coder687: ill just avoid the clans

Default avatar.png NateLu: around what level are the assesments companies will send through codingame?

Default avatar.png NateLu: Like easy, medium, hard

BlaiseEbuth: :popcorn:

5DN1L: someone mentioned previously that private assessments are harder than publicly available ones

5DN1L: but exactly what level? i dunno

Default avatar.png NateLu: 👍

Default avatar.png Anonymous_coder687: p.o.t is so wierd

Default avatar.png Anonymous_coder687: weird

5DN1L: you mean puzzle of the week?

Default avatar.png Anonymous_coder687: power of thor

5DN1L: oh... ok

jacek: huh

Default avatar.png Anonymous_coder687: can get banned from here

Default avatar.png Anonymous_coder687: i*

Default avatar.png Anonymous_coder687: im just curious

5DN1L: yes

Default avatar.png Anonymous_coder687: o

jacek: you need more trolling though

Default avatar.png Anonymous_coder687: wdym

Default avatar.png Anonymous_coder687: like rickroll type trolling or like other kinds

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

Default avatar.png Anonymous_coder687: yikes...

Stilgart: Cheating is discouraged.

Stilgart: (I don't really know if I should laugh or be angry with this one)

Default avatar.png Anonymous_coder687: lol i thought the same

Mrs.GloriaZindlebocker: Oh yeah, what ever happened to the leaderboard cleanup?

Stilgart: you should look at the optim and golfs sections

Stilgart: ... and several multis

Default avatar.png Anonymous_coder687: i type with a battery

Default avatar.png Anonymous_coder687: im kiddinf

Default avatar.png Anonymous_coder687: kidding

Default avatar.png CodeChris: Hi Karl

Default avatar.png Anonymous_coder687: whos karl

eulerscheZahl: "Oh yeah, what ever happened to the leaderboard cleanup?" was just a firm wish. but i've been told those removed from GitC can't even resubmit

Mrs.GloriaZindlebocker: Probably because they didn't remove xp. Resubmit would have given them double

Squar3: how to report cheaters in COC ?

5DN1L: how do you know they've cheated?

Squar3: friends and shared the same code nd submitted same sec

Squar3: nd somehow both top 1 even that one is bad at scoreboard

5DN1L: did they share in the coc chatroom?

Squar3: nah

Squar3: I mean m not sure I can see same characters length and same submit sec but they didn't share it after the round

Squar3: I just want to report .

5DN1L: you need evidence as proof

Squar3: admins can't check that?

Squar3: haha is it okay if 2 friends use the same exact code? is it luck???

5DN1L: well you can try to PM [CG]Thibaud and ask him

Squar3: they are freinds on the website btw

5DN1L: followers ≠ friends

Squar3: nah bro I thought there is a button for report or something

5DN1L: oh that

5DN1L: it's on the profile pages

Squar3: okay ty

yaziel: hi

ninjadip: hi

ninjadip: don't report everything you see

Default avatar.png CommanderAzure: hi

ninjadip: heller

Wontonimo: hey 5DN1L , i've made some impovements to mod bot and i think it is ready to deploy

5DN1L: oh?

Wontonimo: it now looks for people repeating themselves, and some bad words

Wontonimo: and when a new user logs in it sends them a message to check the code of conduct

5DN1L: ah sounds good

Wontonimo: okay ... i'll deploy

ninjadip: interesting

ninjadip: here come the thought police

Wontonimo: if you'd like to try it outside of world chat use /join testworld

ninjadip: i love the term 'testworld'

Wontonimo: one of the "bad words" is badword

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

Wontonimo: hi antiwonto

antiwonto: [automated] hey Wontonimo. I'm a bot :robot:

ninjadip: will antiwonto not helps us because Wontonimo helps us lowly coders

Wontonimo: never thought of the 'anti' as meaning that

Wontonimo: lol

ninjadip: i love the bot in the movie gravity

Wontonimo: i don't remember there being a bot in gravity

Scarfield: badword

antiwonto: [automated] Welcome Scarfield, have't seen you before :wave: A friendly reminder to be respectful https://www.codingame.com/playgrounds/40701/help-center/code-of-conduct

Scarfield: xD

Wontonimo: it doesn't award golden tacos yet

jacek: tacocat drives racecar

antiwonto: [automated] Welcome jacek, have't seen you before :wave: A friendly reminder to be respectful https://www.codingame.com/playgrounds/40701/help-center/code-of-conduct

jacek: thats quite spammy

Scarfield: it repeats itself, when will it recursively remind itself to be respectful

Wontonimo: hmm

Wontonimo: yeah, that is kinda spammy

Wontonimo: it'll never say welcome again to you.

Wontonimo: i can turn off the welcome thing, or we can let it run for 1 day and see if it gets new users to be calmer

Scarfield: if it says that every time someone joins chat, its gonna be annoying i think, no need to remind everyone of code of conduct, only the ones that dont follow them i would say

Wontonimo: oh, i'll turn off the new user message for now. after it tracks some users and has a bit of a DB, I'll turn that back on maybe later in the week

Scarfield: :thumbsup:

Wontonimo: fair enough Scarfield

Scarfield: when contest starts its gonna be a lot of welcomes xD

**struct bans antiwonto

Wontonimo: okay, welcome message has been deactivated

5DN1L: one welcome message to all the new users say every minute/5 minutes is better

Wontonimo: we can revisit for sure. for now it is just commented out. i want this to make this place better, not more spammy

Scarfield: sure, less chance for it being spambot

Wontonimo: so, features include : naughty language, clash links, and user repeating themselves.

Default avatar.png nesnes112: hi

Default avatar.png nesnes112: http://chat.codingame.com/pastebin/f5941e62-833e-4ce9-a8f8-52484332fde3

Scarfield: what is repeating oneself? im gonna be kicked for ecksdee'ing all the time? :o

Default avatar.png nesnes112: for (let i=0;i<x; i++)

   {  
       console.log ('*'.repeat (x));
       }

Wontonimo: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill

Wontonimo: look at this link

Wontonimo: and then you can just join

struct: "*".repeat should work

Wontonimo: ^^ that is a lot better

Scarfield: test

Scarfield: test

struct: maybe you want repeat(i)

struct: instead of x

antiwonto: [automated] Scarfield please don't repeat yourself

Mrs.GloriaZindlebocker: seems like CG could make something like this if they wanted it

Default avatar.png nesnes112: struct it works but it displays only 2 stars on line 1 for x=2

struct: what should it display?

Scarfield: ah didnt get kicked, i like your idea of this bot wonto :)

Wontonimo: thanks :grin:

Scarfield: https://southpark.fandom.com/wiki/A.W.E.S.O.M.-O_4000

Mrs.GloriaZindlebocker: what should it display?

Scarfield: lol involuntary bot testing xD

Default avatar.png nesnes112: struct it should displays for x=2

Default avatar.png nesnes112: 2 stars in line 1

Default avatar.png nesnes112: and 2 stars in line 2

struct: its doing that

struct: that code is doing the exact same that the python one is doign

struct: doing*

Mrs.GloriaZindlebocker: you ought to try it out in #fr :P

Scarfield: automaton speaks french :scream:

Default avatar.png nesnes112: struct I tested it on scrimba it only displayed 2 stars on a single line for x=2

Mrs.GloriaZindlebocker: I bet they would kick non-fr bots

struct: https://tech.io/snippet/vq7Mbw5

Default avatar.png nesnes112: thanks struct

Default avatar.png nesnes112: Could it be a publisher problem?

Default avatar.png nesnes112: I ran my code on scrimba

struct: maybe scimba stop on first output

struct: or something

Default avatar.png megamagg2: powers?

Default avatar.png megamagg2: ah no 2 :(

Default avatar.png nesnes112: ok thank you struct for ur help

Default avatar.png nesnes112: hi

Default avatar.png nesnes112: how to make the spaces are displayed before the stars (ie for example n=5, I want there to be the display of 4 spaces followed by a star for line 1) here is my code

Default avatar.png nesnes112: for (let i=1;i<=x; i++)

   {  
       console.log (' '.repeat (x-i)+'*'.repeat (i));
   }

struct: isnt that what that code is doing?

struct: or do you want to display 2 spaces 1 star and 2 spaces for first line?

Default avatar.png nesnes112: for n=5 example I want in the 1st line 4 spaces followed by a star then in the 2nd line 3 spaces followed by 2 stars etc...

struct: that code you pasted is doing exactly that

Default avatar.png nesnes112: no struct

struct: http://chat.codingame.com/pastebin/f0de20c3-c75b-402f-9587-d11cae84c862

struct: This is what you are describing

struct: and its what your code is doing

Default avatar.png nesnes112: for n=5 example

  • my program displays 1 star followed by 4 spaces

struct: well it works fine for me so I cant help

Default avatar.png nesnes112: yes struct this is what i want

Default avatar.png nesnes112: thanks struct

ycsvenom: hello

ycsvenom: guys can anyone explain how he has encoded his code here https://i.imgur.com/0r5IMh1.png

ycsvenom: i know it's a utf16 but i don't know how to make it in that behavior(Chinese characters)

ycsvenom: and i have decoded it successfully but i want to generate my own

Default avatar.png Lugassi: if I remember correctly there is an online site for that

ycsvenom: what it's name?

ycsvenom: i tried to search but didn't find anything

Uljahn: print(b"print('hello')".decode('utf-16-le'))

Default avatar.png Lugassi: If I still remember its like code encoding rewrite online or some like that!

Default avatar.png Lugassi: But The Code Ulijahn works to...

ycsvenom: thanks

ycsvenom: worked successfully

Default avatar.png Lugassi: no prob


jacek: https://clemg.github.io/pythongolfer/

Laki_42: Is it allowed to use pythongolfer, I used it before but I didn;t know is it allowed or not ?

Wontonimo: it isn't an auto win

5DN1L: nobody says it's disallowed so far

Wontonimo: you still have to golf your code before using it to get the full advantage

Wontonimo: it won't strip comments or replace variables with shorter versions for example

Wontonimo: and sometimes it will contain a non-valid character and just wont even be accepted by CG

Blokops: my rule of thumb if that im against a ruby user then the golfer is free games else is cheating

jacek: everything is allowed until it isnt

Blokops: everything is fair in love and ruby clashs

Quidome: is this golf thing used a lot in clash?

Blokops: shortest code mode

Quidome: Yes i undertand but is it used?

Quidome: Also code Golf...

Quidome: hm... that explains :)

Laki_42: I think it is not used much, because a lot of people doesn't know about it or don't like to use it

Quidome: I simply could not understand the smallest contributions in code golf

Quidome: Maybe the have used this trick

Blokops: also belows 50 char the Pgolfer is useless

Quidome: I mean i could not figure out how they get it so small :)

Laki_42: I don't get it how in some code golfs are C in the top of leaderboard, is it some trick with it

Mrs.GloriaZindlebocker: I published the JS and ruby versions, not sure if anyone uses them

Mrs.GloriaZindlebocker: oh, and the C trick too

Laki_42: what is C trick ?

5DN1L: https://www.codingame.com/forum/t/tips-and-tricks-for-code-golfing-in-c/190897

Laki_42: Wow, I didn't know you can use scanf and printf without "stdio.h"

Quidome: What about the codingame reverse engineering optim. Any small tip is more then welcome

5DN1L: search the forum :wink:

Quidome: aha ok, look into that

5DN1L: the optim's a famous game

Quidome: it's weird :)

5DN1L: heehee

Blokops: there a tips section

Quidome: but also intriguing

Mrs.GloriaZindlebocker: better do the sentence tokenizer puzzle before it gets deleted

Blokops: is going to get deleted?

Mrs.GloriaZindlebocker: I think once it hits 20 votes it gets deleted if the score is below around 3.2

5DN1L: Hmmm, the renamed bot games have revised urls now. no trace of the old names

Astrobytes: :tada:

Wontonimo: :listless-sad-cat:

5DN1L: except the quest map (don't tell CG) :zipper_mouth:

Mrs.GloriaZindlebocker: we'll have to make a conversion table for blaise when he gets around to submitting again

5DN1L: http://chat.codingame.com/pastebin/3f92f714-c749-40a5-8e9e-38092c9b53f6

Default avatar.png Papi.Chulo: I will prostitute myself

5DN1L: I will kick you out for spamming

Default avatar.png Papi.Chulo: pptpthlturhrh

Default avatar.png Papi.Chulo: rh

Default avatar.png Papi.Chulo: r

5DN1L: ok ban then

jacek: oO

BadBurger: hmm, marslander calc distance to vSpeed to 0. this does not correclty calculate, we are going to assume that current power = 4

BadBurger: var S = (vSpeed.toDouble().pow(2.0)) / (2*(4-3.711))

BadBurger: what have i missed?

tealfrog: how do you feel about compressing code in python with u16?

Wontonimo: hey BadBurger, do you have a replay to share?

Wontonimo: that calculation looks right

Wontonimo: tealfrog, i have no opinion. do as you please

jacek: i feel satisfaction

BadBurger: X=2500m, Y=2533m, HSpeed=0m/s VSpeed=-14m/s Fuel=516l, Angle=0°, Power=4 (4.0m/s2)

BadBurger: S=389

tealfrog: : )

BadBurger: this is stats when its vspeed 0

BadBurger: Landing in progress... X=2500m, Y=2182m, HSpeed=0m/s VSpeed=0m/s Fuel=320l, Angle=0°, Power=4 (4.0m/s2)

tealfrog: usually i wait until last moment to see if i need it

Wontonimo: ok, what's the problem BadBurger. Also, where's the replay link?

BadBurger: idk how replay helps. im doing locally. but here is a check with online engine

BadBurger: https://www.codingame.com/replay/606758942

BadBurger: y-S is not same as y when vSpeed = 0

Quidome: Nice hovering :)

Wontonimo: what is your target Y?

Wontonimo: Calculate S using S=v^2/2a like you did. if S > Y- target Y then no need to thrust. Else, thrust max

Wontonimo: so, the question is, what is your target Y ?

BadBurger: http://chat.codingame.com/pastebin/556ef1f9-9258-488a-a2f0-77f81f92e660

Lambert_W_Function: i swear ive had like 7 shortest modes in a row

BadBurger: is this just because it gives int and im calc float, so i loose some decimals it off a little

Wontonimo: here is a replay using only S=v^2/2a

Wontonimo: https://www.codingame.com/replay/606764592

BadBurger: yeah but if S=v^2/2a and your target is landing_y then its not showing correctly because then vSpeed should be 0 when its on same y as landing pad

BadBurger: no?

Default avatar.png I.T.: I will prostitute mtself for money

5DN1L: kicked

jacek: oh my

Andriamanitra: best ban that guy tbh

Mrs.GloriaZindlebocker: all that work just to say that again

Andriamanitra: he just said some racist stuff in a clash too

Default avatar.png I.T.: xdfcftcf

Default avatar.png I.T.: cfc

Default avatar.png I.T.: f

5DN1L: ok ban then

5DN1L: is it the same guy?

Andriamanitra: yeah

5DN1L: i mean i banned one just the beginning of this hour

5DN1L: almost spamming the same way

Wontonimo: hey BadBurger, not quite so, because the lander can't actually increase it's thrust to 4 all at once. The signal is to thrust 4, but it actually only increases by 1 per turn

Wontonimo: so you need a bit more logic, but the math is sound

Ben-D-Anderson: 5DN1L, that I.T. guy dropped some awful slurs in a clash of code I was in with him

BadBurger: solved it.

5DN1L: hmmm that's bad, Ben-D-Anderson

Ben-D-Anderson: yeah

5DN1L: let's hope similar guys don't come again (though it's likely they do)

Ben-D-Anderson: mhm

5DN1L: some people just like wasting their time

5DN1L: why not do some coding?

Mrs.GloriaZindlebocker: it is the same guys over and over

Ben-D-Anderson: exactly, I spend my fridays solving algorithm problems cos im just that cool

5DN1L: :sunglasses:

Lambert_W_Function: gaming

5DN1L: Lambert_W_Function get the 8th shortest mode in a row!

Wontonimo: softest landing i could manage https://www.codingame.com/replay/606767548

Lambert_W_Function: fr though if u look at my history (idk if u can), u can see the past 10 or so have been shortest modes

5DN1L: i can't

5DN1L: but i believe you

5DN1L: i've had shortest mode for a few days in a row if i remember correctly

Lambert_W_Function: usually i get a good mix, but like 95% of today's have been shortest lmao

5DN1L: at least it's not 100% :D

Lambert_W_Function: yeah lol

Ninjadinogal: yo dumb question but how do I move on from my league? I'm currently number 1 in wood 1 and idk why it won't give me access to bronze rules and such?

5DN1L: Your games are still running

5DN1L: Wait until they're all finished

5DN1L: If by then your score beats the boss's score, then you're promoted

5DN1L: You can see the progress of your games by clicking LAST BATTLES

Ninjadinogal: ah ok gotcha, thanks. Was just resetting it too frequently :sweat_smile:

5DN1L: :)

Squar3: did they change the path of alogrithms??

Mrs.GloriaZindlebocker: somebody approve this so I'll have something to do

Mrs.GloriaZindlebocker: https://www.codingame.com/contribute/view/7702b4597b496e6b3310e47f833855a42c10

Wontonimo: it looks like you'll have to do something

ninjadip: wha'ts poppin everyone

Blokops: birds mostly

ninjadip: poppin not pooping

ninjadip: i always wonder what makes one bird spot a cooler bird hangout than other places.

Blokops: maybe is lile highschool

Blokops: some bird are emo, other weebs, etc

ninjadip: hmm

Blokops: fun fact pigons dont rest in trees

Blokops: ever

ninjadip: i don't have any pigeons

ninjadip: but that is interesting

ninjadip: we have one place in our city that has a lot of electrical transformers at that inersection and there is an audible, very audible, artificial owl noise on a constant loop

ninjadip: i wonder if it's for the electrical stuff or the billboards right above it, to keep s*** off their billboard space

Josdel: hello

Josdel: hello

ninjadip: hi there

Wontonimo: hiya

Wontonimo: oh, ninjadip Blokops and Josdel all online at the same time :wave:

Josdel: How are Wantonimo?

Josdel: :thinking:

Josdel: Won*

Wontonimo: pretty good

Wontonimo: what have you been working on Josdel ?

Wontonimo: your rank is 14012. Have you thought of worrking on that by playing a multi?

Wontonimo: can't get much higher with just clash

ninjadip: whats up Wontonimo

ninjadip: playin some don't panic 2 here

ninjadip: making elevators for my little lemmings now

Wontonimo: nice. i did some clean up on "CG's Next Top Model" to get it ready for approval

Wontonimo: re-read marchetes write up on alphastar. That is quite setup he spells out for training NN

ninjadip: training NN?

ninjadip: just had a duh moment, I had my guys making elevators when they where none, but they kept wanting to make them, then i realized I never added these elvators to the vector for them to stop PANICing and making elevators lol

npc1640: anyway i can retrace the code of my clash ?

Wontonimo: do you have a copy?

Wontonimo: if no : then no; if yes : then yes;

ninjadip: I love easy fixes

npc1640: when the clash over , i forgot to save other's grat code ;(

npc1640: great

Wontonimo: move on with life. heck, move onto multis instead of clash

Josdel: Wontonimo, for the moment I haven't been doing many exercises here (they make me think for a long time until I find the answer ;_;), sometimes I'm doing the katas or playing with my friends clash

Wontonimo: play Tron (aka line racing) or mad pod racing

Wontonimo: https://www.codingame.com/multiplayer/bot-programming/mad-pod-racing

Husoski: npct1640 look in your notifications to find the notice of your finish, click on that and you can get back to the results page and see submissions.

Josdel: hmmm

Josdel: :thinking:

Husoski: npc1640 look in your notifications to find the notice of your finish, click on that and you can get back to the results page and see submissions.

Josdel: I will try

Wontonimo: hm? what are you thinking Josdel? oh, my last comment was for npc1640

Wontonimo: but yeah, give it a try also Josdel !

Wontonimo: another multi to try is connect 4

Wontonimo: you can make a starter bot to just play randomly

Wontonimo: and then add to it

npc1640: that helps ! but i cleared that notification i need , so stupid i am .

npc1640: thank you husoski

npc1640: suddenly i found that notificatio hasn't been deleted ! much thanks:yum:

Mrs.GloriaZindlebocker: hmmm, I can get the right answer by sticking in a couple reverses, but wouldn't swear it is right

Mrs.GloriaZindlebocker: that 3D printer puzzle...

Wontonimo: i'm not sure how it is difficult

Wontonimo: is it that it is too large? Can't you just use each side as a cut and remove

Mrs.GloriaZindlebocker: it is the usual, getting the thing turned around the same way the author envisions

Mrs.GloriaZindlebocker: like blockout but much easier

Wontonimo: wouldn't numpy make quick work of this?

Mrs.GloriaZindlebocker: Beats me. Haven't used python much

Mrs.GloriaZindlebocker: The python guys seem to be able to do just about anything in 10 lines

Wontonimo: time to jump on that wagon Gloriasticles

Mrs.GloriaZindlebocker: I can do all the simple stuff. Too much manual reading to figure out what all those libraries are doing

Mrs.GloriaZindlebocker: I never could figure out how that guy solved 5D chests using import scipy.ndimage

Wontonimo: i think it is messed up

Wontonimo: everything passes other than chair

Wontonimo: ah, i had the coordinates backwards

Wontonimo: done, approved

Wontonimo: if you want to see my solution Mrs.GloriaZindlebocker I posted it

Mrs.GloriaZindlebocker: ah, nice

Wontonimo: did you have a solution ready?

Wontonimo: that was a little fast :smirk:

Mrs.GloriaZindlebocker: yeah, I published it

Wontonimo: neat

Wontonimo: i'm outta here! bed time

Mrs.GloriaZindlebocker: gn