Husoski: C26_1 - Did you get a working answer to your float*integer == integer question this afternoon?
Husoski: C26_1 What I was going to suggest is continued fractions, but it depends on the exact problem statement. Floating binary can be tricky. CF approximations will generally work though, in O(log(denominator)) time.'
Husoski: That's not necessarily a problem, but division and multiplication, and decimal conversions often are. Try print(100 * 0.07) to see what I mean.
Uljahn: that's how if/else if/else work
Uljahn: the first condition is always met in your case
Uljahn: positive vertical speed means ascending
andres-sumihe: apaan ini cok
derjack: huh? counting tic tac toe puzzle of the week
Nachosauce: Is there a built in way to deep copy a collection in C#? I can't find anything on google but sometimes thins hide pretty good :)
Frankich: AFAIK, there isn't
Killer_Kat: Any idea when we might be able to use python 3.10? I am looking forward to using the new Switch statements
Uljahn: Killer_Kat: https://www.codingame.com/forum/t/languages-update/1574/
Killer_Kat: I'm sorry I don't understand the question. Could you clarify?
Killer_Kat: Well, I am not a moderator. Just a Script Kitty, however I think you only need more tests if they do something significantly different than the other tests, so that the program is able to adapt to different circumstances.
Uljahn: yeah, each test should be aimed at some corner case i gues
Killer_Kat: At least I think that's what you are asking, I am guessing English is not your first language?
Killer_Kat: Estas bien amigo
Killer_Kat: ingles es muy difícil
Nachosauce: Estamos pasandolo muy bien :) We're having a good time!
Killer_Kat: Tienes razón
Uljahn: please note this channel is English-only, thanks.
Killer_Kat: Ah sorry m8
Uljahn: there are channels for some other languages though
Killer_Kat: Neat, I'll have to check that out
Killer_Kat: Do you speak Russian?
Killer_Kat: if so how would you say "Script Kitty" I ask because you are also a cat
6opoDuJIo: There is many ways to say that. For instance, Скриптовая кошечка
Killer_Kat: Interesting, it still sounds similar to the English
Killer_Kat: Learning about programing languages and normal languages both has certainly been interesting. Perhaps this is a strange question but do IDE's in different languages still use English for syntax?
Killer_Kat: That makes sense
Killer_Kat: I cant imagine what it would be like to live somewhere outside of the states and to have all of the technology and media all coming from the US. Although I guess it probably feels like how some people here see Japan lol
Killer_Kat: Do other countries also have weebs?
Uljahn: also English is almost always the first foreign language you learn at school
Killer_Kat: I'm sad I missed out on going to school :(
@Killer_Kat, about the word
Killer_Kat: I'm in college now but my school has no language classes.
Killer_Kat: Its a thing here in the states
Killer_Kat: A small amount anyway
Killer_Kat: Its funny because schools here do sometimes teach spanish
Killer_Kat: yeah I can read pretty well but I cant keep up in conversations lol
Killer_Kat: I need to practice more but I live in a remote area, literally in the woods. So I dont often talk with people
therealbeef: programming languages are not necessarily in english because they come from US/UK. Python for example was invented in by a Dutch guy. it just made sense to use a simple well known natural language for the keywords
Killer_Kat: Isnt python named after an english actors group?
therealbeef: yeah, the inventor said he was in a funny mood and named it after monty python :)
Killer_Kat: damn, it feels so fresh and new and yet it is older than I am
Killer_Kat: I wish I was younger
Killer_Kat: I have wasted so much of my life
Killer_Kat: Sadly I think A lot of people can. I still have not graduated college because I have depression and I couldnt get things done so I would fail classes, its taken me years and now I am almost done on a 2 year degree I should have finished 5 years ago
Killer_Kat: I have to head to sleep, but I wish you all a goodnight
Fasader: depends on the context. could be biography or biology or biological or something completely different
Xylight: if you are coding in java or js clash of code is almost inpossible... languages like python3 wins everytime
5DN1L: unless you score higher than everyone else :P
TeslaRam: almost impossible doesn't mean impossible, keep going, once u will win regularly
Xylight: but ther code is always shorter that is not even possible in js
5DN1L: sometimes all your opponents can't score 100%
TeslaRam: shortest mode isnt the only mode
5DN1L: but you score 100%
5DN1L: then you still win even if your code is longest
Xylight: but less code more speed
TeslaRam: try to learn another lannguage, for example if COC is easy, i try to do it in another language (mostly python3), u have 15 minutes, u can watch tutorial and still have time to write code in it
Xylight: i often get 100% its just the problem of speed I need in java 5-10 lines and they can do it in 1-2 so i gonna learn p3 to have chances
5DN1L: Getting faster won't help you if your pod gets outside the screen?
5DN1L: 145Fps you're required to print your target coordinates and your thrust every turn, so if you print the coordinates within the bounds, you won't get outside the screen. and you can print a higher value of thrust to accelerate your pod
Mrs.GloriaZindlebocker: this is a US company, help center is closed today for the holiday
5DN1L: 145Fps do what
5DN1L: that particular line of code should be somewhere near the end of the code
5DN1L: yes. so you have to adjust the values of those variables before they're printed
5DN1L: next_checkpoint_x and next_checkpoint_y should not get you out of bounds though
5DN1L: are you in wood 2 league?
Mrs.GloriaZindlebocker: your frame rate is too high
5DN1L: 145Fps, did you do as the hint suggested? adjust your thrust based on angle?
5DN1L: so now you got a new command
5DN1L: you can use it only once
5DN1L: print it instead of thrust for one turn
darkhorse64: nesnes112: your code does not handle the case where you have -5 and 5 as inputs and you must select 5
5DN1L: 145Fps, you modify the code which determines the thrust so that thrust == "BOOST" for one turn
5DN1L: probably the first turn is the best
darkhorse64: It will always return the temperature with the highest absolute value which is not the requirement
5DN1L: Currently you determine your thrust with reference to checkpoint angle, right?
5DN1L: Now, your task is to modify your code, to keep track of whether you have used BOOST before
5DN1L: if not, set thrust to equal to "BOOST"
YS_Yousef: hello! can u see my contribute?
5DN1L: otherwise, determine thrust the same as before, 145Fps
YS_Yousef: i want to get ur fead back
YS_Yousef: to see if it is good or not
5DN1L: YS_Yousef Yes we can, now please patiently wait
YS_Yousef: 5DN1L ok thx!
darkhorse64: Given your code sample, you surely do. Just think how you can select 5 over -5 (which test to apply) ?
Mrs.GloriaZindlebocker: YS_Yousef, I have bad news for you
Mrs.GloriaZindlebocker: It isn't good
YS_Yousef: i like it
YS_Yousef: because it is short
YS_Yousef: and ez to understand
YS_Yousef: not like some contribute
YS_Yousef: any ways it is my first one
darkhorse64: Trivial puzzles are mercilessly rejected
YS_Yousef: and that was ur openion
YS_Yousef: ok i will make another one good than this
5DN1L: first do you understand what i mean?
5DN1L: Your code currently sets thrust to 0 or 100 depending on the angle, right?
5DN1L: Now on top of that you have to add a condition: if you have never used boost before, thrust = "BOOST"
5DN1L: put it where you determine thrust
5DN1L: does your code work?
5DN1L: because BOOST gives your pod a boost
5DN1L: You're welcome
YS_Yousef: hi guys
YS_Yousef: i made a new one
YS_Yousef: and it is good
YS_Yousef: (for me!)
Big_Code: Heya folks, would anyone have nudge on what to look into for ASCII Art? When I tried searching, most of my results were showing how to convert actual photos into ASCII art, would it be a similar process to complete the puzzle? Or is it much simpler
5DN1L: Big_Code that puzzle is more about converting characters to their ASCII values and picking up the relevant portion of the corresponding representation from lists
5DN1L: 145Fps Study the relevant forum topic to get some hints on how to improve your pod: https://forum.codingame.com/t/mad-pod-racing-puzzle-discussion/1833
5DN1L: You may need some trigonometry and/or simulation eventually
YS_Yousef: 5DN1L I know that you are busy but I need ur feed back in my "new" contribute the mario pyramids and bye :)
5DN1L: Indeed I'm still very busy... There are many contributions pending approval and feedback, so please patiently wait, thanks. YS_Yousef
5DN1L: Big_Code Exactly
5DN1L: You're welcome :)
darkhorse64: nesnes112: print both values you are testing and check whether your test gives the expected answer. If not, fix the test. You must select the largest absolute value and in case of equality, the biggest one
Assasint: Hello Guys
Uljahn: guess it should be the smallest absolute value (closest to zero)
Big_Code: A lot of my searches are saying to use the module 'pyfiglet' but I'm getting a module not found error. 5DN1L is there a module you would recommend as a hint? I'm not sure where to start since most of my results include pyfiglet
5DN1L: no module needed
darkhorse64: You are right, Uljahn. You must select the smallest absolute value and in case of equality, the biggest one
Big_Code: This is driving me insane lmao, I just don't understand the goal of this puzzle. So I can generate the ASCII Value of 't', but how in the world am I supposed to pull an E out of the supplied input from row? Every single search variation I've tried leads me to either pyfiglet, or someone just straight printing ASCII art. Do I have to hardcode the variable E = ###'\n'.. etc. ?
5DN1L: don't search "ascii art" as that's not the relevant keyword here
5DN1L: search what you want to achieve
5DN1L: "ascii art" is just how the puzzle is "packaged"
5DN1L: it doesn't describe what is required at all
5DN1L: i've told you how to solve it
5DN1L: search by looking at that direction
5DN1L: e.g. how to convert characters to their ascii values
5DN1L: how to use substrings
5DN1L: how to use lists
5DN1L: those types of stuff
5DN1L: it could be described as "ascii art" or whatever you want really
5DN1L: i could describe it as "a magnified display of characters"
5DN1L: i could describe it as "an ugly way to show characters"
5DN1L: i could describe it a thousand ways
5DN1L: but whatever way of description, it's irrelevant to how you SOLVE the puzzle
5DN1L: told you a few minutes ago
5DN1L: you need lists
5DN1L: you need substrings
5DN1L: and way much earlier
5DN1L: you've already repeated my approach in your own words
5DN1L: read that again
5DN1L: and hint: ascii value can be converted to corresponding position of the required substrings easily
5DN1L: yay popcorn
**BlaiseEbuth grab popcorn in darkhorse64 :popcorn:
**darkhorse64 has picked a large one for binge watching multiple episodes tonight
Wontonimo: hey darkhorse64 , nice to see you oline
Wontonimo: i remember when i first joined you were on a lot. oh, i miss those days way back in 2020
**Smelty plays some coc
Smelty: *notices ranking is 669
darkhorse64: hey Wontonimo, I am still often connected but I do less bot programming than before.
jacek: oh my
YS_Yousef: I made a contribute about Mario here: https://www.codingame.com/contribute/view/7993e5d9a904274457acc73b61e5ce40b070 may you check it? and sorry if the roles don't allow me to put links in world chat I don't know accauly :/
YS_Yousef: I hope you will love it have a good night
ajsgamedev: I'm stuck in wood 1 in Mad Pod Racing, anyone have tips for getting to bronze.
Nachosauce: Get familiar with trig :D
ajsgamedev: anything else?
Nachosauce: Probably don't need that for bronze though. Give us a quick rundown of what your current solution is doing?
Uljahn: share a replay
Nachosauce: Oooo I didn't know you could do that. That would be nifty as heck
jacek: the code should always be 7 bit, add zeroes if needed
5DN1L: "7 bits" should be in bold red large font size lol Lots of people get stuck because of that
5DN1L: heehee many approaches to this puzzle really
5DN1L: keep going! SMOKEz8z8
5DN1L: no worries, learn stuff step by step
5DN1L: you can't expect to learn everything at one go
5DN1L: you're welcome :)
Quidome: rank 53 now, this is as far as I can get it with my own heuristic, I am not getting your snake heuristic to work btw
Quidome: 7 ply dfs with iterative deepening
Quidome: That was fun :)
5DN1L: SMOKEz8z8 Not much to add really, just wonder if you know you can use "+=" if you add a substring to the end (but not to the front)?
if c == "1" != b:
there is no and or or in between?
5DN1L: try this:
5DN1L: c="1"; b="4"
5DN1L: oops i mean 0 instead of 4
5DN1L: c=="1"!=b -> True
5DN1L: c="0"; b="1"
5DN1L: c=="1"!=b -> False
5DN1L: something to do with operator precedence...
ajsgamedev: thurst non stop basically... got lucky and was in the top 100.
5DN1L: i don't even want to go into that, SMOKEz8z8 lol
5DN1L: if you don't understand it now, never mind. brackets are your good friends (to make expressions clearer and less error-prone)
5DN1L: ok, ttyl
Jay_minecraft: Ayo it's your boi
Jay_minecraft: Whats up ya'll?
5DN1L: it's european nightime
Apollo10: https://www.codingame.com/replay/603320736 Wow, and my percents show I still win. (Still need to work out why it's not attacking still)
Nachosauce: It has happened. I finally did the thing. Legend league in pod racing :D
5DN1L: :thumbsup: :D
Jay_minecraft: Dose anyone know what to do on the Mad pod racing level?
Nachosauce: Depends on what you mean
Jay_minecraft: I don't know the codes to use
Nachosauce: Expected output is "x y thrust", all integers. The description lays out how the input is coming in
Jay_minecraft: This is all i have...
Jay_minecraft: # Edit this line to output the target position
# and thrust (0 <= thrust <= 100) # i.e.: "x y thrust" print(str(next_checkpoint_y) + " " + str(next_checkpoint_y) + " 50")
5DN1L: do you know coordinates?
5DN1L: then it's difficult...
jacek: youre printing y y
5DN1L: we can tell him the answer, but he may not understand what that means :shrug:
5DN1L: not an age issue
5DN1L: it's an issue of how much maths you've learned
Jay_minecraft: I know
Jay_minecraft: I have math first thing in the in the morning.
Jay_minecraft: For school
5DN1L: if you really want to solve the puzzle, search and read about basics of coordinate geometry
Nachosauce: In this case, x is left/right, y is up/down on the screen.
Jay_minecraft: I might try googling the answer
Mrs.GloriaZindlebocker: it may also be another case of fetal alcohol syndrome. is your upper lip unusually small?
Nachosauce: If you do that, don't copy/paste :) try to see what it's doing and re-write it for practice.
Jay_minecraft: Mrs.Gloria what?
5DN1L: never mind that
Wontonimo: she likes to be called Westicals
jacek: try print(str(next_checkpoint_x) + " " + str(next_checkpoint_y) + " 50")
Nachosauce: Crush me real good. You can do it! I believe in you
Wontonimo: Nicora's gonna crush on you Nachosauce
5DN1L: have a crush on him? nooooo
Wontonimo: you'll be crushed nacho sauce
Nachosauce: It is what it is
Wontonimo: true dat
Jay_minecraft: This is hard lol
Wontonimo: which puzzle ?
Jay_minecraft: Mad pod
5DN1L: and he hasn't learned anything about coordinates yet
Jay_minecraft: As always
Nachosauce: Jumping in the deep end is always a fun way to learn :) Keep poking away and googling and asking questions (after googling)
Jay_minecraft: My guy i am always so tired life sucks when you have to wake up at 6:00 in the morning
Wontonimo: ha. what level are you IRL Jay?
Wontonimo: have you finished the IRL tutorial yet?
Jay_minecraft: Then walk for 15 minutes
Nachosauce: I feel you my dude. I get up at 4:30, exercise, go to work, come home, take care of my daughter, sleep. But gotta squeeze that codingame in where you can :grin:
Jay_minecraft: Y'all going to laugh at me bro
5DN1L: i'm not
jacek: 1 2 7 3 down to rockefeller street ~
Wontonimo: to understand you IRL level watch https://www.youtube.com/watch?v=gWIi6Pytde8
Apollo10: https://www.codingame.com/replay/603320774 (All because I don't have a route to him, and I target anything that can produce)
Jay_minecraft: bruh what is this video??
Nachosauce: Jay_minecraft don't feel bad, it's easier to learn when you're young so get on it now, get lots of practice! keep at it. It's worth it
Mrs.GloriaZindlebocker: Is that age appropriate for an 11yo?
Wontonimo: :( oops
Jay_minecraft: i am 12
Apollo10: Ghost in the cell, Cyborg uprising (one of the other games on codingame)
Wontonimo: oh, that's fine then
Jay_minecraft: Not 11
Wontonimo: why you stirring up trouble Gloria ?
Mrs.GloriaZindlebocker: I thought he was 11.5... no prob
Wontonimo: what language are you using jay?
Jay_minecraft: No trouble
Wontonimo: (plz don't say english)
Wontonimo: I'll send you some links to some python stuff
jacek: he's gonna send you his python :scream:
Wontonimo: but i'll share this link with everyone https://www.hackinscience.org/exercises/
Jay_minecraft: Why not english?
Wontonimo: ./kickhard jacek
Apollo10: :scream_cat: Ssss.
**5DN1L puts jacek to bed to let him fantasize about pythons on his own
Wontonimo: okay, that's crossed some weird line for me lol. I'm gonna step away for a bit and try to clear my head.
jacek: i broke a mod, Automaton2000
Automaton2000: i'm not sure what would be the most popular
5DN1L: take care Wontonimo
Wontonimo: lol jacek. see ya'll soon
Jay_minecraft: 8 minutes until my school ends lol
Wontonimo: he didn't finish the IRL tutorial
Wontonimo: there is a description and write up
Wontonimo: and a preview
jacek: there is almost nothing about the upcoming spring challenge
Wontonimo: the old spring challenges
Wontonimo: there is
Nachosauce: hello again friends
Wontonimo: break out the good stuff, i'm here
Wontonimo: what are you working on nacho?
struct: what have you been working on Wontonimo?
Wontonimo: to be honest, i've wasted 2 days playing https://imgreghenry.github.io/A-Mazing-Idle/ , following my WFC getting final approval, and showing people my mining prototype game https://panchishin.github.io/rogue/maze.html
Nachosauce: Working on my pod racing
Nachosauce: I see idle. I'm down.
Wontonimo: the the idle game called a-mazing-idle, get to having 1 bot upgrade then paste this into the debugger and then just let it run for 10 hours by itself and it will be mostly done
Wontonimo: what are you up to struct ?
struct: first looks like an idle game
struct: ups too late :p
Thorcode: I can back to code
struct: Wontonimo im playing with sfml and imgui
struct: i never used any of them
Nachosauce: I love me a good idle game. My favorite is IdleRaiders and the sequel
Wontonimo: what the heck is sfml and imgui?
struct: im bad explaining stuff
struct: so i have to link it sorry :p
Wontonimo: "It outputs optimized vertex buffers"
Wontonimo: nice. i've just gotten over the hump of learning shaders and made a few lately
Wontonimo: and you can use your mouse with this one https://www.shadertoy.com/view/sdXcDr
Wontonimo: it was very rewarding being able to write them all from scratchh
Wontonimo: have you done much with shaders struct?
struct: i havent used much graphical stuff
Wontonimo: i've certainly shied away
Wontonimo: hey Nachosauce, how far are you in mad pod racing? I happen to know some tricks if you want some help
Wontonimo: hello duck_man
Nachosauce: Rank 335
struct: Wontonimo i would not put the bot to auto move after i complete the level
struct: on the idle game
Nachosauce: score still calculating though
Wontonimo: i what league Nachosauce ?
struct: i have to press a key just to disable it when i go up a level
Wontonimo: ah, then you are ahead of me. I was once 75... but we won't talk abouut that
Thorcode: Nacho sauce can you help me
Nachosauce: I can try :D
struct: what search do you use Nachosauce?
Wontonimo: I'm curious also
Nachosauce: I simulate some random possibilities, and tweak them measuring how effective they are until I'm about to timeout, then spit out the best of the bunch. I don't know all the fancy termonology
Wontonimo: so, kinda liike a genetic algorithm, in that there is mutation in the population
Nachosauce: ohh I like it. Makes me sound fancy
Wontonimo: and selection
Wontonimo: do you know about GA (genetic algorithm) search?
Nachosauce: Not really, though it sounds like my solution is pretty darn tootin similar
Wontonimo: Well you can see a quick demo here https://https//www.youtube.com/watch?v=kYFz03Cg3-A and see some source here github.com/panchishin/geneticalgorithm
Wontonimo: hmm, that didn't work
Wontonimo: video here https://www.youtube.com/watch?v=kYFz03Cg3-A
Wontonimo: code here https://github.com/panchishin/geneticalgorithm
Wontonimo: how did you come up with your solution Nachosauce ?
struct: 1 day ill learn ga
Nachosauce: started with me doing shitty "simulations" (adding my velocity to my position) a few times to see if I'd hit the checkpoint in the next few turns, and if so target the next checkpoint instead. Then that didn't get me to legend so I threw that out and went to the drawing board with a lot of caffeine and undone chores.
Wontonimo: nice story
Mrs.GloriaZindlebocker: is this going where I think it is?
Wontonimo: what data structure do you store that is "tweak"ed ?
Nachosauce: The first thing was enough to almost get me to legend though. Usually landed in top 10 gold lol. Spent a lot of time trying to make little tweaks thinking "oh I'll re-write everything after I get legend" and yeah. Days of tweaks later, I gave up.
Mrs.GloriaZindlebocker: leave him alone! he's a typical brilliant american who just derived the algorithm from first principles!
Wontonimo: I'm having a nice conversation and you taint it with "leave him alone" ? wth Westicles Gloria ?
Wontonimo: that's really cool Nachosauce
Mrs.GloriaZindlebocker: oh, I thought you were challenging him on his story
Nachosauce: I have a set number of possible solutions (a few turns worth of viable outputs) that start randomized, simulate wheresabouts that should end me up, give it a score, 'randomly' tweak rotation, thrust etc, simulate again. so on until I'm close to timeout and use the highest scoring one
Wontonimo: do you use a gaussian random tweak?
Nachosauce: I'd have to google what that means, so I'll go with a solid maybe while I go google :joy:
Wontonimo: haha.. okay so 1 6sided dice has 1/6th chance for each outcome.
Nachosauce: ah, the tweaks are weighted a bit. not even chances.
Wontonimo: 2 6sided dice rolled and added together, if you look at the chance of each total it is 1/36 for a total of 2 , 2/36 for a total of 3 , etc
Wontonimo: oh ...
Wontonimo: a couple things that really helped my selection Nachosauce is that i first start with a preset of values that represents straight ahead at full power, then compare it to preset values of a hard left
Wontonimo: then a hard right
Wontonimo: then random
Wontonimo: the best one then becomes the one that i tweak
Wontonimo: it helped a lot
Nachosauce: Oh I like that
Wontonimo: well, i said it was a couple of things, but it's just one
Nachosauce: You could totally stretch that out into 3 if you wanted
Wontonimo: yeah, lets pretend
Wontonimo: i've also heard people priming the values with a heuristic, like -3v, then evolving that
Wontonimo: so you could add that as the 5th thing. straight, left, right, heuristic, random, pick best, then tweak
Wontonimo: how do you search the opponents response to your action?
Mrs.GloriaZindlebocker: nacho, as your appointed lawyer I advise you not to answer that
Nachosauce: As an american, it is my duty to go against my lawyers advice and make a fool of myself
Nachosauce: Honestly I just look at their position/velocity and try to guesstimate if we're likely to collide. If so, try to calculate the collision
Wontonimo: oh, so the opponent is pure heuristic
Wontonimo: and doesn't use the tweaking code you have
Nachosauce: yeah I don't do anything fancy with their pods. pretty much just checking for likely collisions and using their location to help determine the score of a possible solution
Wontonimo: I use the same code for the opponent. The opponent first gets evolved using GA for 15% of the time budget, then my pods get the remaining 85% to counter
Wontonimo: my search depth is 10 frames
Nachosauce: That's probably much better than what I have, but way more work than I'm willing to do :joy: My goal was legend, now I'm just poking for funsies
Wontonimo: that's fantastic that you made it to legend!
struct: you can always add a blocker
struct: it will boost your rank to top 100 if done successfully
Wontonimo: I actually don't have code specifically for the "runner" or "blocker"
struct: not even your eval?
Wontonimo: wait ... i'm wrong :(
Wontonimo: there are a few lines.
Wontonimo: yeah, just in the eval
Wontonimo: why would you want to use GA struct?
struct: well its something i dont know yet
Thorcode: I think I need to get to legend in mad, gold suck now
Nachosauce: youu caan dooo iiiit
Thorcode: but I am lazy
Wontonimo: here is a simple way to get into it quick. make a list of 10 random points on a 100x100 grid. try to solve the traveling salesmen problem. Initially your salesmen will travel from the first point on the list to the last in order, in a straight line
Wontonimo: the "fitness" function is the total distance traveled.
Wontonimo: initialize the "population" of 100 salesmen by shuffling the order of the points for each salesmen
Wontonimo: define a mutation as something like, the salesmen will swap the order of their of their points at random
Mrs.GloriaZindlebocker: that gets thor into legend?
Wontonimo: define a crossover as two salesmen get together, use the first half of the values from one of the salesmen, and remove those falues from the second, and append them
Wontonimo: then order all the salesmen by fitness (lowest distance first)
Thorcode: I need to start with greedy algo first to solve sales man problem
Wontonimo: throw out all but the first 100, and repeat
Wontonimo: when you mutate, it makes a new salesmen (the mutant), and when you crossover it creates a new salesmen
Mrs.GloriaZindlebocker: thor, I think he means you sell one of your pods
Wontonimo: that's all there is to it really
Thorcode: ah ok
Thorcode: I sold one of my pod
Thorcode: kicked him from the race
Wontonimo: here is an example of "solving" the traveling salesmen problem with GA https://github.com/panchishin/geneticalgorithm/blob/master/examples/travelingSalesmen.js
Thorcode: you know js?
Thorcode: yep probably you code this
Wontonimo: yeah, that's my code
Wontonimo: i grew it myself from a wee little seed. planted it, watered it, protected it from weasels
Thorcode: My target is winning bot in mad now
struct: some progress https://i.imgur.com/Ga2Sxo9.gif
struct: Didnt have too much time today
Wontonimo: okay, a way easier problem is to guess a few numbers
Wontonimo: have a list of 5 numbers in an array.
Wontonimo: ... anyway ...
Mrs.GloriaZindlebocker: I don't think struct knew that TSP stuff was for him
struct: was it for me Wontonimo?
struct: im sorry
Wontonimo: yeah, it was
Wontonimo: that's okay
struct: ill read it now
Wontonimo: it's okay buddy
Wontonimo: oj? I prefer tea
struct: whats oj?
Wontonimo: a drink
Wontonimo: Orange Juice
Wontonimo: it comes from fruit i hear
zophia2222: okkkkkk ojjjjj
Thorcode: I prefer coffeee
Thorcode: can someone help me the drifting part in mad?
Nachosauce: The way I had it which isn't too bad to implement and almost got me to legend before my re-write, is I looped adding my velocity to my position ~5 times checking my distance to the checkpoint at each stage. If I got within a certain threshold, I'd switch my target to the next checkpoint and slow down based on the angle to the next checkpoint. Not super accurate, but was accurate enough to help a ton
Nachosauce: Also, goodnight everyone. love ya'll
Thorcode: player in mad are better now
Wontonimo: gn Nachosauce
Flaise: Hey guys
Wontonimo: hey Flaise
Flaise: I don't understand. Why do people keep following me out of the blue even when I don't log in? :P
Thorcode: I dunno
therealbeef: to invite you to clashes?
Wontonimo: maybe they like your white fur coat
Wontonimo: some weirdo just followed me
Flaise: I saw the notification and was like "two can play this game"
C26_1: Umm, being followed is very great
C26_1: And somehow I eat bread with orange salt
C26_1: Does eating like that being weird?
C26_1: @zophia2222, hi
C26_1: Um, how to make my contribution more recognized?
C26_1: Maybe I'll just paste some links here and wait for some comments
Mrs.GloriaZindlebocker: the crowd that used to push through clash contribs has pretty much left
C26_1: I've delete that
C26_1: Cuz it's too horrible to code solution
C26_1: @zophia2222, I don't think you could spam here
C26_1: I have see something weird here
zophia2222: shut up
C26_1: I'm gonna change the conditions in my contri bc for the same input in an array it'll output the same
Flaise: Really? How do you conclude jdhygryewe? I didn't know jdhygryewe came with any particular signals to make into the contrary and minutes.
zophia2222: plz shush
Flaise: I really enjoyed jdhygryewe when it first came out but it didn't age well. I saw it again last week and could only think that, well... technology has come a long way.
Wontonimo: it may have come a long way but not enough to skip refrigeration of jdhygryewe
Flaise: A wise man is on record saying several times over his career: To jdhygryewe... or not to jdhygryewe.
zophia2222: SHUT UP ABOUT THT THIS FRETALK KNOW!???
Wontonimo: okay, okay, it was all fun and games. lets settle down
Wontonimo: back to talking about code
Flaise: Can anyone help me debug my puzzle code? I got it to compile just fine but it's throwing java.lang.package.stuff.jdhygryewe;
Mrs.GloriaZindlebocker: great, now you've got zophia making autistic honking noises
Wontonimo: hmm Flaise, let's move on
zophia2222: OH MY GOD SHUTR UP ABOUT ME!!!!!
Thorcode: ? who talk about you
zophia2222: mind ur own fudging buisness
zophia2222: Mrs Gloria craphead
Wontonimo: okay, i get it. there is some heat here. everyone cool it and let's move on. I'll help someone take a breather with a short time out if they need it
Thorcode: chill out
Wontonimo: zophia2222, you have anything to say about your language?
zophia2222: ok I'm talking to him right now!!!!
Wontonimo: moving on
Wontonimo: virus spreading is the name of the contrib i'm looking at atm https://www.codingame.com/contribute/view/7944344c9998266f15b90be114500a11c94d
Wontonimo: you want to tell us a bit about it C26_1 ?
Wontonimo: okay, zophia2222, take a little break and cool down
zophia2222: (╯°□°）╯︵ ┻━┻
C26_1: Says we have this block of input
C26_1: 3 2 3 8 10 0 5 3 4
C26_1: The first line is always some parameters for the next line
C26_1: In the first line: - The first parameter: Width - The second parameter: Height - The third parameter: Virus' strength
C26_1: 2d array, if you want
C26_1: 0 is the special elements, where it represents infected perople
C26_1: Each input will always at least have more than one zero-element
Wontonimo: well, you don't have any working code for it, so probably the first step is to open it in test mode and try coding a solution
C26_1: My sol is tried to change the 0 element
C26_1: But aafter hours of code, I give up cuz full of bugs
Wontonimo: well, then probalby just hold off until you up your skills.
Wontonimo: try some other puzzles
C26_1: And wait for me
Wontonimo: i'll wait for you :sunset:
Wontonimo: wait? no sunset emoji?
Mrs.GloriaZindlebocker: i think he asked us already to code a solution for it
Flaise: What a strange conversation this has been.
Wontonimo: so weird
zophia2222: how do I kick?
Thorcode: mod kick
Wontonimo: mortal can't
zophia2222: why do I feel rejectted
Thorcode: kick can only use in world
Thorcode: and by mod
Thorcode: I wish private can do that
C26_1: Oh, I'm come back
Wontonimo: you can just ignore private chat. just close it.
Flaise: ...I think that auto-pastebin threshold is a bit small but ok.
Flaise: I'll just send more than one message next time.
Wontonimo: rants look better in pastebin
Wontonimo: old school font
Thorcode: yeah my rank in mad is 547 in gold now
Wontonimo: that was random Thorcode
Thorcode: I lose alot
Thorcode: probably system error
C26_1: He means he was talking to Flaise and somehow Thorcode talks something random about Mad Pod Racing
Mrs.GloriaZindlebocker: I think royale is coming after me in samegame
Flaise: Dunno why I'm sitting at CodinGame right now. I'm not writing code. I haven't written code in so long. My motivation to do anything is so low.
Wontonimo: what is this? Gloria is participating in an opti !?!
Thorcode: yeah I stop writing code for a week
Wontonimo: yeah same here
Wontonimo: it's like an AA meeting or coders who don't code
Flaise: Pff. You guys probably have jobs though.
Thorcode: how can a thirteen boys have job
Flaise: school is a job...
Thorcode: I'm learning online
Thorcode: if i have this input 1+2 and outputt is 3 how can I code?
zophia2222: I got a book about coding
zophia2222: it's large
zophia2222: really in irl???
zophia2222: in real life
Thorcode: chill ou
Thorcode: I'm a noob python coder
Thorcode: can you guy help me
C26_1: I always think var as box
Wontonimo: practice on https://clemg.github.io/pythongolfer/ or chat here #python
Wontonimo: otherwise please stop spamming world chat
C26_1: @KOKKONUT, variable
Thorcode: how can we practice on this site https://clemg.github.io/pythongolfer/
Wontonimo: sorry, wrong link here https://www.hackinscience.org/exercises/
Flaise: How can a python be a golfer? It doesn't have any hands to grip the club. That's just silly.
C26_1: ok, back to the conversation
C26_1: I always think variable as box
C26_1: it contains something
Thorcode: var is just a name contain something
Thorcode: like b=1
Thorcode: so you print out b
Thorcode: you got 1
C26_1: but for some other programming lang
C26_1: var is like an empty box that need to be waited to put in by something
zophia2222: imagine dude coding is weird but funyways!
C26_1: so like int b
zophia2222: fun anyways
C26_1: it can means:
Make a box named b and it can only hold integer
Thorcode: peaceful chat now
Flaise: I'm so demotivated...
Maybe I should find something motivating to do.
Thorcode: try leetcode bro
Thorcode: not me
Wontonimo: use youtube KOKKONUT. search "the coding train". he will teach you