What happened there before that? I tried to remember, but I couldn't remember at all
Dozens (hundreds of times?) Pass by, or from McDonald's across the street I should have seen it through the window, but I couldn't remember at all
When I go home and check it in Street View, Last year and two years ago, there was a curtain under construction. Even when I saw it, the impression that came out was "Is that so ...?"
I once again experienced that human memory is vague.
I can't remember it unless I'm aware of it,
If you are conscious of it, you can remember it, so
Studying is an act of consciousness and memorization.
Memorable is like storing toys in your head.
Play until later (=Think) It may lead to fun
Engineer Vtuber Rin
.https://youtu.be/JpcWUuG_5S0 It seems that you can enjoy learning when many people like this come out.
from random import randint
import time
hands = ["Goo", "Choki", "Paa"]
rules = ["Draw ", "Lose... ", "Win!!! "]
draw = 0
lose = 0
win = 0
print("----------------------------------------------")
print(" Let's JAN-KEN Start!!!!")
print("----------------------------------------------")
while True:
# Player
print("【 0 : Goo 】", "【 1 : Choki 】", "【 2 : Paa 】")
while True:
try:
p = int(input("You choose ==========> "))
if p in [0, 1, 2]:
print("Yes!")
break
else:
print("Say 0, 1 or 2! Thank you!")
except:
print("Not even numbers! at least! Please use numbers at least!")
print("----------------------------------------------")
print("■ You 【 " + hands[p] + " 】 play")
time.sleep(0.9)
#CPU
m = randint(0, 2)
print("● CPU 【 " + hands[m] + " 】 play")
print("----------------------------------------------")
time.sleep(0.9)
#gameset
i = (p - m) % 3
print("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■")
print(rules[i])
print("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■")
if i == 0:
draw = draw + 1
elif i == 1:
lose = lose + 1
else:
win == win + 1
time.sleep(0.9)
#result
print("{}...Win / {}...Lose / {}...Draw".format(win, lose, draw))
print("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■")
if win == 3:
print("▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼")
time.sleep(3)
print("3wins!!!! You win!!!!")
print("▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲")
break
if lose == 3:
print("▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼")
time.sleep(3)
print("3loses... You lose...")
print("▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲")
break
time.sleep(1)
The above is slightly different from the content of the video,
In making the flow chart, I realized the ease of use of this site. https://app.diagrams.net/
while True:
try:
p = int(input("You choose ==========> "))
if p in [0, 1, 2]:
print("Yes!")
break
else:
print("Say 0, 1 or 2! Thank you!")
except:
print("Not even numbers! at least! Please use numbers at least!")
I got the intended result There may be a smarter way to write it, but for now it looks like this
The above is part of last year's study,
I was happy to be able to say that, and I remembered it. I wrote it here as well
While the people around me are doing high-level processing, I'm still wondering if it's around here, but I'm going to proceed at my own pace
Also, these days I get sleepy as soon as I eat, I'm getting fat again, so I'll review my diet
Recommended Posts