This course introduces learners to the process of building a web interface for the LLM prediction game using HTML, CSS, and JavaScript. By the end, players can interactively play the game, submit guesses, see scores, and compete on a leaderboard.
Overview
Syllabus
- Unit 1: Building the Game Interface
- Add Root Route to Serve index.html
- Create index.html Template for LLM Prediction Game
- Create Game Interface Container with Title and Description
- Add Start Button to LLM Prediction Game
- Add LLM Info Section
- Add Response Div and Guess Table to Index Template
- Add Hidden Guess Input Area
- Add Result and Leaderboard Sections to Game Interface HTML
- Connect CSS and JavaScript Files to the HTML
- Unit 2: Styling with CSS
- Style the Body Element in CSS
- Center and Style the Game Container
- Improve Heading and Description Styling
- Style the Model Predictions Container
- Style the Guess History Table
- Style Guess Input Field
- Beautify Game Buttons
- Implement Hidden CSS Utility Class
- Unit 3: Making the Game Interactive
- Implement startGame to Fetch Game Data and Initialize State
- Implement the showNextWord Function
- Implement Start Button Event Listener
- Complete the updateGuessTable Function
- Handle Player Guess Submission
- Implement Guess Result Display and Progression Logic
- Implement Score Submission Feature
- Implement Leaderboard Display