online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
import os, random clearConsole = lambda: os.system('cls' if os.name in ('nt', 'dos') else 'clear') (win, lose, draw) = (0, 0, 0) game = ['Rock', 'Paper', 'Scissors'] def games(): global win, lose, draw, game clearConsole() print('Win:', win, ' Lose:', lose, ' Draw:', draw) print('[1]', game[0], '| [2]', game[1], '| [3]', game[2]) user = input('Choose what you want: ') if not user.strip().isdigit(): games() else: user = int(user) if user not in [1,2,3]: games() clearConsole() computer = random.randrange(1, 4) print('Your choice:', game[user-1]) print('Computer choice:', game[computer-1]) if user == computer: print('Tie in the game!') draw += 1 elif (user == 1 and computer == 3) or \ (user == 2 and computer == 1) or \ (user == 3 and computer == 2): print('You win!') win += 1 else: print('You lose!') lose += 1 again = input('\nWant to play again ?\n (y)es, Enter - play again\n (n)o or any - exit\n: ') if again.lower() == 'y' or again.strip() == '': games() games()

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