Prompt 1:
I am a high school computer science teacher, teaching web computing with HTML, CSS, JavaScript, Bootstrap5 and p5js. I'd like to create a gamified app that drill students on various HTML tags and their usage. For example 'p' tag is 'paragraph'; 'a' tag is 'anchor for hyperlink' I like how Duolingo tests language vocabulary with a two column matching scenario if that helps. Can you construct an app for me that does this, complete with lots of comments and guidance to help me and my students understand how we could have done this ourselves? Let's start with a single file: tagTest1.html
Response:
- Created
tagTest1.html with a Bootstrap 5 layout and a two-column matching game using JavaScript.
- Included lots of comments and a guidance section for both students and teachers.
Pivotal code snippet:
// --- Data: List of HTML tags and their descriptions ---
const tagPairs = [
{ tag: 'p', desc: 'Paragraph' },
{ tag: 'a', desc: 'Anchor for hyperlink' },
// ...more pairs...
];
// --- Utility: Shuffle an array in place (Fisher-Yates) ---
function shuffle(array) {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]];
}
}
Prompt 2:
I called this 'Tag Test' in the file name; you mentioned 'Tag Matching Game' Can you suggest several options for an engaging, fun, memorable name for this app?
Response:
- Suggested names: TagQuest, TagTastic Match, TagMaster Challenge, HTML Tag Tango, TagMatch Mania, TagTrek, Taggle, TagMatch Hero, TagWiz, TagLinker.
Prompt 4 (this prompt):
I'm teaching my students how to use Copilot in app development and for every app we create, we want to create a 'chat log' of our interactions with you that include the prompts and responses as well as the showcasing of pivotal code snippets that makes the app function. It's for educational and instructive purposes. Can you create a chat log for me, tagTrekChatLog.html that does this, including this prompt? Use it as an opportunity to guide my students in using AI and coding HTML, CSS, JavaScript and Bootstrap5. Please put a link in tagTest1.html that goes to this new page, and a link from the log back to tagTest1.html for convenience.
Response:
- Created
tagTrekChatLog.html to document the AI-assisted development process, including prompts, responses, and pivotal code snippets.
- Added navigation links between the app and the chat log for easy reference.