Current Player
@gamelobby.getLogic.getCurrentPlayer.get.name
@if(!TrickUtil.isOver(gamelobby.getLogic.getCurrentMatch.get, gamelobby.getLogic.getPlayerQueue.get)) {Next Player
@for(nextplayer <- gamelobby.getLogic.getPlayerQueue.get.duplicate()) {@nextplayer
} }Tricks Won
PLAYER
TRICKS
@player.name
@(gamelobby.getLogic.getCurrentRound.get.tricklist.filter { trick => trick.winner.contains(player) }.size)
@for((cardplayed, player) <- gamelobby.getLogic.getCurrentTrick.get.cards) {
}
@util.WebUIUtils.cardtoImage(cardplayed) width="100%"/>
@player
Trumpsuit
@gamelobby.getLogic.getCurrentRound.get.trumpSuit
First Card
@if(gamelobby.getLogic.getCurrentTrick.get.firstCard.isDefined) {
@util.WebUIUtils.cardtoImage(gamelobby.getLogic.getCurrentTrick.get.firstCard.get) width="80px"/>
} else {
@views.html.render.card.apply("images/cards/1B.png")("Blank Card") width="80px"/>
}
@for(i <- player.currentHand().get.cards.indices) {
}