Skip to content

Instantly share code, notes, and snippets.

View quebeh's full-sized avatar
😵
I may be slow to respond.

quebeh quebeh

😵
I may be slow to respond.
View GitHub Profile
@quebeh
quebeh / RockPaperScissors.py
Last active March 6, 2021 11:04
A really simple Python code that allows you to play Rock-Paper-Scissors! Requires PySimpleGUI and random library
import PySimpleGUI as sg
import random
layout = [[sg.T('Rock - Paper - Scissors! \U0001F633')], [sg.T('Bot Chose :'), sg.T('Not started', size=(8,1), key='status')], [sg.Button('ROCK'), sg.Button('PAPER'), sg.Button('SCISSORS')], [sg.Button('EXIT')]]
window = sg.Window('Game', layout, margins=(10,10))
meta = {"ROCK" : "PAPER", "PAPER":"SCISSORS", "SCISSORS":"ROCK"}
while True:
event, values = window.read()