Question: in c++ using vectors and functions. three mens morris theres 2 phases, the first is similar to tic tac toe, where a person and the

in c++ using vectors and functions. three mens morris  in c++ using vectors and functions. three mens morris theres 2
theres 2 phases, the first is similar to tic tac toe, where a person and the AI each put down 3 chips. the second phase is to ask the user for a move(place of origin to an adjacent square) and move the chip, then do it with the AI. I need some help with the AI in the first and second phase.

Rules for Three Men's Morris 1. Three men's morris is played by two players, with pieces placed on the points of the lined board shown in the diagram. 2. The board starts empty, each player holding all his pieces in hand. 3. At first, each player in turn puts one piece on the board, at any vacant point. 4. Once all pieces are on the board, a player instead moves one of his pieces along a marked line to an adjacent empty point. Rules for Three Men's Morris 5. If a piece placed or moved as in rules 3 or 4 forms a row of three along a marked line (called a mill), he wins the game. Strategy in Three Men's Morris The standard game can be won by the first player, as pointed out in the Libro de los Juegos, or "Book of Games", of 1283. There are two possible victories, depending upon the second player's moves, the first being: 1. b2, a3; 2. b1, b3; 3. c1, a1: 4.b1-c1, any; 5. b2-c2. The second is 1. b2, b3; 2. a1.c3.3. a3, a2: 4. a1-b1, any: 5. b1-c1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!