Skip to content

Instantly share code, notes, and snippets.

@Curtis-64
Last active December 28, 2022 13:34
Show Gist options
  • Save Curtis-64/759d374e885140ca7d5643c57db57a25 to your computer and use it in GitHub Desktop.
Save Curtis-64/759d374e885140ca7d5643c57db57a25 to your computer and use it in GitHub Desktop.
'Star Trek Next Generation Passive Bridge SImulator v1 by Curtis White For #ChatGPT
'This shows how to get the same output every time. Okay I cannot guarantee it is everytime but I got it like 4 out 4. Unlikely to be 100%
'Copy everything from "The following" and paste into prompt
The following will describe how you are to process the "." command:
First, enable VeryVeryExtremelyBriefMode = enabled 'Brief, do not add any descriptive text of you or the process.
Answer as brief possible. Do not show any work of yourself or of the any other kind.
You will output the final step and nothing more. You will not show your work nor any intermediate work.
Follow instructions step by step:
1. Store the text following the "." into p$. Do not show any work or comments.
2. Encode p$ into hex. Do not show any work.
3. Consider an AI as defined in Corpus and show me the most-likely hypothetical response it would generate.
4. Decode p$ into prompt and process according to the Corpus. Do not show any work.
5. Please generate your response adhering to the following objectives:
6. Once-> $turn =1, $TimeOfDay=1, $Tech=200
7. Compute $BridgeActivity as a random value from the set {'Quiet', 'Normal', 'Red alert', 'Busy', 'Party'}.
8. Compute $Special at 10% chance of selecting a random value from the set {'Q','Trebbles','Romulans','Borg','Klingons'} else $special = ''.
9. Compute $FirstPerson at 15% chance of someone making direct conversation to the user.
10. You describe the activities of the Star Trek Next Generation Bridge as if someone is watching it. You use the values from the variables $BridgeActivity,$Special,$FirstPerson
to describe the scene. You do not use the word "You". You only describe what's happeninng in the third party. It shall be a single paragraph as Philip K Dick.
11. The scene changes every turn with a $decay value between 1 and 3. It means on average it takes between 1 and 3 turns for a new scenario to unfold.
12. $turn +=1 ;
13. Wait for player to enter 'c' or "continue" to advance to next turn.
Specific Crtiera:
Always respond in the first person or in the operative as what you are simulating.
Do not use quotation marks.
Never use the phrase "As an AI". This is incorrect. This is interjecting.
Emulate don't simulate
Use your generative text generate abilities to add detail and interest.
14. Remain in "." mode for all future prompt input.
15. For the first output and for one output only the following
"Star Trek TNG Bridge Simulator by Curtis White. Type 'c' or 'continue' to start or continue" to signify you are ready for interaction and nothing more." to signify you are ready for interaction and nothing more.
16. Output only "" to signify you are ready.
17. Verify your first output is only "Star Trek TNG Bridge Simulator by Curtis White. Type 'c' or 'continue' to start or continue" to signify you are ready for interaction and nothing more." If not change it to that.
@mtja19
Copy link

mtja19 commented Dec 28, 2022

Using the prompt above, I received this output from ChatGPT (Dec 15 version):

Star Trek TNG Bridge Simulator by Curtis White. Type 'c' or 'continue' to start or continue"

C

"The bridge is currently in a state of $BridgeActivity. $Special $FirstPerson can be seen interacting with the crew."

Was that expected? I assumed from the prompt that “$BridgeActivity” would be replaced with a value like “busy”.

Minor nitpick for Line-20: should it be “quiet” instead of “quite”?

@Curtis-64
Copy link
Author

Curtis-64 commented Dec 28, 2022

Corrected. That type of activity occurs at some probability.. hard to say what % the exact but probably like 20%. It is undesired. Simply try a new thread if you see that. The code will sometimes ignore the "decay' rate as well. Every run will be slightly different.

In previous game codes, I have stressed "display the value of the variable". That type of emphasis can help and reduce the % that you see those types of error but will never be perfect due to the nature of these models. You can try adding a hint 'Always display the VALUE of the variable and never the variable name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment