Skip to content

An uno card game implemented in Groovy. Player vs bots in CLI.

License

Notifications You must be signed in to change notification settings

daroshchanka/uno-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uno-game

java

                                 ____ ___        ________
                                |    |   \ ____  \_____  \
                                |    |   //    \  /   |   \
                                |    |  /|   |  \/    |    \
                                |______/ |___|  /\_______  /
                                              \/         \/

The game developed just for fun without looking to any already existing implementations.

A single player can play with 1-9 bots, or 2-10 bot players can play themselves.

There is a basic bot behavior implemented with a simple choose-cart strategy, which might be improved or worsened, implementing corresponding interfaces and extending/adjusting the basic behavior.

Rules

The rules are based on Official Rules, but without points counting and multiple iterations*.

  • * also, Wild Draw Four card can be played without any restrictions and penalties, (but bots play it fairly when no such color or any other options).

Start the Game

Java 17+ is required.

java -jar uno-game-1.0-SNAPSHOT-jar-with-dependencies.jar

Game Process

  • Enter your name and use follow instructions for choose card or color.
  • Press ENTER/RETURN to move forward.
  • Append your input with +U to say UNO!
  • Enter an empty name to skip the game if you like the bots play alone.

Build with Unit and Integration Tests

./mvnw clean verify

Build (skip tests)

./mvnw clean package -DskipTests

Unit Tests Coverage

See target/jacoco-ut/index.html report.

About

An uno card game implemented in Groovy. Player vs bots in CLI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages