Wednesday, February 11, 2004

The language

Java is the language. I'm still programming away, whenever I find time. That time is usually on Tuesday and Thursday mornings between 8am and 11:15am. I get to school early on those days to program in the library, and my Programming class starts at 11:30.

Not much to talk about, I guess. I'm just up at 11:28pm because I had a stroke of genius that got me excited and I couldn't sleep. I was thinking that in a game that determines the difficulty of play based on the level that you are at would be something like this:

int level = yourCurrentLevel;
difficulty = (level-3)+((int)(Math.random()*6));


This basically says, "Ok, you're level 8? Alright. Your opponent will be any level from 3 below you (level 5) to 2 above you (level 10)." Assuming anything below 3 levels lower would be too easy and any levels greater than 2 above your current level would be too hard.
You could throw a switch or a few if statements in there to determine what happens when a random level of difficulty is selected. Like which opponent at the suitable level to face.

-Bed time now

Followers