Code Monkey home page Code Monkey logo

sa-uno's Introduction

A SCALA UNO Project

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

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

sa-uno's People

Contributors

bxnce avatar haasentimo avatar ostabo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.