Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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?
[Discipulus]: the node i discovered yesterday nigth was also interesting

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2016-12-06 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (101 votes). Check out past polls.