updated prompt
This commit is contained in:
@@ -1 +1,11 @@
|
||||
This repo is the start of a high performant pokemon battle simulator. I want you to write a cpp file for pokemon types. I want you to define what a Type is and a function that calculates damage given the 2 types of the pokemon (1 can be none), the type of the attack, and the damage. This should be as performant as possible. Please write unit tests and benchmark tests with different implementations and see which one is more performant. You can find the type multipliers inside the data/type_effectiveness_generation_*.json files. Rapidjson is included in the project. Make sure there are multiple functions for each pokemon generation, preferably using a template.
|
||||
This repo is the start of a high performant pokemon battle simulator.
|
||||
I want you to write a cpp file for pokemon types.
|
||||
I want you to define what a Type is and a function that calculates damage, given the 2 types of the pokemon (1 can be none), the type of the attack, and the damage.
|
||||
This should be as performant as possible.
|
||||
Please write unit tests and benchmark tests.
|
||||
You can find the type multipliers inside the data/type_effectiveness_generation_*.json files.
|
||||
Rapidjson is included in the project.
|
||||
The type multiplier can either be 0, 0.5, 1, 2. when 2 types are multiplied they multiply against each other.
|
||||
We don't use float types, only integer types for the damage calculations.
|
||||
The goal of this repo is to create a battle engine for each pokemon generation, but still be as optimized as possible.
|
||||
This includes the type checking, try to make it possible without having to do any if checks what generation the developer wants.
|
||||
Reference in New Issue
Block a user