This project showcases multiple AI-enhanced versions of the classic Rock Paper Scissors game, offering a valuable opportunity to explore different coding approaches and techniques.
We started with the original Python code for Rock Paper Scissors from Microsoft Learn, then asked several AI language models to create their own improved versions. This repository contains the original code, AI-enhanced versions, and detailed explanations of the improvements made by each AI.
- ChatGPT
- Claude
- Gemini
- Llama3
- Mistral
- Perplexity
rock-paper-scissor-5.py: The original code, slightly modifiedrock-paper-scissor-5.md: AI-generated description of the original code's behavior- For each AI model:
rock-paper-scissor-[AI_NAME].py: The AI-improved Python coderock-paper-scissor-[AI_NAME].md: Detailed explanation of improvements
As you explore each version, pay attention to:
- Code structure and organization
- Error handling and input validation
- Game logic implementations
- User interface enhancements
- Performance optimizations
- Use of different Python features and techniques
This project demonstrates that even for a simple game, there are multiple valid approaches. By studying these variations, you'll expand your Python knowledge and develop a more flexible approach to coding.
- Run and compare each version
- Identify your favorite elements from different implementations
- Try to create your own improved version, combining ideas from various sources
After examining the different versions, consider which approach you find most effective or interesting. Do you prefer concise code or more detailed implementations? Is there a particular Python feature you're excited to use in your own projects?
Feel inspired? Fork this repository and create your own version of the game. We welcome pull requests with new AI-enhanced versions or further improvements to existing ones.
- Microsoft Learn for the original tutorial and code
- The AI language models for their unique improvements
Enjoy exploring the world of AI-enhanced Rock Paper Scissors and happy coding!
Another approach:
