Chat:World/2021-09-18

From CG community
Revision as of 05:29, 19 September 2021 by Chat Log (talk | contribs) (Created page with "<img src=/a/61784826959548> MiyamuraIzumi: how to have a girl friend? <img src=/a/70313440435725> littlebear: not be a programmer <img src=/a/41131420349000> WhaIe: ^^^ <im...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

MiyamuraIzumi: how to have a girl friend?

littlebear: not be a programmer

WhaIe: ^^^

MiyamuraIzumi: I am not a programmer

MiyamuraIzumi: I am a developer

Hrafnafloki: you can develop one maybe

littlebear: lol

Pywon: hey there.

jacek: happy Caturday

littlebear: :cat:

PatrickMcGinnisII: :bacon:

33Cerberus: http://chat.codingame.com/pastebin/faee254c-cd19-4c0f-a5b7-36592d534627

Husoski: You mean to repeat from the top of the loop (including the condition test)? That's a "continue" statement.

33Cerberus: no

33Cerberus: http://chat.codingame.com/pastebin/be56cd3b-7514-4312-bf47-efb0be31ab93

33Cerberus: http://chat.codingame.com/pastebin/3d257a16-2db9-4ba4-aa75-a4194939119d

33Cerberus: http://chat.codingame.com/pastebin/b81850af-8d8f-43ab-a89b-c5d821fe5822

33Cerberus: last is correct

33Cerberus: i 3 times miss click ENTER

Miki09: In csb gold league is the second pod needed to complete the race? I mean if i want to make one runner which will just run on checkpoints and one blocker which will never pass a checkpoint can i do it?

DaNinja: sure

Miki09: But how the timeout works with 2 pods?

DaNinja: the timer resets if one pod reaches next checkpoint

Miki09: Oh

Miki09: so only one pod is needed toreset the timeout?

DaNinja: right

Miki09: Thanks

Default avatar.png Maxim251: I have question, I am strugling about creating function is_moving(), where is the best way to put that function? Return type will be bool, because I want to know if unit is in move https://tech.io/snippet/E1dPL7D

This is siplified copy of construction classes what I did build. I was wandering if better is make new class like " IsMovable" and there put function is moving? Or put to UNIT clas? or I_UNIT class which that class is an interface?

struct: I would just put it in I_UNIT

struct: but i dont really follow oop good practices in cg

Default avatar.png Maxim251: UNIT class I use to store data, but in future I want move them to heroes, because for example TOWER is static unit and is not movable at all, Thats why, I am wondering what to do.

Default avatar.png Maxim251: I am still learning this type construction of OOP, and I dont want make bad habbit, and stick to it.

Default avatar.png Shurishe: If not all of derived classes actually can move the it is bad to put move speed in base class. Typically base class contains features that are common for all derived

jacek: or make I_MOVABLE_UNIT derived from I_UNIT and put there

struct: robo first on bt o.o

Default avatar.png Maxim251: hmm.. Then I could put all simmilar functions about position in that class.

Default avatar.png Maxim251: like speed, is moving, is close..

jacek: oO

Default avatar.png Joe1014: i fix the x y i need do what?

Default avatar.png repyh3: me need to know what is programming

Default avatar.png repyh3: plz

Default avatar.png repyh3: guyz?

struct: no ida

jacek: no?

Default avatar.png None121232: Write a program that prints the temperature closest to 0 among input data. If two numbers are equally close to zero, positive integer has to be considered closest to zero (for instance, if the temperatures are -5 and 5, then display 5).

Default avatar.png None121232: help me

Default avatar.png JustCoderAs: firstly create an array that keeps the value neg or pos of the temperatures

Default avatar.png JustCoderAs: and compare the values with abs

Default avatar.png JustCoderAs: if its index in keep array is negative

Default avatar.png JustCoderAs: create an value and declare it as -1

Default avatar.png JustCoderAs: if its posive decalere as 1

Default avatar.png JustCoderAs: after all

Default avatar.png JustCoderAs: print neg_or_pos_value*temp(abs)

Default avatar.png JustCoderAs: @none121232

MiyamuraIzumi: ?

MiyamuraIzumi: why do we even need an array

MiyamuraIzumi: just compare each input

jacek: hmm

jacek: dont forget the abs. you need to exercise

struct: I just used avx

Default avatar.png null22: hello, i'm trying to solve the following exercise :

jacek: :thinking:

Default avatar.png null22: 7 segment scanner

Default avatar.png null22: any tips to begin ? i'm stuck

jacek: try forum https://www.codingame.com/forum/t/community-puzzle-7-segment-scanner/186420

Default avatar.png null22: thank u, i read it but it don't help me

Default avatar.png null22: im trying to solve it in C

FoxLee: what's special about C that blocked you from solving it?

Default avatar.png UCYT5040: this is confusing me

Default avatar.png UCYT5040: what does the autogen code in python do

Default avatar.png UCYT5040: more so, what should i provide it?

Default avatar.png null22: i understood how it is stored in memory, like in the first array, there is a space, _, space and so on. The in the second array we have | space space | so on and in the last array |_|. I don't know how to proceed to convert the first element to a "0"

Default avatar.png null22: i'm french sorry for my english :nerd:

Default avatar.png UCYT5040: Im gonna try this again later, way to confusing

FoxLee: my idea of doing it is to concat the several strings into one string. One string for one digit.

jacek: good idea. but why in C? oO

Default avatar.png null22: thanks for the reply, i want to learn C :grin:

FoxLee: C is good enough for this simple stuff

AllYourTrees: C S S & H T M L R G O O D E N O U G H T O O

Default avatar.png AmazingPro: c++

Default avatar.png AmazingPro: phyton

Default avatar.png AmazingPro: pascal

jacek: html? programming language? :thinking:

eulerscheZahl: HTML stands for hyper text programming language, didn't you know?

Default avatar.png AmazingPro: really?

Default avatar.png AmazingPro: :)

