I've recently been given a test from a game company in the area.
Before I go on, I consider myself somewhat a new c++ programmer even though I have coded in c++ before. I used it a little bit at my last job and this is probably my first c++ position I applied for, it's almost a test to see where my c++ skills are. I have studied c++ from some of Bjarne Stroustrup's books but beyond that my professional experience is limited.
I am not asking anyone to give me answers for this test. My goal of this post is to see if a more experienced c++ programmer can take a look at this test and tell me if its completely whack or not. I really dont feel my c++ skills are THAT bad but I am banging my head against the desk asking myself "Is this part of the test?! Why would you do it like that?!"
I have worked professionally as a game programmer before but in C# so I feel like I should have somewhat of an idea of how things work in games, but TBH, this is blowing my mind.
A zip of the visual studio project can be downloaded here:
http://shawnfreeman.us/test/programmer_test.zip
Instructions for the assignment can be found in the ReadMe.txt
Again, I'm not asking anyone to simply solve the test for me, just someone to look it over and tell me if I'm crazy or not for thinking this is weird.
1. I find it odd that in the FindTargets method, potentialTargets is only ever the first 30 elements of all the objects created. (Part of the test?)
2. Why bother with a 3rd array called "potentialTargets". This program is simple and the only criteria to be a target is distance. Why not just setup 1 other array(array = all objects that are close enough), and stuff it with the objects whose' distance is less then lethal distance.
These are just a few examples of what I'm confused above.