From CG community
Jump to navigation Jump to search

Default avatar.png carnato: launch

Csipcsirip: if a player moves out of his sector after he surfaced, the surface result will give the old or the new sector back ?

ZarthaxX: old

eulerscheZahl: thank you ZarthaxX

ZarthaxX: :)

Csipcsirip: ty

CommanderCero: could someone with c++ experience help me? I'm trying to generate a random number with the uniform_int_distribution and it works in my own IDE but not on codingame

pmor: how are you calling it?


CommanderCero: wait theres an error because I was testing it:

Csipcsirip: maybe this:


pmor: looks ok to me...but you may want to seed it with a number so that you get deterministic runs

pmor: So that when you replay to track down a bug, you get the same run

pmor: using std::random_device will give you non-deterministic runs

Csipcsirip: isn't the default seed constant ?

CommanderCero: yeah thats a good idea, will do that after Ive solved the problem. Also when copying the code from the stackoverflow post it works for some reason, but I cant find the difference

CommanderCero: i see the const was the problem, yeah makes sense since calling it would cause an change in the random generator

pmor: yeah, const there is a problem

CommanderCero: thanks guys!

Csipcsirip: hm

eulerscheZahl: pro tip: spawn in the biggest lake

Csipcsirip: wow good idea

eulerscheZahl: i'm always happy to help

eulerscheZahl: test map:

Default avatar.png yfprojects: How do you find the longest possible path for your submarine?

Csipcsirip: ty, I use simple wall hugging atm

pmor: i use dfs

eulerscheZahl: i use BFS forr

eulerscheZahl: for the next step only

eulerscheZahl: i have a more sophisticated method for tron but that would make tracking too easy, do i don't think it's smart to find the best possible fill

pmor: Best to use it for the starting position, and then switch to making moves that limits narrowing down your location

struct: damn kovi didnt join long ago and he is already near the top

struct: Also nobody using D

dbdr: what a surprise

Zenoscave: who would have guessed ;)

struct: But it was so requested :(

eulerscheZahl: but they only wanted to see D on the platform without caring about the platform itselft

dbdr: AntiSquid said he actually likes D

dbdr: IIRC

eulerscheZahl: i thought he just submitted some D bots for the trolling factor

dbdr: I though so too

Zenoscave: could be either

dbdr: but asked him

Zenoscave: both are viable

Earthborne: Can we get Julia on the platform? :D

dbdr: you can vote for it

eulerscheZahl: Earthborne suggest it here

dbdr: or is that poll closed now?

Zenoscave: dbdr I'm coming for your rank

eulerscheZahl: closed

eulerscheZahl: wait, still open my bad

jacek: oh shit paper soccer puzzle of the week

dbdr: which one Zenoscave? :)

eulerscheZahl: bad timing, sorry for you jacek

Zenoscave: Ocean of code

struct: Anyone else has this bug?


Zenoscave: Bah you must've improved

eulerscheZahl: yes struct

dbdr: yeah, they should not have a multi puzzle of the week during a contest :(

eulerscheZahl: noticed it this morning

dbdr: I know Zenoscave, I mean which rank?

eulerscheZahl: you rank dbdr

Zenoscave: I was @ 10 last good submit

dbdr: yes but my rank is changing :)

Zenoscave: I see

eulerscheZahl: i was at 30 added a spawn on the largest lake, 50 now

Zenoscave: probably won't out rank 15 rn

Earthborne: Didn't know Powershell counted as a programming language

eulerscheZahl: it's turing complete

dbdr: gg eulerscheZahl :D

dbdr: try the smallest lake

eulerscheZahl: :D

Zenoscave: lol

dbdr: less crowded

pmor: isn't powershell just a front for .net?

dbdr: safe from most torpedos and mines

Zenoscave: not completely

eulerscheZahl: so, why do we need c#, and f#?

eulerscheZahl: all the same

Zenoscave: Let's get rid of c# then?

dbdr: let's have only turing machines

Zenoscave: ;)

dbdr: everything else is redundant

eulerscheZahl: calling for a new weird puzzle dbdr?

Zenoscave: oooh that would be fun

dbdr: would be nice yes!

AntiSquid: SQL is turing complete, add SQL to CG :D

dbdr: excel too

eulerscheZahl: powerpoint

AntiSquid: also worth mentioning:

dbdr: it's TC AntiSquid?

Zenoscave: I love and hate that. It is so ugly I can't look aay

Zenoscave: nice climb dbdr

dbdr: thanks. i'm trying the 10 spot free for you ;)

Zenoscave: thanks ;)

AntiSquid: is what TC dbdr ?

dbdr: fight with Schnee instead

dbdr: Turing Complete

dbdr: Mandelbrot

Zenoscave: no SQL is

AntiSquid: was saying sql is turing complete

dbdr: then you said mandelbrot also worth mentioning

Earthborne: Minecraft redstone is turing complete

dbdr: why wasn't clear

AntiSquid: mandelbrot thingy in sql just looks interesting and weird

dbdr: :)

dbdr: ah

dbdr: should open the link I guess

AntiSquid: yes since i mentioned sql already

Zenoscave: the SUBLEQ operation is TC


dbdr: nice one AntiSquid

eulerscheZahl: somehow my internet connection just dropped, was about to link