ProCoder03: Isn't it hyper text markup language :confused:

jacek: a mod would never lie

ProCoder03: :rolling_eyes:

jacek: is robo gonna do othello next?

Default avatar.png smallPPperson: #clash

Default avatar.png smallPPperson: https://www.codingame.com/clashofcode/clash/1970896b59f16818ffc793b5abe2761cb5e8a56

BlaiseEbuth: -_-

Default avatar.png smallPPperson: #clash

BlaiseEbuth: Stil not sure if you're a troll or not... :thinking:

jacek: thats the true art of trolling

AntiSquid: too late to kick that clash troll :/

Default avatar.png zaraptwillbebeaten: 🙋‍♀️

Default avatar.png Tarantulae: is there a font change option?

Default avatar.png Tarantulae: l+1 looks like garbage

Default avatar.png zaraptwillbebeaten: i think there is

Default avatar.png zaraptwillbebeaten: lemme se

Default avatar.png zaraptwillbebeaten: see*


Default avatar.png zaraptwillbebeaten: doesn't look like there is

Default avatar.png zaraptwillbebeaten: you could use an external editor

Default avatar.png Tarantulae: is there a suggestion place? either give a font change option or use an actual good font?

Default avatar.png Tarantulae: I'd love me a Consolas

jacek: try forums or discord

Uljahn: just use browser's Web Console to change the font [solved]

Default avatar.png JohnZhang3: Hi, anyone know after join a clash, how do I review the question and test case, is there any record of it?

Uljahn: JohnZhang3: you can try to find the clash with eulerschezahl.herokuapp.com/codingame/puzzles/

Default avatar.png JohnZhang3: @UIjahn, great thxChat Log (talk)

Default avatar.png JohnZhang3: I got the question statement, but seems it doesnt have the whole set of test cases.

Default avatar.png JohnZhang3: Oh, I got it, just click the hyperlink "view contribution on CodinGame" then redirect to this site and can see all cases

Default avatar.png JohnZhang3: thx again

Default avatar.png Maxim251: I did just understand what I did..

Default avatar.png Maxim251: http://chat.codingame.com/pastebin/969b3f71-d2e1-4804-a3dd-1e5906754cae

Default avatar.png Maxim251: I did use constructor to recive data from game input,

Default avatar.png Maxim251: but now I need delete all units and create them again to recive new input

Default avatar.png Ques: I find it difficult ..

Default avatar.png Maxim251: Problem I have now that I units cant remember nothing, like last position, because on each new game iteration units are deleted and created

