Skip to content

Add random cool ASCII image menu option and functionality#7

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-6
Draft

Add random cool ASCII image menu option and functionality#7
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-6

Conversation

Copilot AI commented May 28, 2025

Copy link
Copy Markdown
Contributor

Added a new menu option "7) Random cool ASCII image" that displays a random ASCII art image when selected by the user.

Changes Made

  • Program.cs:

    • Added new menu option "7) Random cool ASCII image" to the menu display
    • Added corresponding switch case to handle option "7" and call the new ASCII art method
    • Updated project to use .NET 8.0 for better compatibility
  • PrintOperations.cs:

    • Added new PrintRandomAsciiArt() method that displays a random ASCII art image from a collection of 6 different images
    • Uses Random.Next() to randomly select which image to display
    • Follows the same pattern as other menu functions (clear screen, display content, wait for user input)

Testing

The implementation has been tested to ensure:

  • ✅ New menu option appears correctly in the menu
  • ✅ Random ASCII art displays when option 7 is selected
  • ✅ Different images are shown on multiple selections (randomization works)
  • ✅ User can return to main menu after viewing ASCII art
  • ✅ All existing menu options continue to work properly

Example output when selecting option 7:

Random Cool ASCII Image

    (\   /)
   ( ._. )
  o_('v')_o

Press Enter to return to Main Menu

Fixes #6.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits May 28, 2025 07:08
Co-authored-by: referencenull <5699046+referencenull@users.noreply.github.com>
Co-authored-by: referencenull <5699046+referencenull@users.noreply.github.com>
Copilot AI changed the title [WIP] Add new menu item and functionality for random cool image Add random cool ASCII image menu option and functionality May 28, 2025
Copilot AI requested a review from referencenull May 28, 2025 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add new menu item and functionality for random cool image

2 participants