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 6844289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:21:30+00:00 2026-05-27T00:21:30+00:00

This is one of the problem i have been working from a long time.This

  • 0

This is one of the problem i have been working from a long time.This is a game of PentaHexes. A player gets to choose one of the 22 pentaHexes and flip/rotate the pentahex according to his/her need, and place the pentaHex in the grid. In the 2 player version of the game, i have to keep a check on end-of-game scenario. A game ends when one of the player fails to keep a pentaHex on the grid.
For your reference, the game grid and pentaHexes are shown in the page 40. if you check this link.

I am looking for an algorithm to do this. I can handle coding !
I can do this with a brute force method which would be something like :

each time a penta hex is placed
find all the unused hexagons in the grid.
check the unused PentaHexes,
get the pattern of PentaHex,
check if you can place any of the pentaHex on the Grid,
if YES,
game is not over.
if NO
game over.

  • 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-27T00:21:30+00:00Added an answer on May 27, 2026 at 12:21 am

    You are trying to optimize something that does not exist yet.

    Implement it first, use your brute-force idea, and then when you have something that works to a fashion, you will have a far better understanding of what needs to happen. This is the time when you start optimizing and improving your code.

    Very, very, rarely does anyone write a piece of code that is perfect in its first iteration.

    Don’t fall into the trap of trying have a complete/final design before you code. It is very rare that all contingencies/problems can be foreseen. Use your design as a guideline and scope delimiter; write your first ‘draft’ program; now you can debug and optimize.

    You can code, so you know it is an iterative process.

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

Sidebar

Related Questions

This is a thought problem, and one I have been wrestling with for about
First time poster, long time reader. I've been having a problem with figuring this
I have been working on this problem for close to 4 days now. I
I've been working on this application but have come across a problem that I
Morning, I have been working on this problem for a few days and cannot
Alright, some of you might have noticed I've been working on this problem off
Okay this one has me stumped.. mainly because i have been working on this
I have a problem with my WCF Data Service, and this one is just
My problem is this one, I am using Sharepoint 2010, I have a form
This is my problem, I have one textbox, one button and one label. Everything

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.