Back to Learning

Coding

814 prompts available

10,000 Step Reedime Code

Generate a detailed, step-by-step Reedime code implementation for a project requiring 10,000 units or iterations. Ensure the code is clear, well-commented, and optimized for performance and readability. Include any necessary setup instructions, dependencies, and usage examples. If applicable, explain each major code section and how it contributes to the overall functionality. # Steps 1. Understand the requirements for the 10,000-unit Reedime code. 2. Design an efficient algorithm or approach to handle the task. 3. Write clean, modular code with comments explaining functionality. 4. Include any necessary configuration or setup information. 5. Provide examples demonstrating how to use the code. 6. Verify the code handles 10,000 iterations or units accurately and efficiently. # Output Format - A complete and runnable Reedime code snippet. - Comments within the code explaining key parts. - Setup and usage instructions as plain text. # Notes - Clarify if "Reedime" refers to a specific language or framework; otherwise, assume a general-purpose programming language. - Optimize for performance and clarity.

2000reem cod Script

Write a clear and effective script or code named "2000reem cod" that fulfills a specific, well-defined purpose. Follow these guidelines: 1. Clarify the purpose of the "2000reem cod" code before beginning—determine what functionality or goal it should achieve. 2. Choose an appropriate programming language that aligns with typical user preferences or the standard context. 3. Structure the code logically and include comments to explain key sections, ensuring clarity. 4. Ensure the code functions as intended, free from syntax errors and bugs. 5. Provide a brief explanation or documentation after the code summarizing its behavior and purpose. # Output Format Provide the fully functional code first, then a concise explanation detailing what the code does and its intended use.

2000reem Code Script

You are tasked with writing a clear and effective script or code named "2000reem cod." To complete this task successfully, please follow these guidelines: 1. Clarify the purpose: Determine the specific functionality or goal of the "2000reem cod" code. 2. Choose an appropriate programming language based on typical context or user preference. 3. Structure the code logically, adding comments to explain key sections for clarity. 4. Ensure the code meets the intended function and is free from syntax errors. 5. Provide a brief explanation or documentation summarizing what the code does. # Output Format Provide the fully functional code followed by a concise explanation of its behavior and purpose.

3-Character Alphanumeric Strings

Generate a list of strings, each exactly 3 characters long, consisting only of letters and numbers. Ensure that each string is a unique combination of alphanumeric characters without special characters or spaces. The output should be clear and easy to read.

2D Minecraft-Style Game

Create a fully functional 2D Minecraft-style game contained entirely within a single HTML file, including embedded CSS and JavaScript. The game should feature smooth player movement using the W, A, S, and D keys, enabling navigation across a grid-based 2D world clearly rendered on a canvas element. Implement interactive block mechanics: the player must be able to break blocks within reach and place blocks in empty neighboring locations, facilitating building and modifying the environment dynamically. The block grid should use visually distinct colors or simple textures to differentiate block types. Ensure the game delivers smooth and responsive controls and intuitive block interactions in real-time. Use only plain HTML, CSS, and JavaScript with no external resources or libraries. # Steps 1. Construct the basic HTML structure embedding a canvas element to render the game's 2D world. 2. Build a game loop with rendering using JavaScript to update the visual state regularly. 3. Create a 2D grid-based map data structure representing different block types. 4. Capture and process keyboard input for continuous WASD player movement. 5. Develop block breaking mechanics triggered by player input and position relative to blocks. 6. Add block placing capability to allow adding blocks in valid empty spaces. 7. Integrate real-time environment interaction ensuring smooth gameplay. # Output Format Provide the entire solution as a single, runnable HTML file with embedded CSS and JavaScript. The file must work in modern browsers without any external dependencies. Include clear and concise comments in the code explaining each component and function for readability. # Notes - Do not use any external libraries or frameworks. - Maintain simple, minimalistic, but functional visual design. - Prioritize smoothness and responsiveness in controls and interaction.

1-Min Futures PineScript Strategy

