casino_plus 0.1.3 casino_plus: ^0.1.3 copied to clipboard
A easy way to add casino games into your application. We provide the user‐friendly APIs.
Casino+ #
Let's add Casino games into your application. #
package is here.
https://pub.dev/packages/casino_plus
Prepare #
install
dependencies:
flutter:
sdk: flutter
casino_plus: // add here
import
import 'package:casino_plus/casino_plus.dart';
Use #
the suits of playing cards are defined as an enum
enum Suit {
spade, // ♠︎
heart, // ♥
diamond, // ♦
club, // ♣
}
the numbers(ranks, pips) of playing cards are defined as an enum
enum Number {
num1, // A
num2, // 2
...
num11, // J
num12, // Q
num13, // K
}
playing cards are also difined as an enum
enum PlayingCard {
spade1, // ♠︎A
spade2, // ♠︎2
spade3, // ♠︎3
...
club13, // ♣K
}
can get suit and number from a playing cards
// ♥5
var x = PlayingCard.heart5;
// ♥
print(x.suit);
// 5
print(x.number);
deck is a list of playing card
// [ ♠︎A, ♠︎2, ♠︎3 ... ♣K ]
List<PlayingCard> deck = newDeck();
can show a playing card as a widget
// ♦8
var d8 = PlayingCard.diamond8;
// Widget
var widget = PlayingCardImage(d8);
Message #
Hello, This is Casino+ Staff. Thunks for reading this page. 😃
- Contributions are welcomed! 🎉
- Please contact me by twitter 🐥
Main developer's twitter account
- @Rubydog725 https://twitter.com/Rubydog725