online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
import random print("🎮 WELCOME TO STONE PAPER SCISSORS 🎮") choices = ["stone", "paper", "scissors"] while True: player_score = 0 computer_score = 0 while player_score < 3 and computer_score < 3: player_choice = input("Enter stone, paper or scissors: ").lower() if player_choice not in choices: print("❌ Invalid choice") continue computer_choice = random.choice(choices) print("Computer chose:", computer_choice) if player_choice == computer_choice: print("🤝 It's a tie!") elif ( (player_choice == "stone" and computer_choice == "scissors") or (player_choice == "paper" and computer_choice == "stone") or (player_choice == "scissors" and computer_choice == "paper") ): print("🎉 You win this round!") player_score += 1 else: print("💻 Computer wins this round!") computer_score += 1 print("Score:") print("You:", player_score) print("Computer:", computer_score) print() if player_score == 3: print("🏆 CONGRATULATIONS! YOU WON THE GAME!") else: print("😢 COMPUTER WON THE GAME!") again = input("Do you want to play again? (yes/no): ").lower() if again != "yes": print("👋 Thanks for playing!") break

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue