fix egalite in solo
This commit is contained in:
+49
-47
@@ -1,48 +1,50 @@
|
||||
#ifndef LOCALMODE_H
|
||||
#define LOCALMODE_H
|
||||
|
||||
#include <Adafruit_MPR121.h>
|
||||
#include <Adafruit_NeoPixel.h>
|
||||
#include "pin.h"
|
||||
|
||||
#ifndef _BV
|
||||
#define _BV(bit) (1 << (bit))
|
||||
#endif
|
||||
|
||||
struct MechKey {
|
||||
uint8_t touchID;
|
||||
uint8_t dataPin;
|
||||
bool state;
|
||||
Adafruit_NeoPixel led;
|
||||
};
|
||||
|
||||
struct Coord {
|
||||
int x;
|
||||
int y;
|
||||
};
|
||||
|
||||
extern uint8_t color_pos;
|
||||
extern MechKey keys[];
|
||||
extern const int numKeys;
|
||||
extern int grille[3][3];
|
||||
extern bool btns[9];
|
||||
extern bool joueur1;
|
||||
extern bool isBtnSet;
|
||||
|
||||
|
||||
Coord getCo(int key);
|
||||
bool victoire(int grille[3][3], int joueur);
|
||||
bool allInit();
|
||||
void afficheGrille();
|
||||
void reset();
|
||||
void setBtn(Adafruit_MPR121& cap, uint16_t& lasttouched, uint16_t& currtouched);
|
||||
void readButtonReset();
|
||||
void affichResultat();
|
||||
void turnOff();
|
||||
void menuGame();
|
||||
void menuWin();
|
||||
|
||||
void localModeDuo(Adafruit_MPR121& cap, uint16_t& lasttouched, uint16_t& currtouched);
|
||||
void localModeSolo(Adafruit_MPR121& cap, uint16_t& lasttouched, uint16_t& currtouched);
|
||||
|
||||
#ifndef LOCALMODE_H
|
||||
#define LOCALMODE_H
|
||||
|
||||
#include <Adafruit_MPR121.h>
|
||||
#include <Adafruit_NeoPixel.h>
|
||||
#include "pin.h"
|
||||
|
||||
#ifndef _BV
|
||||
#define _BV(bit) (1 << (bit))
|
||||
#endif
|
||||
|
||||
struct MechKey {
|
||||
uint8_t touchID;
|
||||
uint8_t dataPin;
|
||||
bool state;
|
||||
Adafruit_NeoPixel led;
|
||||
};
|
||||
|
||||
struct Coord {
|
||||
int x;
|
||||
int y;
|
||||
};
|
||||
|
||||
extern uint8_t color_pos;
|
||||
extern MechKey keys[];
|
||||
extern const int numKeys;
|
||||
extern int grille[3][3];
|
||||
extern bool btns[9];
|
||||
extern bool joueur1;
|
||||
extern bool isBtnSet;
|
||||
|
||||
|
||||
Coord getCo(int key);
|
||||
bool victoire(int grille[3][3], int joueur);
|
||||
bool allInit();
|
||||
void afficheGrille();
|
||||
void reset();
|
||||
void setBtn(Adafruit_MPR121& cap, uint16_t& lasttouched, uint16_t& currtouched);
|
||||
void readButtonReset();
|
||||
void affichResultat();
|
||||
void turnOff();
|
||||
void menuGame();
|
||||
void menuWin();
|
||||
bool egalite();
|
||||
|
||||
void localModeDuo(Adafruit_MPR121& cap, uint16_t& lasttouched, uint16_t& currtouched);
|
||||
void localModeSolo(Adafruit_MPR121& cap, uint16_t& lasttouched, uint16_t& currtouched);
|
||||
void localModeSoloExpert(Adafruit_MPR121& cap, uint16_t& lasttouched, uint16_t& currtouched);
|
||||
|
||||
#endif // LOCALMODE_H
|
||||
Reference in New Issue
Block a user