
## Artificial Intelligence

AI keeps what the players, including itself, are playing until that move in its mind. It looks at the table and at its hand, and if it has one domino to play, it plays without thinking. If it has got some dominoes more than one to play, it decides what domino it will play by thinking. It tries to estimate the dominoes which are left in the players' hands according to the dominoes which the players have played so far. Game strategy is as follows. 1. It tries to open the number which is left more in its and its partner's hands, 2. It tries to throw the domino, whose addition is bigger, 3. When the numbers in its and its partner's hand contradict, it tries to play according to anyone, either it or its partner, who has lesser dominoes in number, 4. It tries to open the number which is not available in the following player's hand, and this time, it wants its partner to have this number in his/her hand, 5. It follows the double dominoes, and it tries to play the double domino which is opened more than three times, 6. If it has the last of the number which is opened on the table in its hand, it does not play this domino unless it is forced to play it, 7. If it has all of the last numbers of one domino of the opened dominoes in its hand, both teams try to do/reach this number, 8. If there is the possibility of closing, it tries to collect the numbers left in its hand and the numbers on the dominoes which it estimates to be left in its partner's hand. And also it tries to collect the numbers which it estimates to be left in its competitors' hands. If it decides that it and its partner have less, it tries to close the game. 9. It tries to play on a number which its partner opens.

## Estimation Phase

1. When the player says pass, AI understands that the numbers which are in the ends of the chain on the table are not available, 2. If a player plays insistently plays on the domino which he/she has opened, it estimates that this player does not have the domino which is in the other end of the chain, 3. If a player plays on the number which his/her partner has opened, it estimates that this player does not have the other domino which is in the other of the chain.

## 1St Ai-Level

In this level, if AI has a domino to play, it chooses and plays randomly.

## 2Nd Ai-Level

Let's take the players as A, B, C, D as players and D as the computer. Let A be the next player from the computer. The algorithm of D is as follows: It tries to open the domino which is not found in A's hand, and to close the number which is bigger than its in A's hand. It is doing this in this level as follows: At the beginning of the game it distributes the dominoes to the players' hands randomly (without violation of the rules), and according to this distribution it begins to play. As the moves go forward, it puts the dominoes into the true players' hands, and takes a random domino from this player and puts the domino which has been played into the hand of the player who has just played.