angel-manuel / COSMOSpheres

3 stars 7 forks source link

Kamikaze Counter #35

Open Wxalex98 opened 10 years ago

Wxalex98 commented 10 years ago

Added dodge, push and main alternPos with a default escape target. Forget about the kamikaze detecting part, salok's one is better. I made this pull request for making the program easier to improve with both files.

angel-manuel commented 10 years ago

How it should be called from the main code?

Wxalex98 commented 10 years ago

Dodge, for example El 01/12/2013 16:45, "angel-manuel" notifications@github.com escribió:

How it should be called from the main code?

— Reply to this email directly or view it on GitHubhttps://github.com/angel-manuel/COSMOSpheres/pull/35#issuecomment-29575969 .

angel-manuel commented 10 years ago

I don't understand

Wxalex98 commented 10 years ago

LOL sorry, i misunderstood the question xD. It should be predict_kamikaze(), but I think i'll create a void later just for dodging to let the main file directly access the code in case of problems.

angel-manuel commented 10 years ago

OK, i am willing to test this.

Wxalex98 commented 10 years ago

@Salok We can use both counter strategies depending on the place where we're being attacked, Example: If we're in the debris field, we use yours and if we're in the items we use mine. Or something like that, i guess.