Skip to content

Bxnce/SA-UNO

Repository files navigation

A SCALA UNO Project

Only playable on one computer.
TUI and GUI are both working and running synchron.

TO START THE PROJECT, CLONE THE MASTER, START SBT AND EXECUTE 'Docker/publishLocal' AFTERWARDS EXECUTE THE DOCKER COMPOSE!

Program Badge
GitHub-Actions Scala CI
CoverAlls Coverage Status
Codecov codecov

Alt text

TUI commands and example

Command Description
help / h prints all commands
exit / q quits the program
new / creates a new game
take / + takes a card
place "i" / - "i" places card at index "i"
next / n switches in the next state
undo / z undos the last command
redo / y redos the last undo command
Welcome to UNO! type help for all commands
>>>  help

              all commands for UNO:
              - help | h                       : shows all commands
              - exit | q                       : leaves the game
              - new  |                         : creates a new game
              - take | +                       : adds a random card from the stack to the player
              - place <index> | - <index>      : places the card at <index>
              - next | n                       : goes to the next state   
              - undo | z                       : undo the last command
              - redo | y                       : redo, undos the last undo
>>>  new
>>>  Name1:    Bence
>>>  Name2:    Timo
>>>  new
Name1:    Bence
Name2:    Timo
Bence
+--+
| 7|
+--+

+--+
|G1|
+--+

+--+
| 7|
+--+
Timo

>>>  next
Bence
+--+--+--+--+--+--+--+
|R0|R2|B4|Y4|B8|G6|R8|
+--+--+--+--+--+--+--+

+--+
|G1|
+--+

+--+
| 7|
+--+
Timo
>>>  place 6
Bence
+--+
| 6|
+--+

+--+
|G6|
+--+

+--+
| 7|
+--+
Timo
>>>  undo
Bence
+--+--+--+--+--+--+--+
|R0|R2|B4|Y4|B8|G6|R8|
+--+--+--+--+--+--+--+

+--+
|G1|
+--+

+--+
| 7|
+--+
Timo
>>>  take
Bence
+--+--+--+--+--+--+--+--+
|R0|R2|B4|Y4|B8|G6|R8|G7|
+--+--+--+--+--+--+--+--+

+--+
|G1|
+--+

+--+
| 7|
+--+
Timo

GUI - simple and functional

GUI_create
GUI

Authors:

@Bence Stuhlmann
@Timo Haas

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published