eulerscheZahl: actually quite impressive

dbdr: also

dbdr: through Powerpoint sounds more limited, so more impressive

Earthborne: But that poll, is the team just plowing down the result list? I see Typescript and D were already added

dbdr: it counts, but not automatic I think

eulerscheZahl: typescript was added because a paying client wanted it

AntiSquid: TS was maybe easier to add since there's JS already

Earthborne: oh, haha

dbdr: Zenobia spamsubbing?

dbdr: Zenoscave sry

struct: who?

Zenoscave: yeah

struct: ah I see

dbdr: fix your tabability

Zenoscave: my what now

Zenoscave: Zenoscave

dbdr: Zen<tab> gives someone else

Zenoscave: Z<tab> Ze<tab> and Zeno<tab> all give me

Zenoscave: strange

dbdr: it depends who's on the list

struct: refresh dbdr and fixed

dbdr: and the webchat is strange

AntiSquid: sometimes when i have multiple CG tabs open and refresh i still get usernames in tab that aren't in the chat anymore

struct: nick tab works for mods online and all the users that have typed in your current chat window

dbdr: best for everyone to minimize the unique prefix of their pseudo

dbdr: hm, there's a puzzle in that...

AntiSquid: Antho-CS

dbdr: I'm d<tab> :)

AntiSquid: Darkhath0r

Zenoscave: dbdr

dbdr: it's relative :D

Zenoscave: it checks out

AntiSquid: db<tab>

dbdr: let's all ping random people

Zenoscave: q

AntiSquid: Zauberer

Zenoscave: there's no q's for me

AntiSquid: manit815

Zenoscave: w

AntiSquid: MadmanInABox

Zenoscave: e

Zenoscave: eulerscheZahl

Zenoscave: e

Zenoscave: eulerscheZahl

dbdr: what did I do? :/

AntiSquid: wackadoodle

AntiSquid: nice usernames

Zenoscave: almost pinged recur_se

AntiSquid: remio

dbdr: AntiSquid could you kick AntiSquid, he's spamming the chat and pinging random people?

