in reply to Re^5: Challenge: Algorithm To Generate Bubble Blast 2 Puzzles With Difficulty
in thread Challenge: Algorithm To Generate Bubble Blast 2 Puzzles With Difficulty
Some of the repeated board manipulations or constants should probably be put into macrosMacros are incredibly powerful but if you don't code enough in C to make them second nature they can have the opposite effect as intended
Don't use macros, use functions marked inline instead:
inline int func( int arg ) { // stuff return 1; }
All the benefits of macros with none of the nasty side-effects or opacity.
|
|---|