/** * Moves a card from players hand to the given house. * * @param house the house to add the card * @throws HoCException when there is no card in players hand <br> * when house is closed <br> * when game hasn't started */ public void addCardToHouse(House house) throws HoCException { if (this.playersHandCard == null) throw new HoCException("Player doesn't have any card in hand"); if ((!this.started) || (this.gameOver)) throw new HoCException("Game hasn't started"); house.addCard(this.playersHandCard); }