Examples of EstatPartida


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

   * @see Ranquing#actualitzaRanquingUsuari(prop.hex.domini.models.UsuariHex)
   * @see RanquingGstr#guardaElement()
   */
  public void finalitzaPartida() throws IOException
  {
    EstatPartida estat_actual = consultaEstatPartida();

    // Si la partida ha finalitzat i no ha començat definint una situació inicial,
    // actualitzem les estadístiques d'usuari
    if ( estat_actual != EstatPartida.NO_FINALITZADA )
    {
View Full Code Here

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

        }
        catch ( IllegalArgumentException excepcio )
        {
          continue;
        }
        EstatPartida estat_partida = partida.comprovaEstatPartida( fila, columna );
        estat_casella = this.intercanviaEstatCasella( estat_casella );
        maxim_actual =
            this.valorMax( partida, estat_partida, Integer.MIN_VALUE, Integer.MAX_VALUE, estat_casella,
                profunditat + 1, profunditat_maxima, fitxa_jugador );
        if ( maxim_actual > maxim )
View Full Code Here

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

          }
          catch ( IllegalArgumentException excepcio )
          {
            continue;
          }
          EstatPartida estat_partida_aux = partida.comprovaEstatPartida( fila, columna );
          estat_casella = intercanviaEstatCasella( estat_casella );
          alfa = Math.max( alfa,
              this.valorMin( partida, estat_partida_aux, alfa, beta, estat_casella, ( profunditat + 1 ),
                  profunditat_maxima, fitxa_jugador ) );
          tauler.treuFitxa( fila, columna );
View Full Code Here

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

          }
          catch ( IllegalArgumentException excepcio )
          {
            continue;
          }
          EstatPartida estat_partida_aux = partida.comprovaEstatPartida( fila, columna );
          estat_casella = this.intercanviaEstatCasella( estat_casella );
          beta = Math.min( beta,
              this.valorMax( partida, estat_partida_aux, alfa, beta, estat_casella, ( profunditat + 1 ),
                  profunditat_maxima, fitxa_jugador ) );
          tauler.treuFitxa( fila, columna );
View Full Code Here

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

      int columna = llegeixEnter( "Escriu la columna de la casella:" );

      try
      {
        EstatPartida estat_partida = partides.get( actual ).comprovaEstatPartida( fila, columna );
        System.out.println( "[OK]\tS'ha calculat correctament l'estat de la partida, " +
                            "que és: " + estat_partida + "." );
      }
      catch ( IndexOutOfBoundsException excepcio )
      {
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.