Hey, I am in desperate need of some assistance with this Baffles coding. I do not know where to begin and I am completely confused with the instructions
https://www.daniweb.com/programming/software-development/threads/324780/baffle-game-c#js-quick-reply
the link above is a link to the old thread as a reference.
I am using the c++ language and the Qt Creator.
HELP ME!

What part has you confused? It seems pretty straight forward to me. This sounds like it's very similar to a game called Black Box. Perhaps that wikipedia page will help.

commented: Thanks for that. Another example at https://rosettacode.org/wiki/Black_Box +15

This looked sufficiently entertaining that I kept in touch with one. I'm certain I've done this previously...
I utilized C, as opposed to C++. Here's the all out header:

#define FIELD_ROWS 10 
#define FIELD_COLS 10 
typedef enum { CELL_EMPTY, CELL_NW, CELL_NE } CellType; 
typedef CellType Field[FIELD_ROWS][FIELD_COLS]; 
typedef struct { int x, y; } Location; 
typedef struct { int dx, dy; } Direction; 
typedef struct { Location loc; Direction dir; } Vector; 
void fieldInit(Field);
void fieldPrint(Field); 
void fieldSetCell(Field, Location, CellType); 
CellType fieldgetCell(Field, Location); 
Vector vecFromNum(int); 
int numFromVec(const Vector *); 
void vectorPrint(const Vector *); 
int fire(Field, int);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.