Difference between revisions of "User:Tkiesel/Dev Notebook"
m (More detail.) |
m (link fix) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[User:Tkiesel/Copernicus|Copernicus]] dev sandbox, notes and such | |
− | + | == Timing == | |
− | # | + | |
− | # | + | === Plan === |
− | # | + | |
− | # | + | In order to do stat decay right, I realized that I need proper timekeeping. Rather than try to work with rounds and ticks, I'll keep a single '''''long''''' that holds the elapsed ticks since the start of the match. Stat decay becomes easier to deal with in a more granular fashion with cross-round timekeeping. |
− | + | ||
+ | Since I'm at it, paying attention to time means I can do proper(ish) interpolation of enemy state in melee and after skipped 1v1 turns. | ||
+ | |||
+ | === Notes and Reminders === | ||
+ | |||
+ | * Stop counting ticks if Copernicus is dead or all enemies are dead. | ||
+ | * Test across rounds. | ||
+ | * Probably go with linear stat decay or something more CPU-friendly. Half-lives were murder in deBroglie, and caused use of a less effective decay-by-round strategy. | ||
+ | |||
+ | === To Do === | ||
+ | |||
+ | # <del>Work this code up in barebones SittingDuck Copernicus.</del> | ||
+ | # <del>Move code to Universe.</del> | ||
+ | |||
+ | == Universe == | ||
+ | |||
+ | === Plan === | ||
+ | |||
+ | The Bot class is going to get a complete clean-out. A Bot no longer handles another Bot as enemy. This prevented any melee work and made deBroglie a 1v1 specialist. In Copernicus, there will be one Bot per robot in the match and pairwise stats between bot pairs (and thus 1v1) will be handled by another Object. For performance, each bot will keep a rolling buffer of previous state now, rather than instantiating a stipped down copy of itself as done previously. | ||
+ | |||
+ | The Wave class needs a similar cleanout. The precise intersection code and basic structural elements should stay from deBroglie, but the Wave itself should no longer handle its own BracketHist objects. Let a customized stats object do that. | ||
+ | |||
+ | === Notes and Reminders === | ||
+ | |||
+ | * Waves should be timestamped with firetime. This lets the stats object index Bot situation from n ticks ago to get the fully proper stats picture. This also lets Copernicus use Gun Heat Waves by launching expected waves for surfing, then tagging/updating/deleting them later on as needed. | ||
+ | |||
+ | === To Do === | ||
+ | |||
+ | # Clean out and stip down Bot. | ||
+ | # Add time awareness and previous state buffer to Bot. | ||
+ | # Add state interpolation to Bot. | ||
+ | # Clean out Wave. | ||
+ | # Hunt for any performance improvements in the Wave intersection code. | ||
+ | # Get Universe to cleanly handle the new Bots. | ||
+ | # Write PSO (see below) to handle Bots and Waves. | ||
+ | |||
+ | == Pairwise Stats Object == | ||
+ | |||
+ | === Plan === | ||
+ | |||
+ | This needs a design, and a name! | ||
+ | |||
+ | === Notes and Reminders === | ||
+ | |||
+ | === To Do === | ||
+ | |||
+ | == BracketHist == | ||
+ | |||
+ | === Plan === | ||
+ | |||
+ | The bit of code I'm happiest with from deBroglie, all told. All this needs is bullet shadows and any performance/kernel tweaks I can give it! | ||
+ | |||
+ | === Notes and Reminders === | ||
+ | |||
+ | * Bullet shadows need to be removable. This means they can't simply be baked into the histogram. Therefore, surfing danger lookup gets more expensive. :( This means performance gains in other areas must be found. | ||
+ | |||
+ | === To Do === | ||
+ | |||
+ | # Implement Bullet Shadows.. addable and removable. | ||
+ | |||
+ | == Melee == | ||
+ | |||
+ | === Plan === | ||
+ | |||
+ | For now, import minimum risk movement and preferential targeting from Leibniz. Use these when # enemies > 1. When enemies <= 1, use 1v1 objects. | ||
+ | |||
+ | === Notes and Reminders === | ||
+ | |||
+ | # The Leibniz targeter chooses a bot to shoot at, heavily weighting by closeness to other bots and by closeness to death. This isn't exactly the same as the Shadow Melee gun, but not terribly far from it. Should be fun to see how it does. | ||
+ | |||
+ | === To Do === | ||
+ | |||
+ | # Import Leibniz radar, gun and movement into objects callable by Copernicus. | ||
+ | # rewrite the Leibniz code to call on Universe for data. |
Latest revision as of 18:24, 20 February 2013
Copernicus dev sandbox, notes and such
Contents
Timing
Plan
In order to do stat decay right, I realized that I need proper timekeeping. Rather than try to work with rounds and ticks, I'll keep a single long that holds the elapsed ticks since the start of the match. Stat decay becomes easier to deal with in a more granular fashion with cross-round timekeeping.
Since I'm at it, paying attention to time means I can do proper(ish) interpolation of enemy state in melee and after skipped 1v1 turns.
Notes and Reminders
- Stop counting ticks if Copernicus is dead or all enemies are dead.
- Test across rounds.
- Probably go with linear stat decay or something more CPU-friendly. Half-lives were murder in deBroglie, and caused use of a less effective decay-by-round strategy.
To Do
Work this code up in barebones SittingDuck Copernicus.Move code to Universe.
Universe
Plan
The Bot class is going to get a complete clean-out. A Bot no longer handles another Bot as enemy. This prevented any melee work and made deBroglie a 1v1 specialist. In Copernicus, there will be one Bot per robot in the match and pairwise stats between bot pairs (and thus 1v1) will be handled by another Object. For performance, each bot will keep a rolling buffer of previous state now, rather than instantiating a stipped down copy of itself as done previously.
The Wave class needs a similar cleanout. The precise intersection code and basic structural elements should stay from deBroglie, but the Wave itself should no longer handle its own BracketHist objects. Let a customized stats object do that.
Notes and Reminders
- Waves should be timestamped with firetime. This lets the stats object index Bot situation from n ticks ago to get the fully proper stats picture. This also lets Copernicus use Gun Heat Waves by launching expected waves for surfing, then tagging/updating/deleting them later on as needed.
To Do
- Clean out and stip down Bot.
- Add time awareness and previous state buffer to Bot.
- Add state interpolation to Bot.
- Clean out Wave.
- Hunt for any performance improvements in the Wave intersection code.
- Get Universe to cleanly handle the new Bots.
- Write PSO (see below) to handle Bots and Waves.
Pairwise Stats Object
Plan
This needs a design, and a name!
Notes and Reminders
To Do
BracketHist
Plan
The bit of code I'm happiest with from deBroglie, all told. All this needs is bullet shadows and any performance/kernel tweaks I can give it!
Notes and Reminders
- Bullet shadows need to be removable. This means they can't simply be baked into the histogram. Therefore, surfing danger lookup gets more expensive. :( This means performance gains in other areas must be found.
To Do
- Implement Bullet Shadows.. addable and removable.
Melee
Plan
For now, import minimum risk movement and preferential targeting from Leibniz. Use these when # enemies > 1. When enemies <= 1, use 1v1 objects.
Notes and Reminders
- The Leibniz targeter chooses a bot to shoot at, heavily weighting by closeness to other bots and by closeness to death. This isn't exactly the same as the Shadow Melee gun, but not terribly far from it. Should be fun to see how it does.
To Do
- Import Leibniz radar, gun and movement into objects callable by Copernicus.
- rewrite the Leibniz code to call on Universe for data.