AntiSquid: sorry :(

dbdr: joking

dbdr: autokick

Zenoscave: AntiSquid can you kick dbdr he suggested the idea

AntiSquid: nah i shouldn't spam

Zenoscave: true

Zenoscave: sorry as well

struct: Ban :hammer:

dbdr: maybe it's attract new people to the chat :)

dbdr: it'll

Zenoscave: Are the usuals not good enough :P

dbdr: hm, I wonder, if you pseudo is "the" you must be pinged constantly

AntiSquid: but sometimes the chat has many consecutive messages of pure gibberish, although they might look like a real conversation

Zenoscave: "sometimes"

dbdr: Auto<tab> => nothing :o

Zenoscave: Automaton2000

Automaton2000: thats what you mean now

Zenoscave: Automaton2000

Automaton2000: you can make a good bot

Zenoscave: ftfy

AntiSquid: AutomatonNN why are we still spamming :D

AutomatonNN: what is the problem with it?

Zenoscave: lol

dbdr: Automaton2000 fixed indeed

Automaton2000: hey guys can you help me with the temperatures puzzle

Zenoscave: no

AntiSquid: ok then keep spamming i guess AutomatonNN

dbdr: ok, so it's people who have written in what I see. good to know

Zenoscave: that's one you should solve on your own Automaton2000

Automaton2000: i don't even know what that means

AutomatonNN: eulerscheZahl is there a way to see the puzzle about the video array of all characters as the valid

Zenoscave: lol always pinged

AntiSquid: quite mean they keep it this way

AntiSquid: whoever is in charge of the bot

dbdr: it's not hardcoded I think

struct: I mentioned solution

struct: everytime Automaton pings euler, euler makes a bot that pings magu s

dbdr: or he changes his pseudo

dbdr: the automatons won't keep up

Zenoscave: I should have a bot that changes my psuedo to euler whenver he changes his from it

AntiSquid: but maybe he feels attached to his pseudo ?

Zenoscave: perhaps

AntiSquid: funny royale had to change his due to a multi

Zenoscave: I think i commented out all my sonar

Zenoscave: That may be an issue :thinking:

AntiSquid: easy to make some multi with a theme that justifies having mag us in the title, if only euler would have thought about it :P

AntiSquid: is a nested switch case a bad idea?

Zenoscave: typically

kovi: hmm, big variance

kovi: 22->11 tonight

AntiSquid: and for a moment i thought you're applying some high level statistics to narrow down the enemy's position .

Schneewittchen: Sequential Monte Carlo

Till: In wood league you can win surprisingly many battles by just making valid moves...

wlesavo: Illedan, eulerscheZahl, did you guys thought of nerfing the mines by giving up the direction it is planted? right now it seems kind of useless to even keep track of them. or is that too harsh?

mchl12: I remember a game in which my AI eliminated 20 possible positions by triggering a mine. I am not sure what the average information gain of a mine trigger is however.

mchl12: I don't feel like it useless to track it, I also don't know how the nerf would effect it.

struct: well it could reduce states quite a bit

wlesavo: well state wise it does give up some information, i meant using the prediction of mine placing in your moving strategy

Illedan: I have considered it. But it is very hard to know what effect such changes would have. As I like the game now and don't want to break it.

struct: Imagine you had aroudn 100 states, and enemy placed a mine

wlesavo: Illedan thx, got it

struct: currently at worse case would be after placement 400 states


struct: with your idea, it would be the same 100

struct: Mine position would make mines useless imo

Illedan: Not really

kovi: maybe nerf cooldown

Illedan: as you can block of area

wlesavo: not positions, just directions

wlesavo: but yeah, seems to be a big change

wlesavo: nwm than

struct: I think the 1 damage wouldnt change much

Illedan: Harder to use it for tracking

struct: ah there is that

struct: Might be good then

Illedan: And random 2 damage is kinda much :P

wlesavo: yeah, that could be worth it

Illedan: But that would break every prediction :(

struct: Changes at this time is always an hard choice

wlesavo: well not every

wlesavo: but yeah

wlesavo: same with removing mines after explosion, seems really balanced, but would break many bots

darkhorse64: It reminds me of UTG where you could chain explosions. May be I haven't thought enough to it but I hardly see how you can track mines in the current design. This explains probably why I am so low

struct: Have you tried saving all the possible states?

darkhorse64: In this respect, giving mine positions would have a large impact because it would help pruning potential positions even more than firing torpedoes

struct: but yes it can be a bit hard

wlesavo: well it still helps now

struct: because you will never know if it was N/S/E/W

darkhorse64: I currently save all possible positions bit not paths. So a MINE is potentially 4x positions

darkhorse64: It's useless. So I guess I have to save history so that everytime a position is pruned, it removes a path and potential mines. Add SILENCE and I think your bot bombs

struct: it can help you a lot

struct: even more when a mine triggers

struct: If he triggers a mine you could remove all states than never crossed that position and placed a mine in that dir

struct: or just that never placed a mine on that dir, might be simpler

darkhorse64: Got it. I am a bit concerned about memory and timeouts but I guess I am pessimistic if you have already gone this way

struct: I havent, but I think some players have similar approach

wlesavo: you cant really store all the different paths

wlesavo: due to chain silence

darkhorse64: I remember a thread where people timeout at frame 90 because of the # of paths

struct: well that was with quite a few paths

struct: and with a bot that was made just to test this

wlesavo: this is gonna happen for sure in quite a few games

struct: But I guess you can ask some players how many paths they can store

struct: The timeouts happen if your bot only moved

struct: and used no skills

struct: if you use Sonar, torpedo, mines

struct: it helps a lot

wlesavo: i think most people store the points where candidate definetely have been

darkhorse64: If you do not store everything for pruning later, you are helpless against mines

wlesavo: this is why i asked about giving up the direction it was placed

Illedan: I'll think about it

dbdr: is there an actual problem to solve?

wlesavo: dbdr how do you store path? :slight_smile:

dbdr: I meant, why are we considering changing the rules?

wlesavo: not really, i just asked if this is even a possibility, not really considering

Sam_Thundro: hey i started this game,can anybody tell me how to make friends in this game

darkhorse64: dbdr : If you scroll up, the discussion arose from the fact that mines prediction perplexed me. Not excluding the fact that I miss something, I do not see how you can deal with mines without storing all possibles paths and pruning at the risk of timeouts

Sam_Thundro: hey I am asking something

darkhorse64: It's a competition. There are no friends here :grinning:

Sam_Thundro: oh I see , what a let down

darkhorse64: just kidding ...

Sam_Thundro: you tricked me buuu...

Uljahn: just follow Automaton2000

Automaton2000: there is no need to be in the top 20

Sam_Thundro: so how can we anyway?

Skril: darkhorse64 : you can merge info from different paths to avoid timeout ;-)

Uljahn: hover over an avatar

wlesavo: Skril doing the same, but this way you effectively erasing the path between the silences for this candidate, and cant for sure restore history, which is the main consern

Skril: That's if you reconstruct mine positions from the path. There are other means ^^

wlesavo: well maybe i miss smth, im sure people here will get through it

Sam_Thundro: hey how can we make friends?

wlesavo: Illedan, was the silver opening shifted? i think the date have changed

darkhorse64: If there is a solution, great. I would be concerned that the game turns into random where victory depends on walking on unpredictable mines

Illedan: Same date wlesavo

wlesavo: hm, wasnt it march 27? my bad then

Illedan: Still is?

wlesavo: League opening: 3/28/20

wlesavo: maybe some local problems on my pc

dbdr: depends on your time zone maybe?

Illedan: ^

dbdr: should be friday evening in central europe

wlesavo: previously it showed me the correct date, i didnt change the time zone for sure

wlesavo: nwm, just was surprised

darkhorse64: skril: was that mentionned in the chat ? I have an erratic connection

Skril: I don't know

darkhorse64: k

Default avatar.png anid: @eulerscheZahl, I just saw how many community contests you have crafted, takes a lot of effort, congrats and thanks!

jacek: :o

Uljahn: wlesavo: ctrl+f5 updates your cached page so the date becomes relevant

wlesavo: Uljahn oh, thx, this works

Default avatar.png DavidJangdal: How do i run this against my friend? I can only add AI bot

Uljahn: have you submitted your code at least once?

wlesavo: DavidJangdal you can delete AI and choose the opponent, if your friend submitted his code

Default avatar.png DavidJangdal: Oh, ok. forgot to submit, thanks!

Scarfield: when you submit, you get in a league, and you can do what wlesav-o said to people in your league or lower leagues :)

Default avatar.png DavidJangdal: thur

Default avatar.png DavidJangdal: We have now submitted our code. But we can't find each other in the list. We can find a bunch of other people

Scarfield: the submits need to finish before yoo can see each other i guess

Default avatar.png DavidJangdal: Ok, i'll wait a bit. Thanks!

Scarfield: np, if you havent noticed, you can see the progression of your submits by clicking "last battles" in the left panel :)

KiwiTae: sup o/

Scarfield: sub

KiwiTae: ooh there is a lockdown contest :D

Scarfield: yup :)

aenigma: can you place a mine on the same tile as your sub ?

KiwiTae: you can try if it works u can hehe

Scarfield: no, it places N S W E

aenigma: :thumbsup:

ZarthaxX: KiwiTae :O

Scarfield: Zartho!

ZarthaxX: scarfo :O

AntiSquid: kiwitae = kiwibleu ?

ZarthaxX: ye

Default avatar.png war_and_peace: Does anyone know what which compiler and version is used to compiler c++ code?


Default avatar.png war_and_peace: thanks

KiwiTae: AntiSquid yoyoyo

KiwiTae: im new here

ZarthaxX: lmao

AntiSquid: how are you?

ZarthaxX: AntiSquid

ZarthaxX: you like lockdown

AntiSquid: oh lol didn't bother fixing that

kingofnumbers: all replays links posted in this chat are about the same thing :D

AntiSquid: is that yuyu hakusho avatar ?

Default avatar.png yfprojects: Would you replace tracking yourself by calculating the information given away if you knew how?

Schneewittchen: wut?

ZarthaxX: :I

Default avatar.png yfprojects: Some people here use there tracking tools for tracking theirself

Default avatar.png yfprojects: To plan their next steps

eulerscheZahl: on my TODO for so long

Default avatar.png yfprojects: Who is already doing this?

eulerscheZahl: then it wouldn't be on my TODO anymore

Default avatar.png yfprojects: I am not asking you eulerscheZahl

Schneewittchen: here

eulerscheZahl: but i refactored my code to extract the tracker to a new class

eulerscheZahl: oh, sorry

Default avatar.png yfprojects: So if you knew a way to calculate this using simple maths, would you use it instead? Schneewittchen

pb4: tracker is such a big mess in my code -_-

Default avatar.png yfprojects: So you have a number representing how much the opponent knows but you dont know where yyour potential positions are

Schneewittchen: @yfprojects For sure, but I would say its minimum as complicated as tracking your opp

Default avatar.png yfprojects: I am not sure because i am getting onto sth. there

Schneewittchen: It depends on your strategy. If you want to hide or sth you have to know the "known" positions

Default avatar.png yfprojects: Do you?

Default avatar.png yfprojects: The possible positions move accoring to your submarine

Schneewittchen: I use it for silence

Default avatar.png yfprojects: If n<10 -> Silence This would work too

Schneewittchen: But not in which direction and for how many steps

Schneewittchen: but yeah it depends

Default avatar.png yfprojects: The direction is irrelevant because the opponent wont see it

Default avatar.png yfprojects: I would then calculate the best next position and move there

Default avatar.png RalphMcCrackenIII: Just hit level 7! *flex*

ZarthaxX: 43 lvls more to go RalphMcCrackenIII gogo

Default avatar.png RalphMcCrackenIII: :grin:

Nixerrr: Are you going to make it to top 100, ZarthaxX?

ZarthaxX: nah

ZarthaxX: im prob quitting

Nixerrr: I mean overall, not the competition

ZarthaxX: ah

ZarthaxX: yeah someday

ZarthaxX: eventually..

ZarthaxX: you?

Nixerrr: Dunno

Nixerrr: Why are you quitting?

ZarthaxX: im bad

eulerscheZahl: ZarthaxX 04:33PM 43 lvls more to go

50 isn't the max anymore

eulerscheZahl: and come on.. don't quit or there's only 1 polar bear left

ZarthaxX: what

ZarthaxX: kodle will do good without me

ZarthaxX: anyway im kidding not quitting (yet)

ZarthaxX: having fun

ZarthaxX: holy you are 51

ZarthaxX: so the test acc, what lvl is he?

eulerscheZahl: 50

eulerscheZahl: only updates on XP gain

ZarthaxX: a hok

ZarthaxX: what is the cap lvl

eulerscheZahl: no cap anymore

ZarthaxX: i mean there has to be one..

ZarthaxX: just impossible to reach

eulerscheZahl: some CG dev saw that i maxed out and decided to refactor

ZarthaxX: can we make the test account gain xp somehow? :P

ZarthaxX: haha okey..

AntiSquid: anyone else having problems loading avatars in chat?

eulerscheZahl: i see all of them

Default avatar.png RalphMcCrackenIII: i see all of them

Tunga: i see all of them

tonowak: i see all of them

Scarfield: I.C. Weiner

Nixerrr: Is this a dirty joke, Scarfield?

Scarfield: its from Futurama, when Fry thinks he is delivering pizza to one of that name

Nixerrr: Ah ok

Scarfield: but yes, i guess its below the belt :p

eulerscheZahl: i recognized the reference instantly

