Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need to create a "choose your own adventure" type guide - best approach to use

Basically need to ask user a set of questions and gather information along the way. Each question could have impacts on different questions down the road. Another example would be turbo tax's web interface, answering yes on some ?s may trigger future questions.

Seems like this would be a fairly common problem in software so I guess I'm asking if there are any existing solutions/Design Patterns out there that could help. Kind of seems like a state machine, but I think that is an oversimplification.

like image 652
Rob Avatar asked Jul 26 '10 08:07

Rob


1 Answers

State pattern

like image 156
Arseny Avatar answered Nov 15 '22 10:11

Arseny