Examples of EstatCasella


Examples of prop.cluster.domini.models.estats.EstatCasella

    {
      return EstatPartida.NO_FINALITZADA;
    }
    else
    {
      EstatCasella estat = tauler.getEstatCasella( fila, columna );

      boolean[][] visitats = new boolean[tauler.getMida()][tauler.getMida()];

      for ( boolean[] fila_visitats : visitats )
      {
View Full Code Here

Examples of prop.cluster.domini.models.estats.EstatCasella

    int maxim_actual;
    int maxim = Integer.MIN_VALUE;
    Tauler tauler = partida.getTauler();
    int mida = tauler.getMida();
    int profunditat = 0;
    EstatCasella fitxa_jugador = EstatCasella.JUGADOR_B;
    if ( estat_casella == EstatCasella.JUGADOR_A )
    {
      fitxa_jugador = EstatCasella.JUGADOR_A;
    }
View Full Code Here

Examples of prop.cluster.domini.models.estats.EstatCasella

  public static void testMouFitxa()
  {
    if ( taulers.size() > 0 )
    {
      String jugador = llegeixParaula( "Escull un jugador (A, B, cap):" );
      EstatCasella fitxa;
      if ( jugador.equalsIgnoreCase( "A" ) )
      {
        fitxa = EstatCasella.JUGADOR_A;
      }
      else if ( jugador.equalsIgnoreCase( "B" ) )
View Full Code Here

Examples of prop.cluster.domini.models.estats.EstatCasella

   * @param casella
   * @return la resistencia de la casella.
   */
  private double resistenciaCasella( Casella casella )
  {
    EstatCasella estat = tauler.getEstatCasella( casella );
    if ( estat == jugador )
    {
      return 0.0;
    }
    else if ( estat == EstatCasella.BUIDA )
View Full Code Here

Examples of prop.cluster.domini.models.estats.EstatCasella

   * @param casella
   * @return resistencia d'aquesta casella (0 si és del jugador, 1 si està buida o inf. altrament.
   */
  private int resistenciaCasella( Casella casella )
  {
    EstatCasella estat = tauler.getEstatCasella( casella );
    if ( estat == jugador )
    {
      return 0;
    }
    else if ( estat == EstatCasella.BUIDA )
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.