Class Algo2Test

java.lang.Object
objective.common_objective.Algo2Test

public class Algo2Test extends Object

class that test the second algorithm, five cards of the same type that form a diagonal.

  • Constructor Details

    • Algo2Test

      public Algo2Test()
  • Method Details

    • setUp

      public void setUp()
      method executed before every test that create a new algorithm
    • algo2_test1_bassosx

      public void algo2_test1_bassosx()

      Diagonal start on the left bottom of the library

      testing library:

      matrix
      GGGGY
      PBY   P
      CC   P   
      Y   P   Y
         P   CC
      P   GPP
    • algo2_test2_bassodx

      public void algo2_test2_bassodx()

      Diagonal start on the right bottom of the library

      testing library:

      matrix
      PPGGP
      Y   GGP
         Y   BB
      P   Y   P
      PP   Y   
      PGG   Y
    • algo2_test3_unodx

      public void algo2_test3_unodx()

      Diagonal start on the right angle of the second row of the library

      testing library:

      matrix
      PPG   Y
      GP   Y   
      C   Y   B
         Y   PP
      Y   GGP
      GGGPP
    • algo2_test4_unosx

      public void algo2_test4_unosx()

      Diagonal start on the left angle of the second row of the library

      testing library:

      matrix
      P   GGY
         P   YY
      C   P   B
      GY   P   
      YYY   P
      YGGYY
    • algo2_test5_F_bassosx

      public void algo2_test5_F_bassosx()

      Diagonal start on the left bottom of the library (False)

      testing library:

      matrix
      GGGGY
      PBY   P
      CC   P   
      Y   P   Y
               CC
      P   GPP
    • algo2_test6_F_bassodx

      public void algo2_test6_F_bassodx()

      Diagonal start on the right bottom of the library (False)

      testing library:

      matrix
      PPGGP
      Y   GGP
         Y   BB
      P         P
      PP   Y   
      PGG   Y
    • algo2_test7_F_unodx

      public void algo2_test7_F_unodx()

      Diagonal start on the right angle of the second row of the library (False)

      testing library:

      matrix
      PPG   Y
      GP   Y   
      C   Y   B
               PP
      Y   GGP
      GGGPP
    • algo2_test8_F_unosx

      public void algo2_test8_F_unosx()

      Diagonal start on the left angle of the second row of the library (False)

      testing library:

      matrix
      P   GGY
         P   YY
      C   P   B
      GY         
      YYY   P
      YGGYY