Hey, sorry for the repost from another thread, but I was inspired tonight to give this another shot after I wrote out my Altitude Rules for Solo. I do only play 4 levels.
Here is what I posted in the other thread:
---------------------------------------------------
To understand where I'm coming from, here is my ideal state when playing altitude:
1. Enemy in arc/range
2. Not in enemies arc/range
3. At same altitude as enemy
4. Have as many climb counters as possible (unless at highest level)
So for AI. The first time per turn a straight is revealed, follow these questions. If yes, stop and do the thing. If no, continue.
(a) Is 1, 3, and 4 met? Straight (or sideslip - see below)
(b) Is 1 met and 3 not met? climb/dive in direction of target
(c) Is 1 and 3 met and 4 is not met? Climb
(d) Is 2, 3, and 4 met? Straight (or sideslip - see below)
(e) Is 2 and 3 met and 4 not met? Climb
(f) Is 2 not met and 3 and 4 met? Flip a coin. Head climb. Tails dive.
(g) Is 2 and 4 not met and 3 met? Dive if able.
(h) After all checks above is 3 not met? Dive/climb in direction of target.
I have a few issues still. One is immelmann. So what I do if I dove or climbed right before is go dive/climb, straight, immelmann, acrobatic pilot. Lol.
This is my rough draft of it. Still working on it.
-------------------------------------------
Tonight, I decided to try this out but without evaluating on a straight, but instead using the first revealed side slip. It actually worked better. Less thinking during the Immelmann. And took care of another issue of evaluating so often. It's not that the AI would even climb so much, but because you are doing this part outside the app, it's nicer if you're not evaluating so often, but yet, still have the planes use elevation.
My biggest problem right now is how the checks are done is very similar to how I play against players. So, the AI and I stay at the same level a lot of the time. Usually only thrown off by Immelmanns.
The longest streak of us being on different elevations was two turns.
I feel pretty set on looking at using the first side slip as the climb/dive, so now I'm going to move on to some other tests.
1. I'm going to try to throw it off. I'm going to do crazy elevation, and not play my style, and see what happens.
2. I'm going to play planes with different climb rates. Which right now, I've been testing with two climb rate 3's.
3. The final test will be adding more planes and see if I've perfected it.
Figured I'd post my progress here for those interested.
Bookmarks