Dominoes is a game played with rectangular "domino" tiles!
1.0
-
First You need python2.7 installed
-
then run this file to start the game
$ python dom.py
Enter number of players: 2
there is now two players playing
player_one_cards are [(2, 4), (3, 4), (0, 2), (4, 5), (2, 3), (6, 6), (0, 4)]
rest of cards after player one has taken his cards[(0, 0), (0, 1), (0, 3), (0, 5), (0, 6), (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (2, 2), (2, 5), (2, 6), (3, 3), (3, 5), (3, 6), (4, 4), (4, 6), (5, 5), (5, 6)]
player_two_cards are [(0, 6), (4, 4), (2, 2), (4, 6), (5, 5), (0, 3), (3, 6)]
rest of cards after player one and two have taken there cards[(0, 0), (0, 1), (0, 5), (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (2, 5), (2, 6), (3, 3), (3, 5), (5, 6)]
Here is your cards please
select which one you want to play by index: [(2, 4), (3, 4), (0, 2), (4, 5), (2, 3), (6, 6), (0, 4)]
Enter index of element: 0
you have select card (2, 4)
player 2 has selected card (4, 6)
two tails are (2, 6)
now table cards are [(2, 4), (4, 6)]
Here is your cards please
select which one you want to play by index: [(3, 4), (0, 2), (4, 5), (2, 3), (6, 6), (0, 4)]
- Write Tests
- More than two users can play the game (now support two users only).
- Check how won the game
- Check if user has a valid play but he select