Chat:World/2022-01-03
**Wontonimo lurking
derjack: :upside_down:
Dren: no this is Patrick,
Wardunc1: can i get a kraby patty
____Z_X_C____: helpppp anyone help me shorten this?
____Z_X_C____: http://chat.codingame.com/pastebin/10387f35-b5e8-45ae-9d69-6ffdc05fcf3f
____Z_X_C____: ???????????
Mortis_666: exec(bytes('浩潰瑲洠瑡獡洠渊愬椽瑮椨灮瑵⤨Ⱙ嵛昊牯椠椠慲杮⡥⥮愺愮灰湥⡤湩⡴湩異⡴⤩潳瑲⤨瀊楲瑮洨昮潬牯洨献牱⡴孡崰愪ⵛ崱⤩晩渠㴡‰汥敳〠 ','u16')[2:])
Mortis_666: :grimacing:
____Z_X_C____: i did it
____Z_X_C____: aa i never will know how to dod this
____Z_X_C____: l=[int(input()) for i in range(int(input()))]
WhaIe: You can write a=eval('int(input()),'*n) to get the list of numbers. Or you can do this to make things even shorter: n,a=map(int,open(0))
Mortis_666: u dont know list comp?
WhaIe: n,*a=
____Z_X_C____: thanks
____Z_X_C____: whal
____Z_X_C____: e
WhaIe: no problem :)
nitekat: a=sorted([int(input())for _ in'.'*int(input())]) print(int((a[0]*a[-1])**.5)if a else 0)
nitekat: oh I'm too late
r_lee27: i can't complete first mission
r_lee27: print(str(next_checkpoint_y) + " " + str(next_checkpoint_y) + " 50")
r_lee27: print(str(next_checkpoint_y) + "20 " + str(next_checkpoint_y) + " 50")
5DN1L: why 20?
5DN1L: but why y-coordinate + 20 + y-coordinate + 50?
5DN1L: that's what you wrote
Uljahn: just print something and hope it works :smirk:
Uljahn: you have to print three space separated integers though
r_lee27: http://chat.codingame.com/pastebin/32d66155-26d7-4315-851c-b99673f7eb5b
5DN1L: What do you not understand?
5DN1L: read the statement first
5DN1L: it tells you the goal, what inputs are given to you, and what outputs are expected from you
5DN1L: and if you don't have the concept of coordinates, look that up as well
Nyakkaraj: how can i read from the standard input and make an array from it(haskell)?
nesnes112: Hi everyone what is the equivalent of this python structure in javascript
5DN1L: https://www.google.com/search?q=if%20character%20in%20string%20javascript
Ali03: hi everyone, does anyone know what do /slap and /me do?
**5DN1L does this (/me).
**5DN1L slaps 5DN1L around a bit with a large fishbot
5DN1L: this is (/slap)
5DN1L: :)
nesnes112: but i didn't find the answer
Ali03: i didn't get the fun part about /me
5DN1L: you just describe something about yourself with /me
Ali03: oh, tnx
nesnes112: I was already on this site
5DN1L: nesnes112 why not
nesnes112: i send u a message 5DN1L
5DN1L: answered
5DN1L: :)
TheRipper2004: Ali03 is imposter
Ali03: hossein bala
TheRipper2004: :neutral_face:
Ali03: TheRipper2004 bala
TheRipper2004: noooo
5DN1L: Please do not spam here. Thank you.
5DN1L: If you have any complaints, please raise them to the CodinGame staff.
Ali03: sure
jambon83: hello body ,how are you?
jambon83: can you help me for a game please ?
5DN1L: Please state what game it is and what questions you have
Ose: I Don' know what to do
Ose: I can't do puzzle I'm newbie
Ose: This is why I'm so bad
Ose: I can't do nothing
5DN1L: It may not be that you're bad.
5DN1L: It's like you aren't tall enough to reach a shelf.
5DN1L: No matter how high you jump, you just can't reach there.
5DN1L: In that case, you have to think of an alternative way to reach there.
5DN1L: Or wait until you grow taller.
Ose: Ok.
Ose: It will take a long time though
Ose: so you mean I have to be offline until I grow up
5DN1L: I didn't mean that.
5DN1L: In the meantime, learn other things first
5DN1L: I know there are some resources for small kids to learn programming. I'm not familiar enough to recommend any though.
Ose: why?
derjack: because hes not a small kid ~
Mrs.GloriaZindlebocker: Smart kids write programs, dumb kids eat play-doh
Ose: What?
TheDice: lol
Ose: What should I do?
Ose: I never knew what was inside here when I joined
TheDice: You can try to learn coding at https://www.w3schools.com/ It helped me to get started
barmiextreme: or you could learn java with the bluej book. helped me in school.
5DN1L: He's a primary school student
barmiextreme: oh yeah then that might be hard
barmiextreme: we used https://scratch.mit.edu/ to show younger kids programming
Ose: I already have that scratch thing
barmiextreme: oh ok, if you have playd enough with that, i guess you can star with w3schools as suggested from Dice
Mrs.GloriaZindlebocker: try it with ketchup
Ose: Well bye
TheDice: cya
Ose: Wait guys I found nother coding website
TheDice: Which?
ShakeDatBunda: what is it
Ose: coding academy
Rebollo: Hy folks, is there a forum here talking about the Sponsored Nintendo Crypto puzzle...
Rebollo: I couldnt find anywhere
eulerscheZahl: no full forum, only a single thread
eulerscheZahl: https://www.codingame.com/forum/t/nintendo-challenge/801
Rebollo: Could u send me the url?
Rebollo: thanks
Manchi_o6o7: Hey guys. Can someone help me with one question: when to use exceptions
knugie: http://chat.codingame.com/pastebin/793d06c9-0954-44d8-8afc-f269729135df
eulerscheZahl: you could just link to http://www.codinghell.ch/blog/2013/03/31/how-and-when-not-to-use-exceptions/
Manchi_o6o7: thanks for the answers guys
Fasty_V-12_Engine: Hi
bob02: https://www.codingame.com/clashofcode/clash/2153189f28b70b927feca850a245619c0948e6b
Fasty_V-12_Engine: What is that for?
5DN1L: bob02 please use #clash channel for clash invites, thanks.
eulerscheZahl: did you create a keyboard shortcut for that message at this point?
5DN1L: nope
Astrobytes: :D
eulerscheZahl: i suggested to teach automaton to detect those clash links and react accordingly
eulerscheZahl: and my browser cache thinks that i'm a mod once again, weird
eulerscheZahl: i clear that thing last time
eulerscheZahl: cleared*
jacek: Automaton2000 is euler a mod?
Automaton2000: "i am rank hashtag-five" lol
eulerscheZahl: in #clash i see some inactive users. anyone willing to join there?
eulerscheZahl: that's a Flaise-quote
Astrobytes: oh we show as mods in there
Astrobytes: oh and in here
Astrobytes: weird
eulerscheZahl: jacek join #clash please
KolaCoder: http://chat.codingame.com/pastebin/1ef7973a-dca8-4929-b9c6-aeee0dc98539
jacek: oO
5DN1L: KolaCoder what have you got so far?
Astrobytes: sorry jacek, was a test
jacek: youre mod here too
eulerscheZahl: we are still part-time mods
jacek: for part-time salary
eulerscheZahl: can't kick you here
Astrobytes: same
eulerscheZahl: shows as mod here once you saw us on another channel where we are mods. but we are toothless on #world
eulerscheZahl: so i wasn't crazy last time, i just joined some other channel
Astrobytes: that does indeed explain it
eulerscheZahl: kind of - i still don't get the "how"
jacek: you wanted to clash so you joined #clash
Astrobytes: True. Do we really care?
eulerscheZahl: no
eulerscheZahl: no one wants to moderate #clash anyways
Astrobytes: It's almost insulting
jacek: thats why youre mod there :v
eulerscheZahl: i'll bribe struct into kicking you here for this
Astrobytes: :D
struct: jacek message me your NN framework to avoid the kick
Astrobytes: hahaha
droidek314: Hey, can somebody help me with C#?
**PatrickMcGinnisII is finally recovering from New Years Eve
eulerscheZahl: we have some c# knowledge, just ask
Astrobytes: clearly took Patrick a while to C# again
droidek314: There is a problem with rounding the number It doesn't want to round it to the bigger side, I guess
Scarfield: Punstrobytes
eulerscheZahl: it does bankers rounding
eulerscheZahl: towards even
eulerscheZahl: round(0.5)=0 round(1.5)=2
BlaiseEbuth: Like a record baby. Right round. Round, round !
droidek314: In the last test it says that it needs -175, but my program gives it -174
Astrobytes: hey FireScald
PatrickMcGinnisII: I Pounded too much whiskey, still not C#
eulerscheZahl: and what's the input for that -174 thing?
droidek314: -10000 - 10000, or smthng like that
Astrobytes: lol, I took my time on my Scotch, still got half a bottle of Glenmorangie left
droidek314: There is no clear input message
Scarfield: i would advice drinking it, tastes much better
Astrobytes: hahaha
droidek314: Anyway it finished, but I don't understand why it didn't make it right
BlaiseEbuth: Balmer peak ftw
Astrobytes: indeed
eulerscheZahl: https://www.codingame.com/contribute/view/67293516d9a773d8a3de01469bde7324065a
eulerscheZahl: this task?
BlaiseEbuth: In fact, that's another ms thing I can say good thing about. :yum:
Scarfield: lol didnt know balmer peak. think i saw a video of someone making a game with some bit manipulation, that he wrote drunk, and had no idea how it worked afterwards
Astrobytes: I have been known to do similar things on CG
BlaiseEbuth: It's all about the balance.
eulerscheZahl: The arithmetic mean of all numbers, an integer rounded down.
eulerscheZahl: "rounded down"
eulerscheZahl: int count = int.Parse(Console.ReadLine()); List<int> nums = Enumerable.Range(0,count).Select(i=>int.Parse(Console.ReadLine())).ToList(); Console.WriteLine(Math.Floor(nums.Average()));
eulerscheZahl: these 3 lines make all tests go green
droidek314: weird I went through all tests, bu that didn't pass though
eulerscheZahl: did you use anything to round down like (int) or Math.Floor()
BlaiseEbuth: Ancient Persian used to debate any idea sober then drunk, and to validate it only if it seemed to be good both time.
Astrobytes: nice, sound methodology right there
droidek314: I used only toInt32
BlaiseEbuth: :beer:
eulerscheZahl: that's for parsing the input and converting string to int, isn't it?
droidek314: not quite I used for loop to count the numbers and then in another variable divide them by count
droidek314: and another variant was just this ToInt32(result)
eulerscheZahl: hm, did you use floats for division or always integers?
eulerscheZahl: because -10/3 = -3 floor(-10/3.0) = floor(-3.33) = -4
droidek314: hmmm, interesting I think it was int/int
eulerscheZahl: :beers: on the other chat
Scarfield: https://youtu.be/E33fbA2DmZM?t=220
Scarfield: found it, the game was entombed for ataru
Scarfield: atari *
Astrobytes: hahaha, my hero :D
Astrobytes: What a legend
Scarfield: it is pretty legendary xD
BlaiseEbuth: Well. That's working. Isn't it? ^^
TheMusicalJetski_4f6a: http://chat.codingame.com/pastebin/8366b870-2b09-45f8-8051-5b776facca3c
TheMusicalJetski_4f6a: http://chat.codingame.com/pastebin/bb45a93b-9af5-402c-84ed-1efa6123fe28
eulerscheZahl: oh, Haskell
eulerscheZahl: i see an error in line 30 but much less code
TheMusicalJetski_4f6a: The other lines are just the basic generated codes.
TheMusicalJetski_4f6a: let graph = mkUGraph [mini..maxi] vertices
eulerscheZahl: i'm clueless, as always when it comes to Haskell
TheMusicalJetski_4f6a: This is the line in which the error occures
eulerscheZahl: https://www.digitpress.com/library/interviews/interview_paul_allen_newell.html the author confirms the drinking. but the interview doesn't read like he has forgotten how it works
PatrickMcGinnisII: ok, 1 puzzle done today
Astrobytes: eulerscheZahl: Shame lol, good read though :+1:
PatrickMcGinnisII: ok, i thought it was the liquor from new years, but apparently it's Omicron
Fasty_V-12_Engine: Can someone be my friend, I am lonely
PatrickMcGinnisII: programming keeps us warm and fuzzy
ninjadip: reminds me of fuzzy logic
ninjadip: what angle do you guys recommend is the max for complete thrust cutoff in madpod
ninjadip: the max angle*
Butanium: I think I used 20
ninjadip: OK
ninjadip: Because the max turn is 18?
ninjadip: did you do like a gradual balance of the thrust cutoff? or just abrupt
Butanium: if(angle > 85) thrust = 0; else thrust = 100
Butanium: was mostly that acutally
ninjadip: that's not what i meant
Butanium: I used a sigmoid function which was exactly this
ninjadip: yeah i used to have that
Butanium: what league are you ?
ninjadip: gold
ninjadip: what's the sig function
Butanium: do you have access to speed ?
ninjadip: right now i'm doing some atan() to calc the angles
Butanium: it was something which was actually a camoufled stair function lol
ninjadip: yes, and its easy to calculate even if they don't give it to you
Butanium: # angle: angle of your pod
Butanium: don't you have this ?
ninjadip: it's not a relative angle
ninjadip: it's an absolute angle in gold league
ninjadip: i had to calculate my relative angle to whatever my target is, and then compare to my absolute angle
Butanium: oh right I have a function too I think
ninjadip: yes
ninjadip: right now my angle max is 100
ninjadip: kind of liked it better than 100, for smoother drifting
ninjadip: 90*
Astrobytes: ninjadip: http://files.magusgeek.com/csb/csb_en.html
ninjadip: i think i just solved my own problem. i need to have this angle max fluctuate....
ninjadip: wtf is that link for
Astrobytes: mad pod racing
Astrobytes: (it used to be CSB 'Coders Strike Back')
Butanium: Also the angle between your current speed and the next check point can be a better approximation to know if you're going on the good way
ninjadip: i'm already in gold
Butanium: but the best thing is to simulate
Astrobytes: This is from gold to legend material
ninjadip: ok
Butanium: and the link sent by astrobytes can be usefull
ninjadip: i already have all that groundwork laid out
Butanium: because it tells you how to simulate
ninjadip: yes it would have been a couple days ago
ninjadip: when i rewrote the whole thing from silver to gold
Astrobytes: You don't necessarily have to use a rolling-horizon genetic algorithm
Astrobytes: (as in the doc)
Butanium: do you already have a simulation process ?
jacek: trolling-horizon?
Astrobytes: FFS jacek
Astrobytes: lol
ninjadip: a simulation process?
ninjadip: i already have it running
ninjadip: i glanced at the doc, i like discovering this myself
ninjadip: not trying to just beat it, trying to learn
Astrobytes: What was your plan?
ninjadip: i already have most of that. not calculating drag right now, that's abt it
Astrobytes: Search-based or just purely calculations?
ninjadip: oh right now, i'm trying to discern the flight patterns from the cpu compared to mine, seems the angle cutoff is different at the approach of a checkpoint
ninjadip: soon i will be enemy searching, that's my next thing
ninjadip: but wanted to get the flight pattern as realiable as possible
Astrobytes: good luck and enjoy :) It's a relatively fun game
Vlad100: Who can tell you how much time is given for 1 move in ultimate tic-tac-toe
jacek: 100ms
Vlad100: thx
Wontonimo: the first move is 1000ms though
Mrs.GloriaZindlebocker: these crazy metric units. what is that in american units?
Wontonimo: 1.7 light inches
Wontonimo: per gallon
Wontonimo: hey Vlad100 , congrats on joining UTTT and making a python bot
Wontonimo: what kind of algo are you using Vlad100 ?
Wontonimo: nabaztag, you are also kicking bot in UTTT, looks like you are about to be promoted to gold
jacek: mcts?
nabaztag: yes, i try my first mcts
jacek: :tada:
Astrobytes: well done nabaztag :)
Astrobytes: Wontonimo: 2d tile-based map gen. using wave function collapse https://youtu.be/t1O0_yHe-6Y
Blabbage: Astro: WFC looks awesome, when I get the time I am going to have a go at it, too much work right now
Astrobytes: :)
Mrs.GloriaZindlebocker: it is awesome. biggest revolution in ascii art since fixed-width fonts
Astrobytes: :smirk:
Astrobytes: it's not just for ascii roguelikes
Wontonimo: thaks Astrobytes for the link
Wontonimo: cheers Blabbage !
Astrobytes: was investigating some procedural generation stuff earlier and came across it
Wontonimo: it starts to fall apart when there are lots of different colours/tiles and/or the kernel is too large.
Wontonimo: it's really only good for smaller recurring patterns and does't tie the whole together.
Astrobytes: Of course, it's just one part, you'd definitely use this in combination with a bunch of other generative algos
Astrobytes: (same for any of them tbh)
Wontonimo: I haven't found a use for it yet
Astrobytes: the roguelike map-gen stuff is a nice start
Wontonimo: but then again, I don't make games.
Blabbage: There are some youtube vids of game devs using WCF almost as a black box algo, however the videos are not very technical
Wontonimo: the links I put in the challenge were what I used as a template.
Astrobytes: Wontonimo: doesn't matter, lots to be learned just from doing as an exercise
Wontonimo: I realized after making the puzzle that there are so many variants of implementations that it really comes down to how you want to enforce the constraint collapse
Wontonimo: Astrobytes ABSOLUTELY ! I had a ton of fun diving back into constraint propagation ! Loved it
Astrobytes: :)
Wontonimo: because with the shannon entropy (which is removed from the puzzle) it is only constraint prop
Wontonimo: *without
Astrobytes: You might be onto a series here
Wontonimo: river crossing, markov text generation, WFC ... all constraint centric puzzles
Astrobytes: I just saw them ;)
Wontonimo: can you list all contributions by one individual?
Wontonimo: I've looked but couldn't figure out how
Astrobytes: not unless you do it using the API I believe
Astrobytes: ie. custom tool
Wontonimo: hey nabaztag , how's the mcts going? Looks like you are mid gold now
Wontonimo: how many simulations per frame are you getting? somewhere in 3,000 to 5,000 ?
nabaztag: Not really at the moment, I need to improve my code
Wontonimo: the gold boss is about 20,000 simulations per frame. so that's a target if you are looking for legend
Wontonimo: are you using bitboarding?
.4ndr3w: are there any actual completely newbie stuff i can do
nabaztag: what it's bitboard ?
Wontonimo: a bitboard storing information in the bits instead of in the bytes
Wontonimo: so, forexample
Wontonimo: int a[] = {1,0,1,1};
Wontonimo: is storing the values 1,0,1,1 in probably 16 bytes, 4 for each int.
Wontonimo: where as int a = 0b1011;
Wontonimo: stores all those values in 1 int as binary, using only 4 bytes.
Wontonimo: you could store all the move of both players in just 2 ints, like so // top left and bottom right int a = 0b100000001;
Wontonimo: and // center int b = 0b000010000;
Wontonimo: this has huge benefits. HUGE
Wontonimo: no, scratch that
Wontonimo: !! H * U * G * E !!
struct: o.o
Astrobytes: enormous in fact
ZarthaxX: are we still talking about bitboards here?
JuJuondatbeat: yeah
JuJuondatbeat: we are
Astrobytes: if you're familiar with bitwise operations it should be easy to get started nabaztag
Wontonimo: yeah, here is an example of 3x3 tic tac toe that uses bitboards and MC. Although it is C++ you can use the same ideas in JAva
Wontonimo: https://tech.io/snippet/LiWPxTS
JuJuondatbeat: nabaztag is light work
Astrobytes: ZarthaxX: :rofl:
struct: who even need bitboards when you can just use a NN
Wontonimo: it is able to generate 200,000 simulations in 100ms
ZarthaxX: howdy guys
JuJuondatbeat: no nut?
ZarthaxX: Astronautus
struct: hi
JuJuondatbeat: hi
ZarthaxX: sup
Astrobytes: different year, same ol' crap :D
Wontonimo: wow, does one have to just mention bitboards to summon all the cool kids back to the playground ?
Astrobytes: :grin:
ZarthaxX: hahaha
ZarthaxX: that keyword smells from far away
Wontonimo: honestly nabaztag, I don't know how you made it to Gold without bitboard ! I tip my hat to you for the accomplishment
Astrobytes: I think it can be done without bitboard with a flat MC too, ask aCat, I don't remember if he used bitboards or not
Astrobytes: one day I'll get around to playing it, I find it boring
struct: had more fun with c4 than with uttt
struct: but I didnt spend much time on either
Astrobytes: Thx for the reminder, still need to fix my C4. BT was better
Wontonimo: I still need to do oware-abapa, the NN tutorial as it has become known
Astrobytes: It wasn't overly popular until then hehe
Wontonimo: should rename it hehe
Astrobytes: :D
nabaztag: Really interesting the link to bitboard tictactoe :o
Wontonimo: thanks, I wrote it. it doesn't use MCTS, only MC, so don't copy that part.
Astrobytes: nabaztag: you're already familiar with bitwise operations right?
Astrobytes: (very familiar I mean)
nabaztag: it's a simple mcts based on https://www.codingame.com/playgrounds/57060/mcts-tic-tac-toe-playground
nabaztag: no, i read and learn now :p
Astrobytes: ah that's a great tutorial for the basics, very good in fact
Astrobytes: Wontonimo's is great for the bitboarding
Astrobytes: nabaztag: It's in C++, ignore the NES emulator part, but this is a nice intro to bitwise operations https://youtu.be/F8kx56OZQhg
Wontonimo: here is a javascript bitboard (not mine) https://tech.io/playgrounds/48392/bitboard-for-the-3x3-tic-tac-toe-game
Manchi_o6o7: Guys, are you willing to help me with some ideas for my uni assignment. I am struggling with the design ideas for a OOP project.
Wontonimo: make a flight simulator
Wontonimo: or a remake of Dwarf Fortress
Manchi_o6o7: I have an assigment, but the implementation design is the problem
Jonathan_is_trying: does codin teach C++?
Astrobytes: avoid deadly diamonds, don't subclass everything, try to use OOP as little as possible :P
Wontonimo: codingame doesn't "teach" anything. it provides problems and multis
Wontonimo: hey Manchi_o6o7 , seriously what is the "problem" that you are going to use OOP to solve? or is that what you are looking for?
Manchi_o6o7: The problem is as following. I tried to solve it for the last three days, but right now I am at the stage where I want to start all over.
Wontonimo: solve what?
Manchi_o6o7: I need to make an e-learning system
Manchi_o6o7: Students and tutors
Manchi_o6o7: students can enroll to courses and chat with tutors
Manchi_o6o7: and they can also send each other friend requests
Astrobytes: client-server
Manchi_o6o7: all with txt files
Manchi_o6o7: ....
ZarthaxX: txt files D:
Wontonimo: ??
ZarthaxX: F
Manchi_o6o7: yip
Astrobytes: gotcha, just an exercise
Manchi_o6o7: yes
Astrobytes: fairly grim exercise but hey, you get what you get
Manchi_o6o7: Usually, all the data would be stored in some database
Manchi_o6o7: my idea was to do the following
Wontonimo: it's had to give advice because I don't know what crazy ideas your prof has. Do they like inheritance or are they into object composition?
Wontonimo: I have opinions, but to get a good grade you've got to know what their opinion is
Astrobytes: Seems more inheritance vibes, just a hunch
Blabbage: lol
Manchi_o6o7: yip
Wontonimo: barf
Manchi_o6o7: I have the class User
Wontonimo: (╯°□°)╯︵ ┻━┻
Manchi_o6o7: and derived classes admin, student, and tutor
Manchi_o6o7: but the think is
Wontonimo: sorry, I can't help. I'm morally against spreading evil
Manchi_o6o7: hahahahahaha
nabaztag: http://chat.codingame.com/pastebin/28cc83fa-e56d-496e-8d39-6282fdff5692
Astrobytes: :rofl:
Manchi_o6o7: can someone just give me an idea is it good to hold all the data in some containers
Manchi_o6o7: after starting the program
Manchi_o6o7: and then in the finish
ZarthaxX: nabaztag binary lowest bit is the rightmost
Manchi_o6o7: just updating the files
ZarthaxX: it's easier to think that the rightmost bit represents the top left cell
ZarthaxX: you can do your version too anyway, it's ok
ZarthaxX: the classic way is the first one
Blabbage: Manchi: Look at software design patterns, maybe repository pattern
Blabbage: Gotta go now, have fun...
Astrobytes: later Blabbage
Wontonimo: it's great to see so many familiar --faces-- err.. i mean icons back in the chat! I've gotta go also
Wontonimo: hope to see all of you soon
Astrobytes: likewise! see ya later Wontonimo :)
ZarthaxX: cya wontooo
ZarthaxX: :*
Joury: Anyone wanna play roblox?
slazure: me
slazure: :)
Tien2k9: is "We're going in circles!" puzzle easy?
Thorcode: nah
Thorcode: it is medium tien
Tien2k9: but seem like it is easy
PATTRIM: i dint see it b4
SinsIsHereLadies: I have a question if someone's present here
SinsIsHereLadies: is there anyone here?
Wontonimo: hi
Wontonimo: just say your question SinsIsHereLadies
SinsIsHereLadies: have you ever tried the shadows of the knight?
Wontonimo: yes. that's it? easy question.
SinsIsHereLadies: can't solve it
SinsIsHereLadies: tried many ways. I'm actually a c++ programmer but just 4 cases worked . Now I try it with Python and the sixth gives me error
Wontonimo: well, it is a "medium" difficulty puzzle, and here on codingame that means it is pretty darn hard
SinsIsHereLadies: actually, my programming level is not that bad but the way they explain what they want is a bit unfamiliar
Wontonimo: did you try it in c++ ?
Wontonimo: and it worked?
Wontonimo: oh, sorry
SinsIsHereLadies: just the first four of them
Wontonimo: okay, why do you think the others didn't work?
SinsIsHereLadies: http://chat.codingame.com/pastebin/9225bc4b-094a-44d1-8db4-28d0b7b82193
SinsIsHereLadies: :D if you have that patience
SinsIsHereLadies: I'm sorry but it's like 20 minutes passed and I still get error with this and and it lowers my self-confidence
Wontonimo: 20 min? have patience
Wontonimo: this isn't a clash of code
Wontonimo: i budget 2 hours for "easy" puzzles, double for medium
Wontonimo: and a day or two for hard
Wontonimo: 20 min is enough time to just kinda get familiar with a puzzle
e_fishel: why does shortest mode exist
e_fishel: in coc
e_fishel: (╯°□°)╯︵ ┻━┻
e_fishel: the python dudes keep on winning
SinsIsHereLadies: Well, but this one was not supposed to be this hard
Wontonimo: hint, python does "bankers" rounding which may throw a wrench in your normal c++ approach
Wontonimo: hint 2 : you can change python rounding to 'regular' using this handy shortcut
Wontonimo: round( myNum + 0.0001 )
Wontonimo: it'll work for this puzzle
SinsIsHereLadies: What is your area of expertise in programming? if you don't mind
Wontonimo: back end systems
Wontonimo: you?
Wontonimo: why x0 = x1 + ( (x2 - x1) / 2);
Wontonimo: instead of x0 = (x2 + x1) / 2;
nikelhaus: e_fishel ruby is even shorter than python
Thorcode: hey wontonimo, could you help me to get to the bomb in very hard
Thorcode: I have updated my maxium alot
Thorcode: but the last one the find the bomb is hard when my arena is about 3x3 or larger than a bit
Wontonimo: in episode 1
Wontonimo: ?
Thorcode: nah ep 2
Thorcode: whwen the bombdir is same
Thorcode: I got close to the bomb now