/*
 * Copyright (C) 2013-2014 Phokham Nonava
 *
 * Use of this source code is governed by the MIT license that can be
 * found in the LICENSE file.
 */
package com.fluxchess.pulse;

final class Value {

  static final int INFINITE = 200000;
  static final int CHECKMATE = 100000;
  static final int CHECKMATE_THRESHOLD = CHECKMATE - Depth.MAX_PLY;
  static final int DRAW = 0;

  static final int NOVALUE = 300000;

  private Value() {
  }

  static boolean isValid(int value) {
    int absvalue = Math.abs(value);

    return absvalue <= CHECKMATE || absvalue == INFINITE;
  }

  static boolean isCheckmate(int value) {
    assert isValid(value);

    int absvalue = Math.abs(value);

    return absvalue >= CHECKMATE_THRESHOLD && absvalue <= CHECKMATE;
  }

}

@@ -175,16 +175,100 @@
 pulse;%0A%0A
+import static com.fluxchess.pulse.Depth.MAX_PLY;%0Aimport static java.lang.Math.abs;%0A%0A
 final cl
@@ -410,22 +410,16 @@
 KMATE - 
-Depth.
 MAX_PLY;
@@ -561,37 +561,32 @@
  int absvalue = 
-Math.
 abs(value);%0A%0A   
@@ -711,24 +711,24 @@
 id(value);%0A%0A
+
     int absv
@@ -734,21 +734,16 @@
 value = 
-Math.
 abs(valu

Add static import in Value