Examples of Player


Examples of vrampal.connectfour.core.Player

    verify(session).setAttribute(eq(SESSION_GAME_KEY), anyObject());
  }

  @Test
  public void testPageBeginPlayingGame() {
    Player currentPlayer = mock(Player.class);
    when(currentPlayer.getName()).thenReturn("Test current player");
    when(game.getCurrentPlayer()).thenReturn(currentPlayer);
    when(game.getStatus()).thenReturn(GameStatus.ONGOING);
    when(req.getParameter(ConnectFourServlet.PARAM_PLAY_KEY)).thenReturn("1342");

    servlet.handleRequest(req);
View Full Code Here

Examples of xunome.game.Player

                MultiPlayer game = manager.getGame();
                if (ppos == game.getLocalPlayerPos()) {

                    break;
                }
                Player player = game.getAtualPlayer();
                //It tests if player made a move but doesn't have a card.
                //Player's gotten a card then played it
                if (player.checkHaveCard(game.getAtualColor(),
                     game.getTable().getUpCard()) == Player.NONE) {

                    game.penalize(player, 1);
                }
                int card = data.charAt(1);
                int color = data.charAt(3);
                try {

                   
                    player.setAtual(card);
                    Card getCard = player.getCard(card);
                    //It tests if the player called uno
                    if (player.getNumberOfCards() == 2) {

                        if (data.charAt(4) == 1) {

                            game.penalize(player, 3);
                        } else {
View Full Code Here

Examples of y3.players.Player

*/
public class Program {
 
  public static void main(String[] args) {
    Board b = new Board();
    Player p1 = new Wizard("Arry Poeter", b);
    Player p2 = new Monster("Teletups", b);
    Player p3 = new Monster("Freddy", b);
    Player p4 = new Monster("Kraken", b);
    Player p5 = new Warrior("Don Quixote", b);
    Player p6 = new Warrior("Wolverine", b);
    ThreadViz.showUI();
  }
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.