Monday, February 22, 2010

Gaming Math - Problem 13

I previously wrote on this blog that I am talking two courses this semester: one on scientific computing and one on planning algorithms. Coincidentally, I have recently played a couple games that offer nearly perfect examples to illustrate concepts that we are learning about in these courses. Here is the one about scientific computing the other one will come up soon.

Problem 13: Characteristic Characters

In the HERO System, player characters are defined in part by a list of numerical "characteristics," such as strength, intelligence, dexterity, defensive capability, etc. When creating characters, players spend "character points" (CP) to purchase characteristics. Each characteristic costs a different number of CP per point of the characteristic. Most characteristics only cost 1 CP per point, but some cost more. For example Dexterity costs 2 CP per point because it affects important combat factors such as initiative, and Speed costs a whopping 10 CP per point because every point of speed increases the number of "phases" you get to perform actions each turn. For example if I were to buy 15 points of Dexterity and 5 points of Speed, that would cost (15*2) + (5*10) = 70 total CP. Note that you ARE permitted to buy a negative amount of a Characteristic.

The rules for purchasing Characteristics changed significantly between the 5th edition and 6th edition of the game. In 5th edition, Characteristics were divided into two categories: "base characteristics" and "figured characteristics." Base characteristics were purchased as described above. However, "figured characteristics" each had a base value that you got for free, that was a linear function of the values of the base characteristics you purchased. For example, let's say "maximum hit points" had a base value of (3 * Constitution + 2 * Strength). Then if you bought 15 Constitution and 10 Strength, you would get (3*15 + 2*10) = 65 hit points "for free", and you could then buy more for a given cost in CP per point (or buy a negative amount, effectively "selling back" the hit points you got for free.)

In 6th edition, figured characteristics were eliminated; they instead became treated the same way as base characteristics - you don't get any "free points", you just have to buy them up as normal. Some of the CP-per-point costs of the various characteristics were altered to compensate.

Now here is the question:

Prove that regardless of what the costs and "figured characteristic functions" were in the old system, that it was possible to modify it - changing costs but eliminating figured characteristics - such that every possible combination of characteristics costs exactly the same under the new system as under the old system.

The solution is here.

3 comments:

Dan Mont said...

That was impressive, Alex. And it shook off a few old cobwebs from when I used to know something about linear algebra, like 20 years ago. But I was not about to be able to solve that on my own. At least the answer had nothing to do with eigenvectors. I barely remember what those are.

How is your job going, by the way? And your classes? Do you know that Grandma Pearl and Grandpa Stanley are thinking of visiting you? Maybe you can take them to one of your gaming extravaganzas.

Alexander Mont said...

I learned that my RA funding does extend during the summer, so I will have a job for the summer as well.

I did hear that Grandma and Grandpa were going to come and visit me, and I think I would like to bring them to one of the gaming nights. I was thinking about asking them if they wanted to see D+D but there are a lot of potential problems there (some of the other players might not like it, they might change their mind or not want to stay for the whole thing, they might bother us by asking about what is going on, they might turn out to be Cylons...)

They originaly wanted to come on a Thursday but it's too bad they did not want to come two days earlier, because then I could have taken them to a university-sponsored debate about nationalized health care.

I actually do have one idea for a Gaming Math problem that does, in fact, involve eigenvectors. Do you want me to post it?

Dan Mont said...

Yes, please post the eigenvector one. It will help remember how to use them.

And I think although on the one handGrandma and Grandpa would really like to see your gaming night, that they would probably not want to stay that long. One solution is to just go separately and meet thee, then they can leave whenever they want. But just discuss it with them.

Great news about the RA funding.