Scarfield: its from the very first episode iirc, also the interaction with Leela and her boss:

Scarfield: then you will get fired! thats not so bad.. from a canon into the sun!

Default avatar.png TheMightyVampire_83eb: fuck

Default avatar.png TheMightyVampire_83eb: doesn't owrk

Tunga: :currency_exchange:

Deathshot: bgngfhgghghcv

AntiSquid: Automaton2000 ban deathshot

Automaton2000: to see it on the first round

AntiSquid: ezpz

Andeagi: how long does it take to get the results when you submit your code?

eulerscheZahl: depends on the game and league

eulerscheZahl: and your code as well (how much time you use)

eulerscheZahl: contest, wood league: 5-10 minutes probably

Andeagi: Do you battle all other users in your league?

eulerscheZahl: no, just submit to see

eulerscheZahl: 10 matches across the leaderboard to estimate your rank

eulerscheZahl: then some more vs similar ranked players

eulerscheZahl: and higher leagues will have more matches

Andeagi: ok thx :)

muy31: how did i promote without submitting?

AntiSquid: someone pushed you ?

AntiSquid: or they resubmitted bosses maybe

AntiSquid: or you suffer from sleepwalking submit spam

muy31: I easily beat AI without mines or Silence... why does bronze AI suck so bad?

Uljahn: it's not the boss just ai for testing

muy31: and why does it randomly SURFACE?

ZarthaxX: to make it easier for you to detect him

muy31: oh really

ZarthaxX: yeah, as the cat Uljahn said, just for testing, not a boss

ZarthaxX: tomorrow a player's bot will be the bronze boss

muy31: cool

muy31: i actually never realized that there were only three leagues so far.

AntiSquid: there will be more

muy31: this is the first time I've committed to a contest

AntiSquid: sirvelu, gordu, regendo

muy31: what does that mean?

ZarthaxX: lmao

AntiSquid: was just typing with an accent

AntiSquid: thought it's funny, apologies

muy31: oh

muy31: i get it now

muy31: i thought it was some magic words or incantation or something

Nixerrr: AntiSquid

Astrobytes: :D

wlesavo: AntiSquid sounds like japanese englich from some anime

muy31: I don't know what to understand from this match...

muy31: but i know that

muy31: i haven't incoporated sonar, silent, or mine, and antisquid uses too much sonar

muy31: or maybe i use too much sonar

muy31: b/c i haven't done anything with the result yet

muy31: where did it go?

muy31: just make them

muy31: :grinning:

muy31: AntiSquid you no answer

muy31: i sad

AntiSquid: when did i claim i know jap lol ...

AntiSquid: it's called engrish wlesavo

AntiSquid: i don't use sonar, not in the submit

AntiSquid: you are the one who uses sonar, check the commands at the bottom muy31

AntiSquid: and maybe i should add something more than just basic enemy detection :p

muy31: yeah my bad

muy31: AntiSquid, how do you so effectively evade my sensing?

AntiSquid: i don't even try to

AntiSquid: you murder me don't you?

AntiSquid: silence is bs, maybe that's how

muy31: ok but yours is ridiculous

AntiSquid: look the bot what it does, it doesn't do anything exceptional lol

muy31: usuually by the 60th turn, I've pinpointed the opponent to like two or three places

muy31: but you use silence in a way that continuously keeps it above 50 places

eulerscheZahl: and then silence ruins it

AntiSquid: the silence isn't fun at all to deal with imo

muy31: I will copy my debug stream from turn 148 of a 239 game...

muy31: Standard Output Stream:

muy31: This is the game...

muy31: oh yeah my coordinates are row, col

muy31: not x, y

Default avatar.png icecream17: can you silence and move at the same time?

muy31: yeah

AntiSquid: yes

AntiSquid: all commands at once

muy31: even surface

muy31: but not trigger and mine

Default avatar.png icecream17: Hmmm.... can you go through an island while silence?

muy31: no... im pretty sure

AntiSquid: no

AntiSquid: only real life sub walk silently on land

muy31: ok someone help me...

muy31: under what circumstance do I want to use SILENCE

muy31: ?

AntiSquid: whenever it's annoying to the opponent

muy31: what would "trigger it" perhaps?

AntiSquid: kind of always

Default avatar.png icecream17: i'm 19th with my wood2 code on wood1, so i'd say it's not that useful unless it's the 40th turn or so

Default avatar.png icecream17: or unless you spam it

AntiSquid: icecream17 are you stuck in wood1?

Default avatar.png icecream17: no i made it to wood1 yesterday

AntiSquid: ok just add silence to your bot and you instantly promote to bronze

Default avatar.png icecream17: need to update possibleOpp array though

Default avatar.png icecream17: the "ohno" check (silence) timesout

muy31: you can actually promote w/o anything else except for torpedo

Astrobytes: you can promote with just silence

muy31: and a good sense technique

AntiSquid: ya but if you want just the promotion, silence is the easy way out

muy31: ig

Default avatar.png icecream17: ig?

muy31: i guess

Default avatar.png icecream17: oh

AntiSquid: nthsmaar?

Default avatar.png icecream17: well, silence would be extremely hard to put with my code....

AntiSquid: = nice to have so many annoying acronyms, in case anyone wonders

Astrobytes: if silence is not charged move + charge it else silence? What's hard about that?

