Android Dominoes

Your pieces:

Player 1 : Computer   Player 2 : PC
Player 3 : System   Player 4 : You

Dominoes are played so that the touching ends match in number. 7 dominoes each are dealt to the 4 players. If a player is unable to play to the layout, he passes that turn. The winner is the first player to run out of dominoes. The loser adds his remaining face numbers to his points. The winner is the player with the least points.

Javascript by Armin Kielack