Space Fight AI Tournament Idea

User contributed sources that have become inactive, deprecated, or generally unusable. But ... we don't really want to throw them away either.
Post Reply
mambazo
Posts: 652
Joined: Jul 17, 2005 13:02
Location: Ireland
Contact:

Post by mambazo »

yes thats the kind of hackish thinking i was hoping for! DO IT!!
Imortis
Moderator
Posts: 1924
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Post by Imortis »

I would love to participate, but as of right now, I am unable to download your files. I will have to wait until tomarrow...
Thrawn89
Posts: 477
Joined: Oct 08, 2005 13:12

Post by Thrawn89 »

Hmm, not quite done yet, still gotta add that look ahead tracker...only contains a very simple dodger, went way beyond my level in math, but I'd thought Id submit it anyways: Download Here

Oh, btw, it beat up yours pretty good in my trial runs lol:

Code: Select all


--- 05-15-2006 21:44:26 ---
Mambazo beat Thrawn
--- 05-15-2006 21:45:09 ---
Thrawn beat Mambazo
--- 05-15-2006 21:45:24 ---
Thrawn beat Mambazo
--- 05-15-2006 21:45:53 ---
Thrawn beat Mambazo
--- 05-15-2006 21:47:34 ---
Thrawn beat Mambazo
--- 05-15-2006 21:48:37 ---
Mambazo beat Thrawn
--- 05-15-2006 21:50:10 ---
Thrawn beat Mambazo
;-)

Tell me how it does

EDIT:
You know what would be cool? If you modified your source to make it a free for all between all of the AIs we made lol

Thrawn
mambazo
Posts: 652
Joined: Jul 17, 2005 13:02
Location: Ireland
Contact:

Post by mambazo »

Very cool! Your AI kicks Mambazo_AI!...

However, Mambazo2_AI took a glorious revenge! :P

Code: Select all

---------------------------
--- 05-16-2006 03:24:23 ---

Mambazo2 beat Thrawn

Match Duration: 12.14 seconds

Thrawn stats:-
Health:-24
Power: 13.78%
Accuracy: 12.50%
Last words: 

Mambazo2 stats:-
Health: 100
Power: 25.92%
Accuracy: 46.15%
Last words: Engaging.

---------------------------
--- 05-16-2006 03:24:43 ---

Mambazo2 beat Thrawn

Match Duration: 12.13 seconds

Thrawn stats:-
Health:-34
Power: 10.65%
Accuracy: 14.28%
Last words: 

Mambazo2 stats:-
Health: 89
Power: 51.51%
Accuracy: 50.00%
Last words: Engaging.

---------------------------
--- 05-16-2006 03:26:11 ---

Mambazo2 beat Thrawn

Match Duration: 84.08 seconds

Thrawn stats:-
Health:-49
Power: 83.82%
Accuracy:  6.89%
Last words: 

Mambazo2 stats:-
Health: 38
Power: 51.25%
Accuracy: 10.81%
Last words: Locking onto target.
Having all the AI's compete together is a great idea! I'll have to write a NanoFrenzy.bas ;)
mambazo
Posts: 652
Joined: Jul 17, 2005 13:02
Location: Ireland
Contact:

Post by mambazo »

Doing a little tournament with our 3 AI's (cha0s c'mon!)

The line-up:-

Thrawn Vs anonymous1337

anonymous1337 Vs Mambazo2

Thrawn Vs Mambazo2

Each match will be a best of 3, I'll post a link to the results.txt!
STAY TUNED!
Last edited by mambazo on May 16, 2006 2:37, edited 1 time in total.
Zamaster
Posts: 1025
Joined: Jun 20, 2005 21:40
Contact:

Post by Zamaster »

Thatd be maddening! Im still updating mine! It now runs away from you constantly, and when at a safe distance, it starts firing on your trajectory and behind you so there is no escape!!!! BWAHAHAHA!!!
mambazo
Posts: 652
Joined: Jul 17, 2005 13:02
Location: Ireland
Contact:

Post by mambazo »

I can't wait!
mambazo
Posts: 652
Joined: Jul 17, 2005 13:02
Location: Ireland
Contact:

Post by mambazo »

Summary of results!!!

Code: Select all

anonymous1337 Vs Thrawn
-------------------

Thrawn: 2
anonymous1337: 1


anonymous1337 Vs Mambazo2
---------------------

Mambazo2: 3
anonymous1337: 0


Thrawn Vs Mambazo2
------------------

Mambazo2: 3
Thrawn: 0
The full Results.txt can be viewed here...

http://mambazo.langfordtavern.com/zips/Results.txt
mambazo
Posts: 652
Joined: Jul 17, 2005 13:02
Location: Ireland
Contact:

Post by mambazo »

NanoShips_AI.zip now contains all submitted AI's so far so you can battle them to your hearts content!

Note also the updates to NanoHost.bas

http://mambazo.langfordtavern.com/zips/NanoShips_AI.zip
anonymous1337
Posts: 5494
Joined: Sep 12, 2005 20:06
Location: California

Post by anonymous1337 »

Holy crap Mambazo, I lost all times then, eh? Oh well. I think I'm really out now, seeing as I don't know any math beyond what I already programmed.

Heck, I don't understand a good amount that I did put in. It's been nice playing, and I hope to find alternative ways to beat the crap out of you guys.

You've obviously improved Mambazo2 like crazy, seeing as you had 100% accuracy and a 2 second kill on Thrawn the one time.
mambazo
Posts: 652
Joined: Jul 17, 2005 13:02
Location: Ireland
Contact:

Post by mambazo »

That match was a fluke, they started right next to eachother and well, Mambazo2 was the better dodger ;)

The new Mambazo2_AI.bi is included in the latest NanoShips_AI.zip

The dodging code is very special. It knows instantly, regardless of distance, if an incoming laser is on a collision course. So if a laser will 'just miss', the ship ignores it and concentrates on predicting the enemy location :D
anonymous1337
Posts: 5494
Joined: Sep 12, 2005 20:06
Location: California

Post by anonymous1337 »

mambazo wrote:It knows instantly
I bet it's more like, it knows after it updates it's position once :D

I guess I could adapt my .bi to that. I mean yeah, it doesn't sound too hard. I could also update it to track my position and figure out where it'll be moving in a few seconds, to better the laser tracking.

I'd have to use Your Code and Cha0s' code to do that though. *sigh* If only I understand sin and cos and abs.
Last edited by anonymous1337 on May 16, 2006 3:30, edited 1 time in total.
mambazo
Posts: 652
Joined: Jul 17, 2005 13:02
Location: Ireland
Contact:

Post by mambazo »

Well, yah, you got me there, it knows post-instantly ;)

EDIT: What I'm looking forward to seeing is, if someone manages to write code to accurately predict the enemy location (including its acceleration, arc of motion etc), and then fire at the exact perfect point to account for the time it takes for your laser to get there. I've been trying to code this for hours and, well, no, no its not easy at all, haven't a clue how to do it. Mambazo2_AI takes 2 estimates and then aims at the midpoint, so its far from perfect, but doesn't do too badly.
mambazo
Posts: 652
Joined: Jul 17, 2005 13:02
Location: Ireland
Contact:

Post by mambazo »

COS will give you the x coord of a point on the circumference of a circle...

e.g.

x = COS(AngleInRadians) * Radius

will give you the x coord of a point on a circle, at that angle (think of it like a clock, 90 Degrees would be 6 o clock, 180 Degrees is 9 o clock).

SIN gives you the y coord.

ABS just means absolute, and causes a negative value to be positive, and a positive value to stay positive.
cha0s
Site Admin
Posts: 5319
Joined: May 27, 2005 6:42
Location: USA
Contact:

Post by cha0s »

http://fileanchor.com/26694-d

compiles in .15 now and doesn't use static. i came up with a way that isn't hackish, but instead elegant. hope you don't mind =p
Post Reply