Difficulty

26 June 2011

My exams finished two weeks ago and I've had a lot more time for the game since then. Most of it has gone on the difficulty.

Before, each stage had a fixed speed for the opponent's attacks, and later stages were faster. I chose the speeds by playing the game myself, so they only really suited someone who types like me. Callum types slower than me and kept losing in the second league. The friend I mentioned in January, who can touch type, tried it last week and won every fight without getting hit. She said it was too easy.

Fixed speeds can't work for both of them, so now the opponent's speed depends on the player. The game keeps an estimate of how fast you have been typing recently and sets the opponent's attack timer from that. Someone typing 8 words a minute and someone typing 40 should both get a fight that is about as hard. Each stage still has a minimum speed. I also made mistakes charge the opponent's attack meter, so if you make a lot of mistakes the opponent attacks sooner.

One problem is that you can type slowly on purpose to get an easier opponent. I'm not sure how much this matters. You would still be practising the right keys, and the estimate updates after about one fight. But I don't really like that it's possible.

To test the new system I wrote a robot player. It types the correct key at a fixed speed, and a wrong key a fixed percentage of the time. It can play 100 fights in a few seconds. These are its results with the old fixed speeds, on the last stage of the first league:

With the new system the robot wins between 70 and 85 fights out of 100 at all of those speeds, and accuracy makes more difference than speed. That is what I wanted. The robot isn't the same as a real person though. It never has to look for a key, and its mistakes are spread out evenly. Real people make more mistakes on the keys they learnt most recently. So this only shows that the maths works. I still need to test it with people.

The robot also showed another problem. Brick is the fighter with the strongest attacks, and he could win a fight with two special moves. That is not enough typing. I've added a rule that one hit can't take more than 40% of a full health bar, so every fight needs at least three hits.

Callum is away until July, so he hasn't tried the new version yet.

Older: Stars | Newer: A French keyboard