What will be an algorithm which determines a series of jumps so that all of the pieces except one are eventually removed, and the final piece ends up at the center position in the game Hi-Q (or Brainvita)?
-
Here is a game one can buy in most toy stores, itâs called Hi-Q (or Brainvita). 32 pieces are arranged on a board as shown below: X X X X X X X X X X X X X X X X O X X X X X X X X X X X X X X X X The rules are as follows: ⢠In the beginning, only the centre position is unoccupied. ⢠A piece is allowed to move by jumping over one of itâs neighbours into an empty space. ⢠Diagonal jumps are not permitted. ⢠When a piece is jumped over, it is removed from the board. Write an algorithm which determines a series of jumps so that all of the pieces except one are eventually removed, and the final piece ends up at the center position.
-
Answer:
Using search you could... Make random moves from your list of possible moves. Recording each move in a move list until no move are left. If the current game is less moves that the best game so far copy its redcorded move to best game. Otherwise keep playing random games until you arrive at the goal state of of one in the middle with a minimal amount of moves. There are probably more sophisticated heuristics you could add to eliminate moves that would strand pegs towards the end of the game but that would just reduce the amount of run time needed by a bit.
Gary Miller at Quora Visit the source
Related Q & A:
- What kind of job will I have to do as a computer engineer?Best solution by Yahoo! Answers
- What will fix a cramp?Best solution by ameliaphillips.com.au
- What software i can use in making a video?except the movie maker?Best solution by Yahoo! Answers
- Can some one tell me what the starting hourly rate is for a Postal Custodian? I live in the Tampa area?Best solution by Yahoo! Answers
- What is the best way to negotiate a salary for a new position?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.