casino_plus 0.1.1 copy "casino_plus: ^0.1.1" to clipboard
casino_plus: ^0.1.1 copied to clipboard

discontinued
outdated

A easy way to add casino games into your application. We provide the user‐friendly APIs.

Casino+ #

CasinoPlusHeaderImage

Let's add Casino games into your application. #

  • All you need to do is showing one page. (WARN: in preparation)
  • Display playing card images anywhere.

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 ]
var deck = newDeck();

can show a playing card as a widget

// ♦8
var x = PlayingCard.diamond8;
// Widget
PlayingCardImage( x )

Message #


Hello, This is Casino+ Staff. Thunks for reading this page. 😃


  • Contributions are welcomed! 🎉
  • Please contact me by twitter 🐥

Main developer's twitter account


more info (WARN: in preparation)
https://casino-plus.github.io/documents/