Hero location

Is it possible to show me exactly where the hero is sitting here, I can count 33 rows and 20 columns, the readme says 16 tiles vertically and 10 horizontally with the hero expanding 4 blocks.

                    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
                    [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
                    [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
                    [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
                    [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
                    [1, 1, 1, 1, 1, 1, 1, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 0, 4, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]
                    [1, 1, 1, 1, 1, 1, 1, 0, 0, 4, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1]
                    [1, 1, 1, 1, 1, 1, 1, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 1]
                    [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 5, 2, 5, 5, 5, 5, 4, 0, 0, 1]
                    [1, 1, 1, 1, 1, 1, 1, 0, 5, 5, 5, 0, 0, 0, 0, 0, 4, 0, 0, 1]
                    [1, 1, 1, 1, 1, 1, 1, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0]
                    [1, 1, 1, 1, 1, 1, 1, 0, 4, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 5]
                    [1, 1, 1, 1, 1, 1, 1, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
                    [1, 1, 1, 1, 1, 1, 1, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
                    [1, 1, 1, 1, 1, 1, 1, 0, 0, 4, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0]
                    [1, 1, 1, 1, 1, 1, 1, 0, 0, 4, 2, 1, 1, 1, 1, 0, 1, 1, 1, 0]
                    [1, 1, 1, 1, 1, 1, 1, 0, 0, 4, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0]
                    [1, 1, 1, 1, 1, 1, 1, 0, 0, 5, 5, 0, 0, 0, 0, 0, 1, 1, 1, 0]
1 Like

Thanks @Jenique, reason I ask is cause the hero seems to be 4 blocks instead of 1 and the distance difference to the end doesnt add up if the hero is actually 1 block, it makes sense somewhat around the null values, I would’ve expected the array to be 21 x 33/20 x 32/22 x 34 instead of 20 x 33, this would then make sense that the hero is dead in the middle with 1/2 block/s and 10 horizontal, 16 vertical.
With the hero been 4 blocks big, which position of those 4 blocks is the hero’s location, which quadrant of that is the hero’s actual location?

Hi @styphoiz!

You are correct, the hero is 2x2, so 4 blocks total :slight_smile:

1 Like

Hey @styphoiz forgive me, @natash is correct.

I forgot we fixed the windowing issue and added extra solid blocks to the surrounding extra when you are in the corners.

It is an extra row because the hero is 2 x 2

What happens if we dig through the surrounding?

I made a pure random bot and basic visualizer to view the realtime positions and sometimes my bot goes into the negative position.
VideoCapture_20230419-173835

It should turn the solid block into and Air tile

are you attempting to dig through the negative areas?

I did not look at the logs yet, i just randomed the move and draw the current gamestate to a window based on X Y and heroview, and used the same colors given in the rules document, so it is weird it shows the clipping, i can see if i can get the logs for you if that will help

We’re currently working on the logging module so it’s not working at the moment :sweat_smile:

But we will test on on our side as well ^.^

Just a question, is X Y 0,0 the edge of the window boarder or the edge of playable area, cause i think i might of calculated my player position wrong on the visual map, will let you know later

1 Like

Thanks for the feedback, could you advise on the rest of my questions, the calculations don’t quite add up to me?
Is the Readme going to be updated to reflect the corrected setup?

After fixing my visualizer I see its working as intended for now

1 Like

Hi @Kortgat :slight_smile:

Sorry for the delay in getting to your question. 0, 0 is the edge of the playable area. If your hero is at position (0, 0) the remainder of the window outside the playable bounds will be filled with “solid” tiles. We are looking at changing these to a different type of tile entirely to indicate that it can’t be broken.

2 Likes

Sorry about that, upon consulting the code, the X and Y position of the bot state should refer to the lower left corner of the player.

3 Likes

I too am still confused by this - so if the space the Hero occupies is 2x2 and is always in the center of the hero window then surely the hero window should be made up of an even number of rows and columns? An uneven number would mean the the 2x2 hero will be offset by one block.
For example - if the hero window is a 20x32 array then the indexes (Zero-based) of the center 2x2 elments would be
{[8][14], [9][14]},
{[8][15], [9][15]}
//Where [x][y] refers to a particular element in x-row and y-column

If one of these rows is an extra (and should thus be ignored in the process of finding the center 2x2 - which row is the extra that currently brings the total number of rows to 33?

Hey @Koos and @styphoiz

Apologies again for the confusion! We relooked at the code and found that we did not add extra height and width to the player!

Initially the area around the player is doubled by the 16 x 10 so we have 32 x 20 to create the area around the hero (hero window).

But because the player is 2 x 2 then we added an extra height and width so you would expect 34 x 22 . So we were missing 1 width and 2 height. Based off of @styphoiz 's counting of the tiles.

2 Likes

Perfect, thanks @Jenique, is the code correct or can we expect an updated engine?

Yes we are planning bugfix release, latest by tomorrow. ^.^

1 Like

Hi @Jenique any update on the new release?

Good afternoon @styphoiz

Sorry for the delay! you can expect a release out this week ^^

Any chance of a starterpack along with the next release?

I know everyone’s knee deep in the code already.
But I do want to start there for the sake of newer contestants as well.