Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^6: Challenge: Algorithm To Generate Bubble Blast 2 Puzzles With Difficulty

by BrowserUk (Pope)
on Sep 11, 2013 at 16:05 UTC ( #1053517=note: print w/ replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1053517]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2014-08-21 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (134 votes), past polls