Skip to content

Commit

Permalink
Improved the evolution of the sci-fi pun app
Browse files Browse the repository at this point in the history
  • Loading branch information
ToonTalk committed Jan 21, 2024
1 parent 2034854 commit de4bce9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 20 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 18 additions & 16 deletions apps/space puzzle by Ada and Curio/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,24 @@
document.addEventListener('DOMContentLoaded', () => {
const pages = [
{ link: "first exchange.png",
caption: "The beginning of the conversation"
caption: "The beginning of the conversation with ChatGPT 4 (January 2024)<br>" +
"Started with a prompt that encourages ChatGPT 4 to respond as an expert programmer and a very curious partner."
},
{ link: "second exchange.png",
caption: "As the conversation progresses<br>" +
"Here is the <a href='Space pun game by Ada and Curio.pdf' target='_blank'>log of the entire conversation</a>"
"Here is the <a href='Space pun game by Ada and Curio.pdf' target='_blank'>log of the entire conversation</a> (images lost)"
},
{ link: "SciFi_Adventure_Puzzle.html",
caption: "<i>...Ada and Curio conversing...</i><br><b>Ada:</b> For our starting point, let's pick one puzzle concept.<br>" +
"How about a simple code-breaking puzzle where the player deciphers an alien message to unlock a door?<br><i>...Ada explaining what needs to be done</i><br>" +
caption: "<i>...Ada and Curio conversing about possible ideas...</i><br>" +
"<b>Ada:</b> For our starting point, let's pick one puzzle concept.<br>" +
"How about a simple code-breaking puzzle where the player deciphers an alien message to unlock a door?<br>" +
"<i>...Ada explaining what needs to be done...</i><br>" +
"<b>Me:</b>sounds good<br>"
},
{ link: "SciFi_Adventure_Puzzle_With_Pun.html",
caption: "<i>...Ada and Curio conversing...</i><br>" +
caption: "<i>...Ada and Curio fleshing out some details and proposing jokes...</i><br>" +
"<b>Ada:</b> Let's decide on the type of puzzle and how it will work.<br>" +
"...Remember, if you have any specific ideas for the puzzle or questions, feel free to share!<br>" +
"... Remember, if you have any specific ideas for the puzzle or questions, feel free to share!<br>" +
"<b>Me:</b>I like puns - could that be the puzzle?"
},
{ link: "SciFi_Adventure_Puzzle_Styled.html",
Expand Down Expand Up @@ -125,21 +128,20 @@
"SciFi_Adventure_Puzzle_Corrected.html:62 Uncaught ReferenceError: checkAnswer is not defined" +
"at HTMLButtonElement.onclick (SciFi_Adventure_Puzzle_Corrected.html:62:45)</span>"
},
{ link: "SciFi_Adventure_Puzzle_Proper_Script_Tags.html",
caption: 'Ada: Thank you for checking the console. These error messages are very helpful. The "Uncaught SyntaxError" suggests' +
"there's a problem with the JavaScript syntax, likely a missing parenthesis or similar issue.<br>" +
{ link: "SciFi_Adventure_Puzzle_Corrected_Script.html",
caption: '<b>Ada:</b> Thank you for checking the console. These error messages are very helpful.<br>' +
'The "Uncaught SyntaxError" suggests' +
"there's a problem with the JavaScript syntax, likely a missing parenthesis or similar issue.<br>" +
"<i>...they discuss the error and its correction...</i><br>" +
"<b>Ada:</b> ...You can try out the updated game by clicking this link. Let's see if the issue has been fixed and if the buttons respond as expected now.<br>" +
"<b>Ada:</b> ...You can try out the updated game by clicking this link.<br>" +
"Let's see if the issue has been fixed and if the buttons respond as expected now.<br>" +
"<b>Curio:</b> And if you encounter any more issues or see any more errors in the console, please let us know.<br>" +
"Your help in debugging is really valuable!<br>" +
"<b>Me:</b> working! What does the solve puzzle button do?"
},
{ link: "SciFi_Adventure_Puzzle_Corrected_Script.html",
caption: "Ada: Wonderful to hear it's working!" +
'The "Solve Puzzle" button is currently set up as a placeholder.<br>' +
"Initially, it was meant to demonstrate a simple interaction." +
'When clicked, it simply shows an alert saying "Puzzle Solved!".<br>' +
"<b>Me:</b> I'm seeing this text on top of the game: <span style='color: brown;'>function solvePuzzle() { function checkAnswer(answer) { ...</span>"
{ link: "explaining solve button.png",
caption: "Here is <a href='SciFi_Adventure_Puzzle_Corrected_Script.html' target='_blank'>the last working version of the app</a><br>" +
"It took only 20 minutes to get to this point."
},
{ link: "postscript.html",
caption: "Here is the <a href='Space pun game by Ada and Curio.pdf' target='_blank'>log of the entire conversation</a>"
Expand Down
16 changes: 12 additions & 4 deletions apps/space puzzle by Ada and Curio/postscript.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,23 @@
body {
font-family: Arial, sans-serif;
margin: 20px;
font-size: 30px;
font-size: 28px;
}
</style>
</head>
<body>
<p>The rest of the conversation did not go well.
I suggested "let's get rid of solve puzzle button but if you get it right a new puzzle appears" and a long series of syntax errors occurred.
I asked if it would help to upload the current HTML file and Ada and Curio said it would help. But then it kept getting errors.</p>
I suggested "let's get rid of the 'Solve Puzzle' button and if you answer correctly a new puzzle appears"
but a long series of syntax errors occurred.
I asked if it would help to upload the current HTML file and Ada and Curio said it would help.
But then it kept getting errors.</p>

<p>I almost never see syntax errors and my guess is that the data URL for the image is making it hard for ChatGPT to see and fix the code it authored. The image takes up almost half a megabyte.</p>
<p>I almost never see syntax errors in ChatGPT 4 generate code and my guess is
that the data URL for the image is making it hard for ChatGPT to see and fix the code it authored.
The image takes up almost half a megabyte.</p>

<p>Without this problem we could have continued and removed the punchline from the joke, added more puns, improved the styling,
and removed the 'Solve Puzzle' button.
Each puzzle could have had a diferent background image.</p>
</body>
</html>

0 comments on commit de4bce9

Please sign in to comment.