- Notifications
You must be signed in to change notification settings - Fork43
tk-codes/uno
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
v2.0: Rebuilt the core game logic in domain-driven-design.
Note: GUI is built merely to try out the core domain logic. It is not suitable for serious game. :)
Run Application
Run themain
method in the UnoApp class or use the following command in the terminal:
./gradlew run
Run Unit Tests
./gradlew test
The core game logic is built according toofficial uno rules.
Cards are value objects, i.e. immutable. The following card types are available in Uno:
- Number Card
- Skip Action Card
- Reverse Action Card
- Draw Two Action Card
- Wild Color Card
- Wild Draw Four Card
Initially wild cards don't have a color. When drawn, a new value object is created with the chosen color.
Player
is an entity which contains a list of hand cards to play.
PlayerRoundIterator
manages the players and switches turn as if the players are in a round table.
Game
is the aggregate which maintains the state ofplayers,draw pile anddiscard pile as the cards are played.
Game
aggregate produces domain events usingDomainEventPublisher
.
Subscribers can register for these events and handle them accordingly.
About
UNO - Card Game with Java
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.