Skip to content

Alsum/Dominoes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dominoes

Dominoes is a game played with rectangular "domino" tiles!

Version

1.0

Demo

  • 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)]

Todos

  • 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

About

Implementation for dominoes game with python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages