Bobot_fuzzy.h

/***********************************************************************
3emeType
bobot_fuzzy.h
Module de logique floue
***********************************************************************/
#ifndef _BOBOT_FUZZY_H
#define _BOBOT_FUZZY_H
/*
#include "../game/g_local.h"
#include "bobot.h"
*/
#define FUZZY_SIZE 4    //4 triangles pour fuzzifier une variable

//Fuzzy Logic (1 Input and 1 Output)
typedef struct {
    const char FuzzyInput[FUZZY_SIZE];   
    const char FuzzyOutput[FUZZY_SIZE];
    const char Table[FUZZY_SIZE];   
} Fuzzy_Rules1_t;

//Fuzzy Logic (2 Input, 1 Output)
typedef struct {
    const char FuzzyInput1[FUZZY_SIZE];   
    const char FuzzyInput2[FUZZY_SIZE];
    const char FuzzyOutput[FUZZY_SIZE];
    const char Table[FUZZY_SIZE][FUZZY_SIZE];   
} Fuzzy_Rules2_t;

#define OUR_HEALTH    0 // our health is 1st variable
#define DIST_HEALTH 1
#define DIST_ENEMY    1
//#define DIST_TEAMMATE 1

#define OUR_AMMO    0
#define DIST_AMMO    1

#define DIST_TEAMMATE 0


// Fonctions


#endif

Créer un site gratuit avec e-monsite - Signaler un contenu illicite sur ce site