Default avatar.png Maxim251: UGH....

Default avatar.png Maxim251: I spend so much time for that game. And I did such simple shool mistake

Default avatar.png Tarantulae: ugh, stupid solve clashes in under 3 minutes

Default avatar.png Tarantulae: how can i close all these old clash chat windows?

Astrobytes: Maxim251: Create a bunch of units/whatever objects on the heap at the start

Astrobytes: Update them every turn by ID or whatever

Default avatar.png Maxim251: Yes, now I see that.. But when I was busy with sorting all data structure, and how them sort, I was thinking that this approach is great idea. But when I start duing logic for a game, after that whole hard work, I notice that I did terrible move... And it is a hell pain in the ass to reorganise all that code

Default avatar.png Maxim251: https://tech.io/snippet/e8fVfvc

Default avatar.png Maxim251: This link show, how much work it cost me to just prepare input from a game

TimothyAlexisVass: I want to do a generic check in a 2d array in JavaScript...

TimothyAlexisVass: I haven't thought about this before, but maybe someone here has a quick answer, otherwise I'll look it up.

Default avatar.png Maxim251: Problem also wit the units is that they are constantly changing, that means I need track all existing units by the id, and create new one if new ID is not existing, and delete old units if theirs ID did not get displayed

TimothyAlexisVass: a=[1,2,3] i=a[4]

Default avatar.png Maxim251: Whole data input is mixed also with BUSH, TOWERS, HEROES, and WARIORS

MSmits: good evening

TimothyAlexisVass: http://chat.codingame.com/pastebin/a4a20240-231d-40aa-a7c9-6216ce6d310c

TimothyAlexisVass: How can I do something like this? (This won't work, gives reference error)

TimothyAlexisVass: a=[1,2,3] i=a[4]||0

Default avatar.png Maxim251: You try display 4 position in array of 3 elements

TimothyAlexisVass: Yeah I know

MSmits: Astrobytes finished rewriting my yavalath bot. Seems to solve much faster in lategame, but it doesnt have a good book yet, so it falls in early game. It's comparable to the other non-NN's though, like it was before

MSmits: so now i have no more excuse to put off the NN stuff

Default avatar.png marguera: go for a ternary thimoty

TimothyAlexisVass: I want something like this... a=[1,2,3] i=a[4]?a[4]:0

TimothyAlexisVass: If a[4] exists, i = a[4], otherwise i = 0...

Default avatar.png marguera: what language

Default avatar.png marguera: check for the length of a

TimothyAlexisVass: What I am actually wanting to do is this:

TimothyAlexisVass: a = [ [1,0], [1,0] ]

TimothyAlexisVass: for ( i in a ) {

TimothyAlexisVass: b = a[i-1][0] || 0 }

TimothyAlexisVass: so first time in the loop, b = 0 and second time, b = 1 (a[0][0])

TimothyAlexisVass: "If value exists in array, set to that, otherwise, set to 0"

Default avatar.png marguera: cant u check if i > 0?

Default avatar.png marguera: i > 0 ? a[i-1][0] : 0?

TimothyAlexisVass: I want to do this in 8 directions, so it becomes very complicated. Which is why I'm asking if someone knows a way to do a generic check.

Default avatar.png marguera: oh i see

Default avatar.png marguera: which language are you programming

Default avatar.png marguera: maybe some kind of inline catch

TimothyAlexisVass: JavaScript

Default avatar.png mohitdhule: you can use at() method


Default avatar.png mohitdhule: a = [ [1,0], [1,0] ] for ( i in a ) {

 b = a.at(i - 1).at(0) || 0

}

Default avatar.png marguera: isnt the second at is going to throw an error if the first at is not found?

Default avatar.png marguera: if u know what ur doing i would try catch this

Default avatar.png mohitdhule: we can do like this

Default avatar.png mohitdhule: http://chat.codingame.com/pastebin/549d8db5-6b0b-4351-b87c-5df35a801eed

TimothyAlexisVass: at works

TimothyAlexisVass: Thank you mohitdhule!

Default avatar.png marguera: nice solution, dont know what this ? does

Default avatar.png marguera: Optional chaining

TimothyAlexisVass: Hmm

TimothyAlexisVass: The JavaScript used here at CodinGame does not support array.at() :\

jacek: MSmits starting the NN eh

Default avatar.png omboyo: http://chat.codingame.com/pastebin/17e8e90d-6874-4b93-9bb7-2904cee5903d

Default avatar.png mohitdhule: http://chat.codingame.com/pastebin/1bfd2e0c-6c2c-4304-b0ad-a8dcff6f1d56

Default avatar.png Maxim251: I give UP with that game Botters of the Galaxy

jacek: mohitdhule rowi and xx are references to the same object. change something in xx and rowi will change. change something in rowi na xx will change

jacek: oO

Default avatar.png Maxim251: I learn how o use priority_queue because of that game. But menage all that data input is bit crasy

mrfacysus: How can I in C# use a for loop inside defining of a variable

for example: int sides = FOR LOOP

Default avatar.png Maxim251: That game for me is like Unicorn, unavaible every time I try to reach it

jacek: most games with complicated inputs are like that

Default avatar.png omboyo: how can you make a copy of the list and not have them connectet to eachother then? jacek

jacek: rowi = xx.copy()

Default avatar.png ooCastor: hellou

nulte: hello

jacek: another bt experiments?

nulte: nah

nulte: wont touch it anymore

Default avatar.png AmazingPro: easu

Default avatar.png AmazingPro: easu

Default avatar.png AmazingPro: easy

nulte: I dont think any eval can compete with NNs

Default avatar.png AmazingPro: EASY

nulte: stop spamming smazing

Default avatar.png AmazingPro: easy

nulte: spamming

Default avatar.png AmazingPro: it is a loop

nulte: break;

Default avatar.png AmazingPro: false:)

