DroidFish: Renamed gtb package to tb.

This commit is contained in:
Peter Osterlund 2014-10-12 00:32:56 +00:00
parent b285d6ed6c
commit d5341ed0e1
14 changed files with 67 additions and 64 deletions

View File

@ -27,7 +27,7 @@ static const char** paths = NULL;
JNIEXPORT jboolean
JNICALL Java_org_petero_droidfish_gtb_GtbProbe_init(
JNICALL Java_org_petero_droidfish_tb_GtbProbe_init(
JNIEnv* env, jclass cls, jstring jTbPath)
{
initOk = false;
@ -70,7 +70,7 @@ JNICALL Java_org_petero_droidfish_gtb_GtbProbe_init(
#define BLACK_TO_MOVE 1
JNIEXPORT jboolean
JNICALL Java_org_petero_droidfish_gtb_GtbProbe_probeHard(
JNICALL Java_org_petero_droidfish_tb_GtbProbe_probeHard(
JNIEnv* env, jobject ths,
jboolean wtm, jint epSq, jint castleMask,
jintArray whiteSquares, jintArray blackSquares,

View File

@ -2,59 +2,59 @@
#include <jni.h>
/* Header for class org_petero_droidfish_gtb_GtbProbe */
#ifndef _Included_org_petero_droidfish_gtb_GtbProbe
#define _Included_org_petero_droidfish_gtb_GtbProbe
#ifndef _Included_org_petero_droidfish_tb_GtbProbe
#define _Included_org_petero_droidfish_tb_GtbProbe
#ifdef __cplusplus
extern "C" {
#endif
#undef org_petero_droidfish_gtb_GtbProbe_NOPIECE
#define org_petero_droidfish_gtb_GtbProbe_NOPIECE 0L
#undef org_petero_droidfish_gtb_GtbProbe_PAWN
#define org_petero_droidfish_gtb_GtbProbe_PAWN 1L
#undef org_petero_droidfish_gtb_GtbProbe_KNIGHT
#define org_petero_droidfish_gtb_GtbProbe_KNIGHT 2L
#undef org_petero_droidfish_gtb_GtbProbe_BISHOP
#define org_petero_droidfish_gtb_GtbProbe_BISHOP 3L
#undef org_petero_droidfish_gtb_GtbProbe_ROOK
#define org_petero_droidfish_gtb_GtbProbe_ROOK 4L
#undef org_petero_droidfish_gtb_GtbProbe_QUEEN
#define org_petero_droidfish_gtb_GtbProbe_QUEEN 5L
#undef org_petero_droidfish_gtb_GtbProbe_KING
#define org_petero_droidfish_gtb_GtbProbe_KING 6L
#undef org_petero_droidfish_gtb_GtbProbe_NOSQUARE
#define org_petero_droidfish_gtb_GtbProbe_NOSQUARE 64L
#undef org_petero_droidfish_gtb_GtbProbe_H1_CASTLE
#define org_petero_droidfish_gtb_GtbProbe_H1_CASTLE 8L
#undef org_petero_droidfish_gtb_GtbProbe_A1_CASTLE
#define org_petero_droidfish_gtb_GtbProbe_A1_CASTLE 4L
#undef org_petero_droidfish_gtb_GtbProbe_H8_CASTLE
#define org_petero_droidfish_gtb_GtbProbe_H8_CASTLE 2L
#undef org_petero_droidfish_gtb_GtbProbe_A8_CASTLE
#define org_petero_droidfish_gtb_GtbProbe_A8_CASTLE 1L
#undef org_petero_droidfish_gtb_GtbProbe_DRAW
#define org_petero_droidfish_gtb_GtbProbe_DRAW 0L
#undef org_petero_droidfish_gtb_GtbProbe_WMATE
#define org_petero_droidfish_gtb_GtbProbe_WMATE 1L
#undef org_petero_droidfish_gtb_GtbProbe_BMATE
#define org_petero_droidfish_gtb_GtbProbe_BMATE 2L
#undef org_petero_droidfish_gtb_GtbProbe_FORBID
#define org_petero_droidfish_gtb_GtbProbe_FORBID 3L
#undef org_petero_droidfish_gtb_GtbProbe_UNKNOWN
#define org_petero_droidfish_gtb_GtbProbe_UNKNOWN 7L
#undef org_petero_droidfish_tb_GtbProbe_NOPIECE
#define org_petero_droidfish_tb_GtbProbe_NOPIECE 0L
#undef org_petero_droidfish_tb_GtbProbe_PAWN
#define org_petero_droidfish_tb_GtbProbe_PAWN 1L
#undef org_petero_droidfish_tb_GtbProbe_KNIGHT
#define org_petero_droidfish_tb_GtbProbe_KNIGHT 2L
#undef org_petero_droidfish_tb_GtbProbe_BISHOP
#define org_petero_droidfish_tb_GtbProbe_BISHOP 3L
#undef org_petero_droidfish_tb_GtbProbe_ROOK
#define org_petero_droidfish_tb_GtbProbe_ROOK 4L
#undef org_petero_droidfish_tb_GtbProbe_QUEEN
#define org_petero_droidfish_tb_GtbProbe_QUEEN 5L
#undef org_petero_droidfish_tb_GtbProbe_KING
#define org_petero_droidfish_tb_GtbProbe_KING 6L
#undef org_petero_droidfish_tb_GtbProbe_NOSQUARE
#define org_petero_droidfish_tb_GtbProbe_NOSQUARE 64L
#undef org_petero_droidfish_tb_GtbProbe_H1_CASTLE
#define org_petero_droidfish_tb_GtbProbe_H1_CASTLE 8L
#undef org_petero_droidfish_tb_GtbProbe_A1_CASTLE
#define org_petero_droidfish_tb_GtbProbe_A1_CASTLE 4L
#undef org_petero_droidfish_tb_GtbProbe_H8_CASTLE
#define org_petero_droidfish_tb_GtbProbe_H8_CASTLE 2L
#undef org_petero_droidfish_tb_GtbProbe_A8_CASTLE
#define org_petero_droidfish_tb_GtbProbe_A8_CASTLE 1L
#undef org_petero_droidfish_tb_GtbProbe_DRAW
#define org_petero_droidfish_tb_GtbProbe_DRAW 0L
#undef org_petero_droidfish_tb_GtbProbe_WMATE
#define org_petero_droidfish_tb_GtbProbe_WMATE 1L
#undef org_petero_droidfish_tb_GtbProbe_BMATE
#define org_petero_droidfish_tb_GtbProbe_BMATE 2L
#undef org_petero_droidfish_tb_GtbProbe_FORBID
#define org_petero_droidfish_tb_GtbProbe_FORBID 3L
#undef org_petero_droidfish_tb_GtbProbe_UNKNOWN
#define org_petero_droidfish_tb_GtbProbe_UNKNOWN 7L
/*
* Class: org_petero_droidfish_gtb_GtbProbe
* Class: org_petero_droidfish_tb_GtbProbe
* Method: probeHard
* Signature: (ZII[I[I[B[B[I)Z
*/
JNIEXPORT jboolean JNICALL Java_org_petero_droidfish_gtb_GtbProbe_probeHard
JNIEXPORT jboolean JNICALL Java_org_petero_droidfish_tb_GtbProbe_probeHard
(JNIEnv *, jobject, jboolean, jint, jint, jintArray, jintArray, jbyteArray, jbyteArray, jintArray);
/*
* Class: org_petero_droidfish_gtb_GtbProbe
* Class: org_petero_droidfish_tb_GtbProbe
* Method: init
* Signature: (Ljava/lang/String;)Z
*/
JNIEXPORT jboolean JNICALL Java_org_petero_droidfish_gtb_GtbProbe_init
JNIEXPORT jboolean JNICALL Java_org_petero_droidfish_tb_GtbProbe_init
(JNIEnv *, jclass, jstring);
#ifdef __cplusplus

View File

@ -23,7 +23,7 @@
static bool initOk = false;
JNIEXPORT jboolean
JNICALL Java_org_petero_droidfish_gtb_RtbProbe_init(
JNICALL Java_org_petero_droidfish_tb_RtbProbe_init(
JNIEnv* env, jclass cls, jstring jTbPath)
{
initOk = false;
@ -39,7 +39,7 @@ JNICALL Java_org_petero_droidfish_gtb_RtbProbe_init(
}
JNIEXPORT void
JNICALL Java_org_petero_droidfish_gtb_RtbProbe_probe(
JNICALL Java_org_petero_droidfish_tb_RtbProbe_probe(
JNIEnv* env, jobject ths, jbyteArray jSquares, jboolean wtm,
jint epSq, jint castleMask,
jint halfMoveClock, jint fullMoveCounter,

View File

@ -1,26 +1,26 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class org_petero_droidfish_gtb_RtbProbe */
/* Header for class org_petero_droidfish_tb_RtbProbe */
#ifndef _Included_org_petero_droidfish_gtb_RtbProbe
#define _Included_org_petero_droidfish_gtb_RtbProbe
#ifndef _Included_org_petero_droidfish_tb_RtbProbe
#define _Included_org_petero_droidfish_tb_RtbProbe
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: org_petero_droidfish_gtb_RtbProbe
* Class: org_petero_droidfish_tb_RtbProbe
* Method: probe
* Signature: ([BZIIII[I)V
*/
JNIEXPORT void JNICALL Java_org_petero_droidfish_gtb_RtbProbe_probe
JNIEXPORT void JNICALL Java_org_petero_droidfish_tb_RtbProbe_probe
(JNIEnv *, jobject, jbyteArray, jboolean, jint, jint, jint, jint, jintArray);
/*
* Class: org_petero_droidfish_gtb_RtbProbe
* Class: org_petero_droidfish_tb_RtbProbe
* Method: init
* Signature: (Ljava/lang/String;)Z
*/
JNIEXPORT jboolean JNICALL Java_org_petero_droidfish_gtb_RtbProbe_init
JNIEXPORT jboolean JNICALL Java_org_petero_droidfish_tb_RtbProbe_init
(JNIEnv *, jclass, jstring);
#ifdef __cplusplus

View File

@ -26,7 +26,7 @@ import org.petero.droidfish.gamelogic.Move;
import org.petero.droidfish.gamelogic.Piece;
import org.petero.droidfish.gamelogic.Position;
import org.petero.droidfish.gamelogic.UndoInfo;
import org.petero.droidfish.gtb.ProbeResult;
import org.petero.droidfish.tb.ProbeResult;
import android.content.Context;
import android.graphics.Canvas;

View File

@ -57,8 +57,8 @@ import org.petero.droidfish.gamelogic.TextIO;
import org.petero.droidfish.gamelogic.PgnToken;
import org.petero.droidfish.gamelogic.GameTree.Node;
import org.petero.droidfish.gamelogic.TimeControlData;
import org.petero.droidfish.gtb.Probe;
import org.petero.droidfish.gtb.ProbeResult;
import org.petero.droidfish.tb.Probe;
import org.petero.droidfish.tb.ProbeResult;
import com.kalab.chess.enginesupport.ChessEngine;
import com.kalab.chess.enginesupport.ChessEngineResolver;

View File

@ -34,8 +34,8 @@ import org.petero.droidfish.gamelogic.Pair;
import org.petero.droidfish.gamelogic.Piece;
import org.petero.droidfish.gamelogic.Position;
import org.petero.droidfish.gamelogic.TextIO;
import org.petero.droidfish.gtb.Probe;
import org.petero.droidfish.gtb.ProbeResult;
import org.petero.droidfish.tb.Probe;
import org.petero.droidfish.tb.ProbeResult;
import android.annotation.SuppressLint;
import android.app.Activity;

View File

@ -39,7 +39,7 @@ import org.petero.droidfish.gamelogic.SearchListener;
import org.petero.droidfish.gamelogic.TextIO;
import org.petero.droidfish.gamelogic.UndoInfo;
import org.petero.droidfish.gamelogic.SearchListener.PvInfo;
import org.petero.droidfish.gtb.Probe;
import org.petero.droidfish.tb.Probe;
import android.content.Context;

View File

@ -16,7 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.petero.droidfish.gtb;
package org.petero.droidfish.tb;
import java.util.concurrent.ConcurrentLinkedQueue;

View File

@ -16,7 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.petero.droidfish.gtb;
package org.petero.droidfish.tb;
import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package org.petero.droidfish.gtb;
package org.petero.droidfish.tb;
/** Tablebase probe result. */
public final class ProbeResult implements Comparable<ProbeResult> {

View File

@ -16,7 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.petero.droidfish.gtb;
package org.petero.droidfish.tb;
import java.util.concurrent.ConcurrentLinkedQueue;

View File

@ -1,6 +1,7 @@
package org.petero.droidfish.gtb;
package org.petero.droidfish.tb;
import org.petero.droidfish.gtb.ProbeResult.Type;
import org.petero.droidfish.tb.ProbeResult;
import org.petero.droidfish.tb.ProbeResult.Type;
import junit.framework.TestCase;

View File

@ -1,7 +1,9 @@
package org.petero.droidfish.gtb;
package org.petero.droidfish.tb;
import org.petero.droidfish.gamelogic.Position;
import org.petero.droidfish.gamelogic.TextIO;
import org.petero.droidfish.tb.Probe;
import org.petero.droidfish.tb.ProbeResult;
import android.os.Environment;