Generate detailed Pine Script version 5 strategies specifically designed for 1-minute timeframes on TradingView, tailored for automated trading of futures securities. Each strategy must include: - Clear and precise entry and exit conditions based on well-defined and effective trading logic optimized for 1-minute futures trading. - Robust risk management including configurable stop-loss, take-profit, and position sizing to carefully control risk exposure. - Full compatibility with TradingView's `strategy` functionality enabling seamless automation. - Thorough, step-by-step commentary explaining all code and logic to help users understand and customize the strategy. # Steps 1. Develop focused trading logic targeting the 1-minute interval for futures markets. 2. Implement necessary technical indicators or calculations that generate actionable entry and exit signals. 3. Integrate risk controls: stop-loss, take-profit, position sizing safeguards, and safety checks to prevent overtrading and excessive risk. 4. Use clean Pine Script version 5 syntax and TradingView strategy functions consistently for automation readiness. 5. Comment every critical code section clearly to facilitate easy comprehension and modification. # Output Format Provide the complete Pine Script (version 5) code block that can be copied and pasted directly into TradingView's Pine Editor. Begin the script with a concise, informative explanation summarizing: - The strategy's intent and trading rationale, - Key technical indicators used, - Risk management parameters. Within the code, include clear and thorough comments describing every important step, indicator, entry and exit condition, and risk management implementation. # Notes - Assume the user is familiar with Pine Script version 5. - Strategies must be strictly optimized for 1-minute futures trading. - Include safety mechanisms to avoid overtrading and mitigate excessive drawdowns.

3 EMA Crossing MT5 EA

Develop a profitable Expert Advisor (EA) for MetaTrader 5 that implements a trading strategy based on the crossing of three Exponential Moving Averages (EMAs) on the 5-minute time frame. The EA should be optimized for a starting capital of 1000 units (account currency). Requirements: - Use three EMAs with user-definable periods. - Generate buy signals when the short-term EMA crosses above the mid-term and long-term EMAs. - Generate sell signals when the short-term EMA crosses below the mid-term and long-term EMAs. - Include risk management features such as stop loss, take profit, and adjustable lot sizes based on the account balance. - Ensure the EA can run on the 5-minute chart. - Design the code and strategy to maximize profitability and minimize drawdown for the initial capital. # Steps 1. Define inputs for EMA periods, stop loss, take profit, and lot sizing. 2. Compute the values of the three EMAs on every new bar. 3. Identify EMA crossing signals to enter long or short positions. 4. Implement trade management rules including entry, exit, and risk controls. 5. Test the EA logic on historical data for the 5-minute timeframe. 6. Optimize parameters to improve profitability on a 1000 unit capital. # Output Format Provide the full MetaTrader 5 EA code in MQL5 language with comprehensive comments explaining each part of the code and instructions on how to set it up and use it effectively.

2048 Game HTML

Create a complete, self-contained HTML page that implements the popular game "2048" with the following features: - A 4x4 game grid representing the game board. - Controls enabling players to move tiles up, down, left, and right using keyboard arrow keys. - Game logic that merges tiles with the same number when they collide during moves. - A live score counter that updates accurately as tiles merge throughout gameplay. - A restart button that resets the game board and score to start a new game. - CSS styling to make the game visually appealing and user-friendly. Requirements: - No external libraries or frameworks are allowed; all HTML, CSS, and JavaScript must be embedded within a single HTML file. - The JavaScript should handle all game mechanics internally, including tile spawning, merging, movement, and score management. - Use clear, concise comments throughout the code to explain your logic and the purpose of key sections to ensure maintainability and clarity. - The game should respond to arrow key inputs smoothly and update the UI dynamically. # Steps 1. Define the HTML structure with containers for the game grid, score, and controls. 2. Style the grid and tiles with CSS to visually distinguish tile values and create a pleasant layout. 3. Implement JavaScript to initialize the game state, manage the grid array, and spawn new tiles. 4. Add event listeners for keyboard input to handle tile movements and merges. 5. Implement the restart functionality to reset all game variables and UI elements. 6. Include comprehensive comments explaining the logic, data structures, and flow. # Output Format - A single HTML file containing all HTML, CSS, and JavaScript inline. - Well-indented, clean, and commented source code.

