Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
Unexpected behavior printing multiple isometric blocks to screen using keyevents.
Post Body

Hi everyone. Ive been spending today working on a simple java program that is supposed to listen for the up down left or right key and print an isometric cube to screen in a new position depending on which key is pressed.

Now that part of the code seems to be working fine (though im sure im over complicating it), but I also have a section of code that is supposed to remove cubes. so if you created 3 cubes going up for example you should be able to press the down key three times and remove all 3 of those cube and than begin to create cubes going downward once those 3 are removed.

There seems to be something funky with my logic because this part of the code only deletes a cube once and than after that seemingly does nothing or in some strange cases creates a ton of duplicates of ImageView cubes.

If anyone could tell me where my logic is flawed I would really appreciate it as Im kind of stumped right now.

link to code below, also If im being too vague or need to supply or clarify any additional information please let me know. Thanks in advance guys.

https://gist.github.com/permawritersblock/95aa0cfcc5de5fca25e6382e31e64b35

Author
User Disabled
Account Strength
0%
Disabled 1 year ago
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
2,867
Link Karma
372
Comment Karma
1,947
Profile updated: 5 days ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago