Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6121679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:48:42+00:00 2026-05-23T15:48:42+00:00

Currently, I am just using two bitvectors, one for red blocks and one for

  • 0

Currently, I am just using two bitvectors, one for red blocks and one for blue. The blocks are stacked atop on another in a 10×10 grid. When an explosion occurs from a bomb for only red blocks in a vertical direction, I just do simple math and check the bitvector for a hit so the worst I have to deal with is 10 checks and a fast look up.

Now, I want to make it so a bomb can destroy all connected red blocks from the start block (connected meaning vertical, horizontal or diagonal from one another).

What would be the best away to approach this? The distribution is random but usually something like 40/60. The things which I have to work with are as I said, the bitvector, block ids and what kind of blocks they are based on their interface.

Is it best just to check 1 or 2 outer rings of blocks every frame on a seperate thread to partition the work (so 20 checks per frame) or is there a more elegant way of doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:48:43+00:00Added an answer on May 23, 2026 at 3:48 pm

    Now, I want to make it so a bomb can destroy all connected red blocks from the start block

    Sounds like a job for the flood fill algorithm.

    The distribution is random but usually something like 40/60.

    I honestly don’t understand what you mean.

    As for implementation details, those will differ per language.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently using two XBees, one of them attached to my computer, and
I'm currently developing an app that uses Core Data. I'm using two stores/configurations, one
I currently have two arrays one the stores a file name and another that
I'm using Eclipse Ganymede to create a web application, but the project's currently just
I'm currently working on a Lotus Notes solution. We're just using Web forms so
I'm using Intelligencia url rewriting currently but have just leased an IIS 7.5 server
I am currently building a web site and I just implemented SqlCacheDependency using LinqToSQL
I just found out about superfish and currently using it on an asp.net. The
I am currently using the ActiveDirectoryMembershipProvider just for authentication on an internal business app
I am currently using a RadTreeView and just switched over to using Load-On-Demand (ServerSideCallback)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.