Examples of UnoCard


Examples of silvertrout.commons.game.UnoCard

                        return;
                    }
                    /* is the current player trying to play a card? */
                    if(message.startsWith("p ")){
                        try{
                            UnoCard c = new UnoCard(message.substring(2));
                            /* check if the player have that card */
                            if(players.getFirst().cards.contains(c)){
                                /* check if the card match the card that most recently was played */
                                if(topCard.match(c)){
                                    switch(players.getFirst().cards.size()){
View Full Code Here

Examples of silvertrout.commons.game.UnoCard

                }
            }
        }else if(state == State.GAME){
            if(ticks - latestTick == 30){
                getNetwork().getChannel(channelName).sendPrivmsg("Time's up!");
                UnoCard c = deck.drawCard();
                players.getFirst().cards.add(c);
                players.getFirst().user.sendPrivmsg("You picked up: " +c.toString());
                nextPlayer();
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.