Package net.sf.nebulacards.main

Examples of net.sf.nebulacards.main.Tableau


            bids[i] = 0;
            hasBid[i] = false;
            tricks[i] = 0;
      otherHands[i] = rules.getDeck();
        }
        tableau = new Tableau( 4 );
        beenPlayed = new PileOfCards();
    }
View Full Code Here


     */
    public static PileOfCards takeLead( PileOfCards vp, Tableau t,
      int position, Rules rules )
    {
        PileOfCards results = new PileOfCards();
    Tableau tableau = new Tableau( t );
    if (tableau.howManyCardsNotNull() == 0)
      tableau.setLead( position );
    Enumeration cards = vp.elements();
    while (cards.hasMoreElements())
    {
      PlayingCard c = (PlayingCard)cards.nextElement();
            tableau.set( position, c );
      if (rules.whoWinsTrick( tableau ) == position)
              results.add( c );
        }
        return results;
    }
View Full Code Here

      for (int i = 0; i < 4; i++) {
        cardsWon[i] = new PileOfCards();
        m_game.getHands()[i] = new PileOfCards();
      }
      beenPlayed = new PileOfCards();
      tableau = new Tableau();
      GameProcedure[] order = m_game.getProcedureOrdering();
      for (int i = 0; order != null && i < order.length; i++) {
        switch (order[i].getProcedure()) {
        case GameProcedure.DEALCARDS:
          (new DealProc()).runProcedure(coms, m_game);
View Full Code Here

TOP

Related Classes of net.sf.nebulacards.main.Tableau

Copyright © 2018 www.massapicom. 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.