Yay, the board is working!
Kudos to sang-drax, for working SMART as opposed to hard! Congrats.
quzah, C++ vs C actually did make a little difference in shaving some characters off:
1) for each of your 3 includes, useinstead ofCode:#include<c*>
which will save 6 characters (3 spaces, 3 characters)Code:#include <*.h>
2) replace the two-line X and Y #define directives (26 chars) with a single line const
declaration(20 chars).Code:const int Y=11,X=23;
That's 12 characters trimmed. One of the rare instances in which C++ is not biggified compared to C!!
Also, I have a question about your two macros:
Is that "A" in the second line supposed to be substituted from the first line? I didn't know you could do that (macros within macros). Is that standard, or implementation dependent?Code:#define A _[y][x]
#define C(D,E,F,G,H)if(D&&_[E][F]){A|=G;_[E][F]|=H;}else