| | |
Looking for some Guidance.
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jul 2007
Posts: 2
Reputation:
Solved Threads: 0
Taking on a pet project to teach myself some things and hone some amateur skills.
Wondering if you could help point me in the right direction and assist me with some technical points as i get stuck.
I have a basic idea of how i would do this,... but i'm not sure whether it is the best way. So ... hence my guidance seeking.
Stage 1 will be a small prototype program,... once i can get it all workin in small form, i will then expand it greatly to an end state that i'm looking for.
Once the program executes. The user will be asked to choose between 3 things.. listed as option ABC or 123. Once they choose,... a random code, ... will give them a result based on their choice. Then they will be given 3 more choices. Random code again.
Just 2 questions asked overall... ending with a summary based on what happened based on their responces.
eg.1st Phase choose A, B or C
If you choose A,... random result of DEF can happen
If you choose B,... random result of GHI can happen
If you choose C,... random result of JKL can happen
2nd Phase You are given another choice based on the random result above.
Person chose C, their random result was L
From L, they are given 3 things to choose from.
If they choose A... random result of MNO can happen
If they choose B... random result of PQR can happen
If they choose C... random result of STU can happen
... summary given...
You choose to do 'x'.... as a result the first random result,.. this led you into situation b.. and you chose 'y'... as a result ... this is what happened.
So there will be alot of stored data as potential outcomes stored.
From choice 1,... 9 possible outcomes.
After Choice 2... could see upto 81 different outcomes 9x9
So over all there would be 90 total outcomes listed in a table. To be randomly drawn form.
..., ... How would you begin coding this..., let me know the best way for me to nut this out. I hope it will teach me alot as a i go.
Once i have this small prototype built.. i plan to expand it.
Project 2 i want to have 'weighted randoms' if possible.. making some out comes more likely then others. Having more choses, more phases.
Any assistence would be greatly appreciated.
Tony Noyeaux
Wondering if you could help point me in the right direction and assist me with some technical points as i get stuck.
I have a basic idea of how i would do this,... but i'm not sure whether it is the best way. So ... hence my guidance seeking.
Stage 1 will be a small prototype program,... once i can get it all workin in small form, i will then expand it greatly to an end state that i'm looking for.
Once the program executes. The user will be asked to choose between 3 things.. listed as option ABC or 123. Once they choose,... a random code, ... will give them a result based on their choice. Then they will be given 3 more choices. Random code again.
Just 2 questions asked overall... ending with a summary based on what happened based on their responces.
eg.1st Phase choose A, B or C
If you choose A,... random result of DEF can happen
If you choose B,... random result of GHI can happen
If you choose C,... random result of JKL can happen
2nd Phase You are given another choice based on the random result above.
Person chose C, their random result was L
From L, they are given 3 things to choose from.
If they choose A... random result of MNO can happen
If they choose B... random result of PQR can happen
If they choose C... random result of STU can happen
... summary given...
You choose to do 'x'.... as a result the first random result,.. this led you into situation b.. and you chose 'y'... as a result ... this is what happened.
So there will be alot of stored data as potential outcomes stored.
From choice 1,... 9 possible outcomes.
After Choice 2... could see upto 81 different outcomes 9x9
So over all there would be 90 total outcomes listed in a table. To be randomly drawn form.
..., ... How would you begin coding this..., let me know the best way for me to nut this out. I hope it will teach me alot as a i go.
Once i have this small prototype built.. i plan to expand it.
Project 2 i want to have 'weighted randoms' if possible.. making some out comes more likely then others. Having more choses, more phases.
Any assistence would be greatly appreciated.
Tony Noyeaux
Looks like you want to implement the choices as a tree. http://www.ibiblio.org/obp/thinkCSpy/index.html has a good example in appendix D and is a great tutorial in general.
HTH
HTH
![]() |
Similar Threads
- unknown harddrive error (Windows NT / 2000 / XP)
- Forms in Random access files (Visual Basic 4 / 5 / 6)
- Writing to an Access Database (Visual Basic 4 / 5 / 6)
- New to C and needing some guidance (C)
- need a little guidance (Java)
- Problems IE 6 Win98 redirected from google to other site (Web Browsers)
- Querying database records (Visual Basic 4 / 5 / 6)
- Connection Problems (Networking Hardware Configuration)
Other Threads in the Python Forum
- Previous Thread: I just started Python...
- Next Thread: Help with: Unqualified exec error
| Thread Tools | Search this Thread |
accessdenied apache application argv array beginner book change code color converter countpasswordentry dan08 dictionary dynamic edit editing enter examples excel file filename float format function gui homework import inches input java keyboard lapse library line lines linux list lists loop microphone mouse movingimageswithpygame mysql newb number numbers numeric output parameters parsing path phonebook plugin port prime programming projects py2exe pygame pyopengl pyqt pysimplewizard python random recursion redirect remote reverse scrolledtext session simple smtp software sprite statictext string strings syntax table tennis terminal text thread threading time tkinter tlapse trick tuple tutorial ubuntu unicode unit urllib urllib2 variable windows wordgame wxpython