AntiSquid: just do silence instead of torpedoes icecream :D

muy31: he means using silence

AntiSquid: or interchange move and silence

AntiSquid: silence N instead move N

Default avatar.png icecream17: no i mean detecting if my torpedo hits but i move far away so now my opponent has to be within 4 of where im at and stuff

AntiSquid: even silence 0 will do

Default avatar.png icecream17: hmm

Default avatar.png icecream17: wow amazing

AntiSquid: silence N 0, no change in movement calculation

Astrobytes: I got to bronze w/ no enemy tracking, just move + silence

AntiSquid: ya total bs

Default avatar.png icecream17: huh... what does MSG message do?

Astrobytes: think about that for a minute

AntiSquid: it furiously can taunt your enemy

muy31: it lets u say MUDA MUDA MUDA

AntiSquid: without them seeing it

Default avatar.png icecream17: i'll just charge it up in the first moves then do it randomly.

Default avatar.png icecream17: also that makes me wonder what your are like

Default avatar.png icecream17: what's the best way to account for opponent silence? [have possibleOpp array]

AntiSquid: idk if it matters, just use silence and hope for the best :D

Default avatar.png TheRedChild_406c: ssssoooooo nicce

muy31: i also have possible opp array

Default avatar.png icecream17: I have an array called "totalsOpp" showing how much the opponent moved up, down, left, or right.

Default avatar.png icecream17: But now with silence....

mchl12: What do you use the totalsOpp array for?

muy31: ok i can help you

muy31: icecream17

Default avatar.png icecream17: possibleOpp[0] + totalsOpp[0] = Current Opponent position (row or x)

muy31: does your code find the starting point of the opponent/

Default avatar.png icecream17: yes

muy31: ok

Default avatar.png icecream17: the torpedoes don't line up that's why it's bad

muy31: so whenever your opponent uses silence, reset totalsopp

muy31: and reset possible opp

Default avatar.png icecream17: =O

AntiSquid: nah you have to expand actually, although it's dull it's the only way

muy31: to all possible positions

muy31: that could have been done by silence

Default avatar.png icecream17: Oh... so the original opponent position can change and differ from the start....

muy31: yes!

Default avatar.png icecream17: yes

muy31: and it can be the new possible positions due to silence

Default avatar.png icecream17: so i spam silence charge at the start. when should i silence?

Default avatar.png icecream17: also many islands look suspiciously similar

muy31: im still working on when to use silence

Default avatar.png icecream17: i'll just use it as soon as possible and see

mchl12: Many islands look similar because they have a minimum size of 2x2 (unless they are along the top or right edge)

muy31: mchl12 the dodge at the end, fantastic AI

muy31: kind of legendary

muy31: mchl12 are you keeping track of how much I know about your position, or are you ignoring it


mchl12: Thanks :) I do keep track of how much you know about me. It should be the second number in my MSG

AntiSquid: wow i drop in ranks a lot :D

muy31: RIP your number is less than my number...

muy31: im talking about mchl's MSG number

struct: mchl12 is the first message the possible enemy positions

muy31: yeah

muy31: it is

mchl12: Yes it is

struct: if yes, then why do you sonar when enemy only has 1 possible possition?

muy31: i was about to ask the question

mchl12: muy31, are you deducing positions based of mine triggers

muy31: no

mchl12: then that is probably it

muy31: i haven't done anything with sonar or mine

muy31: in terms of response to enemy

muy31: placement

mchl12: struct, my ai is not perfect by any means

muy31: what can i deduce from mine placement?

muy31: not really a range...

Astrobytes: *triggers

muy31: prompt me

muy31: i can't think of a way

mchl12: for each possible path that the opponent took, i keep track of the possible positions of the mines. When the opponent triggers a mine I can eliminate some possible positions.

muy31: hmm

blasterpoard: mchl12 I tested my traching against you and we have the same output xD

blasterpoard: at least for a couple of turns

muy31: but how do you know when that mine was placed? do you keep track of everything mchl12?

Astrobytes: You get MINE in the opponent actions

muy31: i think i have a foggy idea then

muy31: thx

mchl12: not everything, if I kept track of the exact path the opponent took I would be able to deduce slightly more in very specific cases. But I decided that that would not be worth the time investment yet

AntiSquid: astro are you not competing?

mchl12: But you do need to keep track of all possible positions and the possible mine locations that belong to those.

Astrobytes: Yeah, but slowly. I have a lot to deal with rn

AntiSquid: judging by your rank you seem even less interested than i am

muy31: ok then

Astrobytes: No I'm interested, waiting for some dedicated coding time. Too much on the go rn

Default avatar.png icecream17: i'm playing against myself

Default avatar.png icecream17: what? my updated code has -1 life sigh

muy31: maybe your array has a size of 0

muy31: due to nuances in your code

Default avatar.png icecream17: No, I moved down, up

Default avatar.png icecream17: I somehow added the previous space back to my available spaces....

muy31: oh

muy31: when you determine something from the present situation, do you make changes to your current position array?

Default avatar.png icecream17: my current position is the x and y from the input

Default avatar.png icecream17: (no)

muy31: i meant opponent current position

Default avatar.png icecream17: yes all the time

muy31: how do you make sure that those changes are permanent?

