Directory

← Back

Game Card

Game card components for creating card games

Author

Rating

Popularity

<100

Game Card contains Card, Deck, CardStack and CardPile components for creating card games using Vaadin 10+.

Card represents a single playing card that can be front or back side up. To avoid cheating the card information is not sent to the browser if the back side is up.

Deck contains a collection of cards and the top card can be drawn.

CardStack contains 0..N cards that are placed below each other so the value of all cards (which are not backside up) can be seen.

A CardPile represents a pile of cards on top of each other. Can also be empty. Nothing but the top card can be shown.

Sample code

Deck deck = new Deck();
deck.shuffle();

add(deck);

add(new Card(deck.removeTopCard()));
add(new Card(deck.removeTopCard()));
add(new Card(deck.removeTopCard()));
add(new Card(deck.removeTopCard()));

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Support for Vaadin 10.0.0.alpha16

Released
2018-02-06
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 10+
Browser
Firefox
Opera
Safari
Google Chrome
iOS Browser
Android Browser
Internet Explorer
Microsoft Edge

Game Card - Vaadin Add-on Directory

Game card components for creating card games Game Card - Vaadin Add-on Directory
Game Card contains Card, Deck, CardStack and CardPile components for creating card games using Vaadin 10+. Card represents a single playing card that can be front or back side up. To avoid cheating the card information is not sent to the browser if the back side is up. Deck contains a collection of cards and the top card can be drawn. CardStack contains 0..N cards that are placed below each other so the value of all cards (which are not backside up) can be seen. A CardPile represents a pile of cards on top of each other. Can also be empty. Nothing but the top card can be shown.
Online