No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
Hi all, I have an interesting problem for which I already have a solution, but I have a feeling my solution is less than elegant. I need to create a Factory class which returns an instance of some child of class Foo. Which child is instantiated depends on the value …
It seems you may want to set temprec equal to 2000 before the loop and use w as your array index inside the fprintf statement. Best of luck, Mage
Let's first address this code snippet:[CODE] if (attackedxtimes == (3 || 6)) { attack (me, c); }[/CODE] "3 || 6" evaluates to "true", which is usually represented by 1. This effectively turns the statement into [CODE]if (attackedxtimes == 1)[/CODE] Also, there's a line of code in battle [CODE]c.hp && me.hp …
The End.
Coding Mage