I've hit a stump! (1 Viewer)

Geeklad

New Member
Joined
Feb 11, 2004
Messages
3
Hey, I am doing my sdd project and I have hit a bit of a problem...
I am trying to construct an algorithm that will make a Choose Your Own Adventure Story. When a scenario comes up for the user, they will have two choices, then they pick one, then from that scenario they have two more choices.
The numbers represent possible solutions:
1
2 3
4 5 6 7
From 1, the choices are 2 & 3, from 2, 4 & 5...
And so on and so forth...
So I came up with this:
n
2n 2n+1
But once the user makes their choice, (say 2n or 2n+1), how do I then assign that scenario so it becomes "n" again???

If anyone feels bored and wants to help me (PLEASE DO!!!!) than give me some advice or construct a sub mod to guide me in the right direction. Thanks alot :rolleyes:
 
T

tactic

Guest
do this n = 2n or n = 2n+1

i am just gonna do this little example i dont really want to think about explaining it so i will jsut do this

var = 1; //current value is 1
var = 2 * var; //2 x 1 (same as your 2n)

new value for var is 2
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top