Im trying to make a program for the game overwatch. I want to be able to take in
ID: 3596215 • Letter: I
Question
Im trying to make a program for the game overwatch. I want to be able to take inputs of whatever 6 characters you are currently going against, and then it returns what 6 characters to use in that competitive match.
I have several ideas, but don’t know how to execute this in python. I was thinking of following:
Option 1 : Return statements based on whatever has been input. Not much formulation needed.
Option 2 : Algorithm formulated to compare one character and who their counters are, but the problem will be how could i potentially make it to where which counter (if more than one) is better.
Option 3: Algorithm formulated to compare the whole team composition and return what team composition is best. This option seems good but it lacks a little less variability than option 2 but more than option 1.
I would really to implement option 2 but how would i go about this and how this would look in python? should i make a list? dictionary? need arrays for more organization?
Explanation / Answer
The list will be best fit here.
Below is the logic why
1. Lets take array 1st. It is a basic storage of homogeneous elements but have very less in build operation as compared to list.
2. As you are focused on algorithm 2 you will compare each and every character and find their best counter via algorithms. Here in this case no need to use a dictionary as dictionary have specific use case when we have to map some keys to some value. You can think it as heterogeneous hashmap in java.
3. List will be best fit here as it will give you much more functionality than array and much faster than dictionary. Also there are many in build functionality in list which will help you to do operation easily and quickly.