#ifndef SEARCHPARAMS_H
#define SEARCHPARAMS_H


// includes

#include "protocol.h"
#include "option.h"
#include "uci.h"



// types 

typedef struct {
    int protocol;
    float TCinc;
    // float TCTime;
    //int TCMove;
    int SearchDepth;
    //float TimeLimit[2];
    int NPS;
    int ST;
    //int NextPeriod;
    float SearchTime;
    float maxtime;
    int infinite;   // the search can only be interupted by the user
    int ponder;     // in xboard mode affects format of engine output
                    // implies infinite
    int post;
    int movestogo;
    float timelimit;
} searchparams_t;

// functions

void SearchParamsCreate(searchparams_t *searchparams, 
			protocol_t *protocol);
void SearchParamsCreateUci(searchparams_t *searchparams,
			   uci_t *uci);
#endif
