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 macros

Macros 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.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^6: Challenge: Algorithm To Generate Bubble Blast 2 Puzzles With Difficulty
  • Download Code