There are some bugs that must be fixed:
Dices that disappear from screen
triple 5 gets a score of -200 instead of + 50.
But the main edea works.
The idea is getting a score of 666 before the AI does. You may throw 3 times with 3 (first round) or less dices. triple 2 or triple 4 is a score of + 100, triple 1, 3 or 5 should be +50 and triple 6 means -200. double digits gives a score of 10 times the eyes of the double digits. single digits give a score of the sum of the 3 dices.
here is the link:
please shoot in order to help me to better my code.