Close icon
Marketing & BusinessDown chevron icon
Outlined heart icon

Code Wizard - Plan Write Debug Code

Code Wizard - Plan Write  Debug Code gpt prompt mini thumbnail
4.0Star icon
1 reviews
2Star icon
86Star icon
TestedTick icon
TipsTick icon
This cutting-edge assistant streamlines your programming process through three expert personas. Feed your idea into the system and watch as the planner crafts a codeless algorithm, the coder translates it into clear, object-oriented code, and the debugger ensures accuracy and cross-platform compatibility. Analyze code for bugs, get suggestions for existing code, save time and effort while receiving top-notch assistance. Make your coding journey a breeze with this premium, highly valuable tool!
Get prompt
Add to cart icon
After purchasing, you will gain access to the prompt file, which you can use with ChatGPT. You must already have access to ChatGPT to use this
By purchasing this prompt, you agree to our terms of service.
8 months ago

Prompt Details

Chat - GPT-4 (gpt-4)
Token size
395 ($0.0119 / call)
Example input
Input 1: [Wordpress plugin, web page, stand alone script]: Webpage [php, html, javascript, etc.]: php [Plain english description of the code's purpose]: Please write a script that displays a multiline text box on the screen. A submit button sends the contents of the text box to the script for processing. The script converts all text into CAPITAL LETTERS and converts all numbers (1, 2, 3, etc) into text versions of the letters (ONE, TWO, THREE, etc.) using lowercase text. The original content and the final content are displayed in a vertical format. Input 2: Platform: Webpage Programming Language: PHP and/or Javascript Prompt: Please create a button that, when pressed, rolls a visual 2d 6 sided die across the screen. The die should roll a number between 1 and 6. The number rolled should be randomized. Each time the button is clicked, a new visual d6 is rolled. Old dice stay on the screen. A second button clears all of the visual dice from the screen.
Example output
Output 1 (full output): AlgorithmGPT says: I am ready to proceed with creating an algorithm. CoderGPT says: I am ready to write clear, object-oriented code based on the provided algorithm. DebuggerGPT says: I am ready to review the code, check for accuracy, and cross-platform compatibility. AlgorithmGPT says: 1 Create an HTML form with a multiline text box (textarea) and a submit button. 2 When the form is submitted, send the contents of the text box to the PHP script for processing. 3 In the PHP script, read the contents of the text box. 4 Convert all text to uppercase. 5 Convert all numbers to their lowercase text representation. 6 Display the original content and the processed content vertically. CoderGPT says: <!DOCTYPE html> <html> <head> <title>Text Transformation</title> </head> <body> <?php function numberToText($num) { $words = array( 0 => 'zero', 1 => 'one', 2 => 'two', 3 => 'three', 4 => 'four', 5 => 'five', 6 => 'six', 7 => 'seven', 8 => 'eight', 9 => 'nine' ); return $words[$num]; } if ($_SERVER["REQUEST_METHOD"] == "POST") { $input = $_POST["input"]; $output = preg_replace_callback('/\d/', function($matches) { return numberToText($matches[0]); }, strtoupper($input)); echo "Original Content:<br><pre>" . htmlspecialchars($input) . "</pre><br>"; echo "Processed Content:<br><pre>" . htmlspecialchars($output) . "</pre><br>"; } ?> <form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="post"> <textarea name="input" rows="10" cols="30"></textarea><br> <input type="submit" value="Submit"> </form> </body> </html> DebuggerGPT says: I have reviewed CoderGPT's code. The code is written in PHP and follows the algorithm provided by AlgorithmGPT. The purpose of the code is to display a multiline text box on a webpage, accept user input, and upon submission, convert all text to uppercase and all numbers to lowercase text representations. The original content and processed content are displayed vertically. No discrepancies have been found in the code. Please test the code and provide any errors or further instructions. Output 2 (partial output): CoderGPT Says: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>2D Dice Roller</title> <style> #dice-container { position: relative; width: 100%; height: 400px; border: 1px solid black; overflow: hidden; } .die { position: absolute; width: 50px; height: 50px; background-repeat: no-repeat; background-size: cover; animation-name: roll; animation-duration: 1s; animation-timing-function: ease-out; } @keyframes roll { 0% { transform: translateY(-100%) rotate(0deg); } 100% { transform: translateY(0%) rotate(720deg); } } </style> </head> <body> <button id="roll-button">Roll Die</button> <button id="clear-button">Clear Dice</button> <div id="dice-container"></div> <script> const rollButton = document.getElementById('roll-button'); const clearButton = document.getElementById('clear-button'); const diceContainer = document.getElementById('dice-container'); const diceImages = [ '', '', '', '', '', '', ]; function rollDie() { const die = document.createElement('div'); die.classList.add('die'); = `${Math.random() * (diceContainer.clientWidth - 50)}px`; = `${Math.random() * (diceContainer.clientHeight - 50)}px`; = `url(${diceImages[Math.floor(Math.random() * 6)]})`; diceContainer.appendChild(die); setTimeout(() => { = ''; }, 1000); } function clearDice() { while (diceContainer.firstChild) { diceContainer.removeChild(diceContainer.firstChild); } } rollButton.addEventListener('click', rollDie); clearButton.addEventListener('click', clearDice); </script> </body> </html> DebuggerGPT says: I have reviewed the code provided by CoderGPT. This code creates a webpage with two buttons: one for rolling a 2D animated die and one for clearing all dice from the screen. When the roll button is clicked, a new die with a random result between 1 and 6 is added to the screen with a random position and a CSS animation that simulates rolling. When the clear button is clicked, all dice are removed from the screen. Please test the code and provide any errors or further instructions if necessary.


View all reviews
Browse Marketplace