nulte: you cant really stop the break sorry

Default avatar.png AmazingPro: is that imposible really?

nulte: it breaks out of the loop yeah

nulte: Are you working on any multi jacek?

Default avatar.png AmazingPro: what is multi jacek?

nulte: idk

nulte: ok enough trolling

Default avatar.png AmazingPro: haha

jacek: nothing particular at the moment

Default avatar.png AmazingPro: u cool guys men

nulte: ill try to find a game for you and port it

jacek: make it NN friendly

Default avatar.png AmazingPro: what is NN?

nulte: neural network

Default avatar.png AmazingPro: its hard

nulte: Im not sure

nulte: I havent learned it yet

jacek: make NN that will do that for you

nulte: sounds simple

Default avatar.png DEIZ21: hi, i see certification section when i open a codingamer profil, but i have none, how can we get certifications?

nulte: from the quest map

nulte: You check the boxes you have completed

MSmits: jacek yeah I am unsure whether to do a yavalath NN or oware NN. I can use supervised learning for either one of them

MSmits: have a bit more data for oware now.

Sandokas: f this aneo puzzle :P

Default avatar.png maishams: hellooooo fellow amazonians

Default avatar.png maishams: starting monday v excites

Default avatar.png maishams: any tips?

mrfacysus: its still saturnday

Default avatar.png maishams: wait

Default avatar.png maishams: this isnt

Default avatar.png maishams: the amazon chat

Default avatar.png maishams: fuck

Default avatar.png Mr.Right123: Do you guys know EA's assignment

Default avatar.png Mr.Right123: it's on this website

codingame/evalute

Default avatar.png Mr.Right123: is there any time limit?

nulte: im not sure

nulte: I would solve cg official puzzles to get how the platform works

nulte: the cg for work is similar I think

Default avatar.png Mr.Right123: Does that have a timing?

nulte: no

Default avatar.png Mr.Right123: thanks

nulte: The easy section

nulte: cg official puzzles should have no owner I think

gilufin: why everytime I press control the editor get smaller

Uljahn: ctrl + scroll = zooming

gilufin: but sometimes it's happen without scrolling

mehdilh: https://www.codingame.com/work/find-developers/it-recruitment-market/feed/ there is a problem with this page

gilufin: thanks

mehdilh: :thumbsup:

gilufin: what is this page I can't open it

mehdilh: it contains html code

mehdilh: the page isn't rendered or something

mehdilh: found it on google

Default avatar.png Jasher_Yen: hi

Default avatar.png Jasher_Yen: hi

Default avatar.png Tarantulae: hi