Programs That Sonnet 3.5 Can Make!
I'm astounded by how well Sonnet 3.5 keeps up at a level of integration that requires thinking about components, files, assets and different technology together. Below are variations of prompts and output apps to test on HuggingFace as next generation programs created using AI Pair Programming (AIPP).
Create an html5 streamlit game of life using aframe and polygons and primitives where the 3d primitives move around in flocks and build buildings and cities when colliding of same type and size. Have them grow when they touch others of same type. Use the interface for st.chat_input and st.chat_message to interact with user and accept commands where with each command once submitted become part of a named chat. Give an input for name and use it in chat allowing user to change name after defaulting it to a common name plus random 2 digit number
Here's an example of an HTML5 Streamlit game of life using A-Frame, polygons, and primitives. In this game, 3D primitives move around in flocks and build buildings and cities when colliding with others of the same type and size. They grow when they touch others of the same type. The user can interact with the game using a chat input, where each command submitted becomes part of a named chat. There's also an input for the user's name, which is used in the chat and can be changed after defaulting to a common name plus a random two-digit number.
<!DOCTYPE html>
<html>
<head>
<title>Game of Life</title>
<script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mind-ar@1.2.0/dist/mindar-image.prod.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mind-ar@1.2.0/dist/mindar-image-aframe.prod.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/streamlit-component-lib@latest/dist/index.js"></script>
</head>
<body>
<div id="game-container">
<a-scene embedded arjs="sourceType: webcam; debugUIEnabled: false;">
<a-assets>
<a-asset-item id="building-obj" src="building.obj"></a-asset-item>
<a-asset-item id="city-obj" src="city.obj"></a-asset-item>
</a-assets>
<a-entity id="flocks">
<!-- Flocks of primitives will be added here -->
</a-entity>
<a-entity id="buildings">
<!-- Buildings will be added here -->
</a-entity>
<a-entity id="cities">
<!-- Cities will be added here -->
</a-entity>
<a-camera-static></a-camera-static>
</a-scene>
</div>
<div id="chat-container">
<input type="text" id="name-input" placeholder="Enter your name">
<div id="chat-messages"></div>
<input type="text" id="chat-input" placeholder="Enter a command">
</div>
<script>
This app uses the matplotlib
library to create an 88-key keyboard model with white and black keys labeled with octaves. The draw_keyboard()
function generates the keyboard visualization and adds annotations for chord players who sing lyrics while reading music chords, paced in 12 or 3/4 steps with rhythm.
When you run this app in Streamlit, it will display the 88-key keyboard model with the specified annotations.