shiritori.py
#Write a program that can be shiritori
#For confirmation, Shiritori is a game where you talk about words starting with the last letter of the word.
#The winner is the player who says the last letter of the word is "n".
#In other words, the way to win is to wait for the opponent to lose.
#In other words, the more vocabulary you have, the easier it is to win.
print("Shiritori game started!")
#Processing to get the last character of the entered word
str = input()
print(str[len(str) - 1])
--The other party speaks a word with the last letter obtained as the first letter ――You enter the word again --Loop the above two until "n" is attached
――How to prepare a dictionary ――When will the other party (CPU) lose? ――What are some elements that don't end with ordinary shiritori?
――I'm thinking about it for the time being ...
Recommended Posts