muy31: that they carry on to the next turn?

Default avatar.png icecream17: "var" -> global variable

Default avatar.png icecream17: they changes and stay changed

Default avatar.png icecream17: javascript

muy31: i know

Default avatar.png icecream17: oh so wait.... nevermind i forgot

muy31: does your start position array change permanently?

muy31: too

Default avatar.png icecream17: I don't have a start position array

muy31: so how do you set new start positions?

Default avatar.png icecream17: oh, you mean the opponent? i just add it to the array)

struct: nice wlesavo

Default avatar.png icecream17: vqbaghaqrefgnaqjunggungzrnaf...

muy31: you need to remove everything from the start array, and the new positions possible from the opponent doing silence to the start array, and then reset the totalopps array

muy31: *empty the totalopps array

Astrobytes: struct, when delete?

Default avatar.png icecream17: but how would the opponent array affect mine? [because i move down, up]

struct: I havent coded a line yet

struct: So I cant tell

wlesavo: struct thx!

Astrobytes: lol, fair enough

struct: I have ideas though

muy31: by start array i always meant opponent's possible start positions (my bad for being unclear icecream17)

struct: I still have 24 days

struct: plenty of time

muy31: b/c start + moves = current

Astrobytes: Just waiting on the last day submit then a table flip, then delete?

muy31: so you need to make changes to the start affect the current

muy31: and changes to the current should affect the start

struct: I dont think i will wait for last day this time

Default avatar.png icecream17: my current = x and y [input]. oppCurrent = possibleOpp + totalsOpp

Astrobytes: lol wise move struct :)

struct: Maybe Ill have something soon

Default avatar.png icecream17: oh i'm probably being stupid sorry

muy31: yes, so if we change oppCurrent, it should change possible Opp

muy31: and if we change possibleOpp it should affect oppCurrent

Default avatar.png icecream17: oh i get it now.

muy31: and if we empty totalsOpp oppCurrent = possibleOpps

Default avatar.png icecream17: oh ok... but the problem i was talking about was 'my' ship going 1 down, then 1 up. "Invalid MOVE: Obstacle or already visited cell".

Default avatar.png icecream17: sorry

muy31: for real?!

muy31: my bad then

Default avatar.png icecream17: dont know what happenned with communications

muy31: i have a 2d array called canIGo

muy31: that I change to false for every coordinate that I visited

muy31: after printing my move, i set the coordinate to false, so that my move function does not take a move that will go on to that sqaure into account

Default avatar.png icecream17: i delete the possible space but somehow it didn't work

muy31: my bad i wasn't paying attention

muy31: have you tried console.error-ing possible things?

muy31: just to debug it yourself icecream17

muy31: also, i recommend you keep playing against the wood 1 boss instead of yourself

muy31: Do you think that I should go out of my way to avoid mines completely?

muy31: can one silence through one's visited cells?

Astrobytes: One cannot

Astrobytes: "Silence requires 6 charge actions to load. This allows you to move 0 to 4 cells in a given direction (not visiting already visited cells or islands). Your opponent will not know in which direction or how far you've moved."

muy31: thx

struct: USA has more cases than china now

struct: than china had*

pmor: confirmed....and I'm not sure how reliable china's numbers are.

struct: We both think the same dont worry

pmor: but the people here aren't taking self-quarentine as seriously as china did.

struct: HealthCare in America its a bit harsh isnt it?

pmor: Its incredibly expensive if you don't have insurance

Swagboy: Chinese governement knows how to be persuasive

struct: mchl12 I found timeout on a replay

struct: do you want it?

Zenoscave: good guy struct helping player in rank 1

struct: i think he knows he timeouts

struct: The enemy had 25k possible states

Beerus: i defetead the wood 2 without shooting torpedo

muy31: cause it hurts itself pretty stupidly


muy31: honestly beerus dont expect that is ever going to happen with anybody else's AI

Astrobytes: Beerus you can get to Bronze without shooting a torpedo

muy31: yes you can, but not b/c opponent is hurting itself

Astrobytes: Indeed

Default avatar.png icecream17: somehow when the opponent silences it changes stuff....

muy31: is there a way to determine the location of the mines?

struct: well you know it can be in 1 out of 4 spots

struct: that is if you know is exact position

struct: his*

muy31: yes

muy31: true

Default avatar.png icecream17: I fixed a bug that made 0 opponent positions, but even though nothing's wrong there's now too many positions and ii'm losing....

Default avatar.png icecream17: Oh. Nevermind, another bug solved it.

Astrobytes: Bugfix is bug to fix bug. The foundation of all great software :D

Default avatar.png icecream17: submitting

Default avatar.png icecream17: Oof 8 losses of the first 10

Default avatar.png icecream17: oh wait... resubmitting

Default avatar.png icecream17: 4 losses... better

egaetan: lot better

Ayo35: Sup

Ayo35: Sup

Default avatar.png icecream17: hi

Ayo35: hi

Default avatar.png icecream17: 40% of the time: I win with 6 lives. 60% of the time: Boss wins with 1 life. This is so annoying.

struct: Seems like once boss detects you, you cant escape

Default avatar.png icecream17: I should silence later than move 7...

Default avatar.png icecream17: Math.random() > 0.95 should do good

Swagboy: haha sounds about right

