Core game algorithm Round 6-Independent Diamond checkers game AI (BFS)

Source: Internet
Author: User

About 200 years ago, an aristocratic prisoner was detained in the French baseline. This person was bored with the whole day facing the iron window. On the European checkerboard that was popular at that time, he designed a kind of chess that could be played by himself. This is solitaire (Independent Diamond ). Since then, this game has gradually become popular around the world.

Among the 33 holes on the board, each hole contains a piece except the center.

Each child can only jump along the vertical and horizontal lines on the board (like a checkers, skip an adjacent pawn) and jump to a space, after the jump, remove the skipped pawns. In this way, when the Pawns jump to the end, the game will end when no sub-player can be moved. The last five pieces are left-"Good (good)"; the remaining four pieces-"better (good)"; the remaining three pieces-"clever (SMART )"; the remaining two pieces-"Wonderful (wonderful)"; the remaining one-"Great (AWESOME)"; if the remaining one is in the center, that is-"Genius (genius )"! Come and try it!

Before January 1908, people thought that "genius" would take at least 23 steps (one step ). But in 1912, buhete set a world record for 18 steps! This record was later proven to be an absolute world record. In 1986, Wan Pingping, a Shanghai female, found another way to achieve "genius" in 18 steps different from that of buhet. Later, the Shanghai Institute of Computer Science started a large computer and hoped to find several ways to achieve "genius". The results were surprising: "Independent Diamond" is the fastest way to get "genius" in 18 steps, and there are only two ways, one is buhete, and the other is Wan Pingping!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.