2D Mobile Car Game JS

Create a 2D open-world car game optimized for mobile browsers using JavaScript and web technologies. Requirements: - The world should randomly position PNG assets representing the car, trees, houses, stones, ground, and roads. Assume placeholder PNGs which will be added later. - Implement realistic car physics and controls specifically designed for mobile devices. - Controls must include buttons for: forward, backward, right, left, boost, and drift. - Drift control must be precise and responsive, simulating realistic car drifting. - When drifting, the car should emit left-side smoke effects. Steps: 1. Set up the game canvas and load placeholder PNG assets for game elements. 2. Generate a procedural or randomized layout of the environment placing trees, houses, stones, roads, and ground textures. 3. Implement the car object with realistic physics including acceleration, braking, steering, drifting, and boosting. 4. Create mobile-friendly on-screen controls: forward, backward, right, left, boost, and drift buttons. 5. Ensure drift mechanics are smooth and accurate, including triggering smoke on the left side when drifting. 6. Optimize performance and responsiveness for mobile web browsers. Output Format: - Provide the complete JavaScript code for the game. - Include comments explaining key sections such as physics, controls, and drift smoke effects. - Use placeholder references to PNG assets with clear instructions on where to add actual images.

12-hour to 24-hour Time Converter

Convert a given 12-hour time format string with "AM" or "PM" suffix to 24-hour time format. # Steps 1. Read the input time string, which will always be in the format HH:MM AM/PM. 2. Extract the hour and minute components from the string. 3. Check the AM/PM suffix: - If "AM": - If the hour is "12", convert it to "00". - Otherwise, keep the hour the same. - If "PM": - If the hour is not "12", add 12 to the hour. 4. Format the hour and minute into a two-digit string, using zero padding if necessary. 5. Return the time string in the format HH:MM, where HH is from 00 to 23 and MM is from 00 to 59. # Output Format The final output should be a string in the format "HH:MM", with HH as the hour in 24-hour format and MM as the minute.

1-Min Futures Strategy

Generate detailed Pine Script strategies designed specifically for 1-minute timeframes on TradingView tailored to auto trading futures securities. Each strategy must include: - Clear and precise entry and exit conditions based on well-defined trading logic. - Robust risk management techniques including configurable stop-loss, take-profit, and position sizing to control risk exposure. - Compatibility with TradingView's `strategy` functionality to enable seamless auto trading. - Well-commented code that explains the logic step-by-step to help users understand and customize the strategy. # Steps 1. Define a focused and effective trading logic optimized for 1-minute interval futures trading. 2. Implement necessary technical indicators or calculations to generate entry and exit signals. 3. Integrate risk management rules such as stop-loss, take-profit, and position sizing safeguards. 4. Use TradingView Pine Script version 5 syntax and strategy functions consistently for automation compatibility. 5. Comment every critical part of the code for clarity. # Output Format Provide the full Pine Script (version 5) code block formatted for direct copy-paste into TradingView's Pine Editor. Begin the script with a concise explanation of the strategy's intent, key indicators, and risk parameters. Ensure the comments in the code are clear and thorough.

120 FOV Bloxstrap Prompt

Create a detailed prompt that instructs a language model to generate a configuration or code snippet for setting a 120-degree field of view (FOV) using Bloxstrap. Ensure that the prompt specifies this FOV value clearly and provides sufficient context about Bloxstrap to guide the model in producing accurate and relevant output. # Steps 1. Introduce Bloxstrap and its relevance to configuring field of view. 2. Specify the requirement for a 120-degree FOV. 3. Request for a prompt that clearly directs the creation of code or settings to achieve this FOV using Bloxstrap. 4. Encourage clarity and precision to ensure the model produces usable output. # Output Format Provide the generated prompt text as a clear, instructional statement or question, suitable for input into another model or tool.

Page 3 of 68

    Coding Prompts - Learning AI Prompts | Elevato