feat: Add web interface using Pollinations.ai API#2
Open
voodoohop wants to merge 19 commits intolechmazur:mainfrom
Open
feat: Add web interface using Pollinations.ai API#2voodoohop wants to merge 19 commits intolechmazur:mainfrom
voodoohop wants to merge 19 commits intolechmazur:mainfrom
Conversation
- Change API endpoint to a constant for flexibility - Enhance logging with detailed move and collision info - Add exponential backoff for API requests - Adjust max sub-rounds to 2 for game balance - Remove unnecessary config file and constants
- Simplify prompt construction for player responses - Ensure last valid move is selected from response - Introduce player order randomization at game start - Adjust API retry logic for efficiency - Add helper function to shuffle player array
- Deleted llm_feedback.html as it is no longer needed - Removed associated styles and scripts - Cleaned up project directory by eliminating unused files
- Ensure content after last </think> is returned - Log all content before the last </think> tag
- Introduced a new section in the UI to display player thoughts. - Updated `removeThink` function to handle player thoughts. - Randomized player order in conversation phase for varied interactions. - Styled player thoughts with distinct colors for each player.
- Ensure consistent random seed generation - Limit seed range to 0-999999 for better control
- Change game title to "Pump and Dump Game" - Update HTML elements to reflect new game name - Add new script for DOM manipulation Enhance API error handling and logging - Add null checks for API response content - Improve logging for API requests and responses - Consolidate error handling for API calls Revise game logic and scoring system - Implement new scoring rules for "Pump and Dump" - Adjust game constants for shorter rounds - Update player character types and descriptions Improve UI and game flow - Update scoreboard and player labels dynamically - Enhance conversation and move phase transitions - Add auto-advance option for seamless gameplay Simplify prompt templates - Remove redundant game rules from prompts - Streamline conversation and move instructions - Ensure clarity and conciseness in player guidance Refactor CSS for better layout and styling - Adjust track label positioning and styles - Enhance scoreboard appearance and alignment - Improve button and score item styling for clarity
- Include "referrer: 'roblox'" in API request payload - Change default character type to 'trickster' - Adjust MAX_SUB_ROUNDS to 2 for longer conversations - Update PAYOFFS structure for clarity and adjust point values - Optimize move processing with parallel promises - Simplify winner check and round transition logic - Revise prompts for clarity and consistency in instructions
- Introduced reasoning toggle for each player in UI - Updated API endpoint to localhost for development - Implemented prompt caching to improve performance - Adjusted game start logic to load prompts initially - Removed reasoning section from common rules file
- Replace fetch with loadPrompt for prompt loading - Simplify move processing with helper functions - Adjust point calculation logic in common rules - Improve logging for moves and points earned - Remove redundant code and streamline processMoves function
- Lowered temperature in API request for more consistent responses - Changed default character type to 'competitive' - Removed unused playerName variable in functions - Updated character types with 'competitive' and 'selective-ally' - Simplified conversation prompt template by removing redundant line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a web-based interface to the step game that uses the free Pollinations.ai API to simulate LLM responses. The new interface makes it easier to run and visualize the game while maintaining all the original game mechanics.
Key Features:
Technical Changes:
The implementation uses the free Pollinations.ai API, making it accessible to anyone who wants to try the game without needing to set up their own LLM infrastructure.