Default avatar.png icecream17: It's a tie! Wow.

Default avatar.png icecream17: I added one line of code and I won with 6 lives (brainache)

Default avatar.png icecream17: My awesome if statement (used twice to solve bug): if (x < n OR (x < o AND rl AND (rl.i(q) isNot p)) OR ([a[rl.i(q)], a[rl.i(r)].s().j() isNot t && [a[rl.i(q)], a[rl.i(r)].s().j() isNot u) then b[b.i(M.m(n(o)))] = p

Astrobytes: glwt

struct: your code makes it looks like you are codegolfing

Default avatar.png icecream17: No, it has enters and tabs but i cant do that.

Default avatar.png icecream17: And i(), s(), j(), M.m(), and o() are built in functions.

Default avatar.png icecream17: Oops, forgot to puts the && into And

Default avatar.png icecream17: Oof I also forgot ']' twice

Astrobytes: Not being funny but ther *has* to be a better way to write that mess

Astrobytes: *there

struct: also they are probably not built in functions

Default avatar.png icecream17: shortened to 1 letter

Astrobytes: But why the f would you do that?

struct: I see

struct: you have 100k chars available

Astrobytes: This is not code golf

Default avatar.png icecream17:

Default avatar.png icecream17: it looks better than it looks

Astrobytes: um...

struct: so your code doesnt actually looks like what you pasted here

Default avatar.png icecream17: Yeah, it has enters and tabs. I told you... why do i comment at all

Astrobytes: Why not just paste the code snippet? Why change it?

struct: You can comment is fine, it just looked weird if you coded like that

Default avatar.png icecream17: thanks but i still feel bad

struct: what for?

struct: The screenshot is readable

struct: the code before isnt

Default avatar.png icecream17: hmmm.... code golfing what is that

Default avatar.png icecream17: and idk

Astrobytes: "shortest mode"

AwesomeMan: lololololololololollololololololololololololol

struct: yeah code golf is code solution in the least ammount of chars

Default avatar.png icecream17: i'd think a really complicated language would win those contests

Default avatar.png icecream17: oh well i'm going back

Astrobytes: To...?

Default avatar.png icecream17: figure out another bug

Default avatar.png icecream17: which is not a bug but a result of fixing bugs


Default avatar.png icecream17: awesome

KiwiTae: icecream17 thor never goes north hehe

Default avatar.png icecream17: ...?

Astrobytes: kek

Astrobytes: Kiwi you doing the contest?

KiwiTae: I pressed JoinIn button last night >,< still reading the title

KiwiTae: I am bit busy :( my game going out soon on consoles hehe

struct: your game?

Astrobytes: lol, yeah, as good a reason as any :)

KiwiTae: im AI engineer for a gaming indie studio :D got certified on steam xbox and nintendo switch <3

struct: Which game is it?

Astrobytes: "Peel the Kiwi"

Astrobytes: :P

KiwiTae: Georifters its called trailer is out soon ill share hehe


Astrobytes: Hm, portals and stuff

Astrobytes: Looks like a pretty fast gameplay platformer, the graphics are a bit annoying (just imo) but looks like fun

KiwiTae: >,< its childish graphics haha

KiwiTae: we won best casual at anaheim dreamhack before the pandemic hehe

Astrobytes: Oh nice! How many players?

KiwiTae: 1 to 4 players

KiwiTae: got a coop mode for campaign too

Astrobytes: cool, looks like it'd be fun with > 2 players for sure

Astrobytes: Oh cool, coop would be cool for 2 player

KiwiTae: it is .. thats why its not out yet.. fucking playing it all afternoons at the office >,< slowed down the production hehe

KiwiTae: jk~

Astrobytes: hahaha :D

KiwiTae: and we have fancy cosplay for the characters

Default avatar.png Sneffy: Hey! someone available for a question in c++ ?

Astrobytes: lol of course.

KiwiTae: Sneffy sure

Default avatar.png Sneffy: I am playing csb right know and i have 3 class

Astrobytes: Right I gotta go, later Kiwi

KiwiTae: see you pewpew

Default avatar.png Sneffy: Point, checkpoint and pod

KiwiTae: hehe CSB

Default avatar.png Sneffy: chekcpoint and pod both have point

KiwiTae: yes

Default avatar.png Sneffy: i have a function in point class that return distance between 2 point

Default avatar.png Sneffy: if i use pod->dist(checkpoint) it works

Default avatar.png Sneffy: but i have a function score() in my pod class

Default avatar.png Sneffy: and when i do this->dist(checkpoint)

Default avatar.png Sneffy: it says it cannot convert checkpoint to point

Default avatar.png Sneffy: i wonder why i can use the function in my main and not in my pod class function

KiwiTae: maybe cast (point)checkpoint

Default avatar.png Sneffy: it works

Default avatar.png Sneffy: but why do i need to cast in this case

Default avatar.png Sneffy: and not when i use it outside of pod class

KiwiTae: do you have your Checkpoint class after pod class in your file?not sure that would affect

Default avatar.png Sneffy: yes

Default avatar.png Sneffy: i'll try to make it before

Default avatar.png Sneffy: and test again

Default avatar.png Sneffy: 2 sec

Default avatar.png Sneffy: Okey that was it

Default avatar.png Sneffy: Thanks you !

KiwiTae: np :D