21 points poker - Game Hall

Simple and fun 21-point poker game, you may wish to practice a game when you are free to rest, try your luck, two different styles of 21 single game, come and download experience.

game rules:

21 points usually use 1-8 cards, 2-9 cards, calculated according to their original points; K, Q, J, and 10 cards all count as 10 points; A cards can be counted as 11 points, and the dealer gives Each player's card is faced with two cards and two cards are dealt to the dealer himself, one clear card and one dark card. At this time, the player can choose to continue to take the cards or to no longer take the cards. After making up the point, the dealer can compare the size of the current point to see who has a large number of points and who wins, but more than 21 points are regarded as a knock-off.


This product is for entertainment purposes only and does not provide any opportunity to involve real money betting and win real money or prizes. All activities have nothing to do with Apple.


/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */#import "CDVOrientation.h"#import#import@interface CDVOrientation () {}

@end

@implementation CDVOrientation

-(void)screenOrientation:(CDVInvokedUrlCommand *)command

{

    CDVPluginResult* pluginResult;

    NSInteger orientationMask = [[command argumentAtIndex:0] integerValue];

    CDVViewController* vc = (CDVViewController*)self.viewController;

    NSMutableArray* result = [[NSMutableArray alloc] init];


    if(orientationMask & 1) {

        [result addObject:[NSNumber numberWithInt:UIInterfaceOrientationPortrait]];

    }

    if(orientationMask & 2) {

        [result addObject:[NSNumber numberWithInt:UIInterfaceOrientationPortraitUpsideDown]];

    }

    if(orientationMask & 4) {

        [result addObject:[NSNumber numberWithInt:UIInterfaceOrientationLandscapeLeft]];

    }

    if(orientationMask & 8) {

        [result addObject:[NSNumber numberWithInt:UIInterfaceOrientationLandscapeRight]];

    }


    SEL selector = NSSelectorFromString(@"setSupportedOrientations:");


    if([vc respondsToSelector:selector]) {

        if (orientationMask != 15 || [UIDevice currentDevice] == nil) {

            ((void (*)(CDVViewController*, SEL, NSMutableArray*))objc_msgSend)(vc,selector,result);

        }


        if ([UIDevice currentDevice] != nil){

            NSNumber *value = nil;

你可能感兴趣的:(21 points poker - Game Hall)