Let's make a shiritori game with Python

First of all, I will write from the place that seems to be possible

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])

What should be implemented next?

--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

Challenges expected at this time

――How to prepare a dictionary ――When will the other party (CPU) lose? ――What are some elements that don't end with ordinary shiritori?

Future plans

――I'm thinking about it for the time being ...

Recommended Posts

Let's make a shiritori game with Python
Let's make a GUI with python.
Let's make a graph with python! !!
Let's make a simple game with Python 3 and iPhone
Let's make a voice slowly with Python
Let's make a web framework with Python! (1)
Let's make a Twitter Bot with Python!
Let's make a web framework with Python! (2)
[Python] Make a game with Pyxel-Use an editor-
I want to make a game with Python
[Python] Make a simple maze game with Pyxel
Make a fortune with Python
Let's replace UWSC with Python (5) Let's make a Robot
Let's make a rock-paper-scissors game
[Let's play with Python] Make a household account book
[Super easy] Let's make a LINE BOT with Python.
Let's make a breakout with wxPython
Make a recommender system with python
Let's make a supercomputer with xCAT
Let's make a websocket client with Python. (Access token authentication)
[Python] Make a simple maze game with Pyxel-Make enemies appear-
Let's create a free group with Python
Let's make a simple language with PLY 1
[Python] Let's make matplotlib compatible with Japanese
Let's make a tic-tac-toe AI with Pylearn 2
Let's make a combination calculation in Python
Make a desktop app with Python with Electron
I made a roguelike game with Python
Let's make a web chat using WebSocket with AWS serverless (Python)!
Make a squash game
Make a Tetris-style game!
Make a Twitter trend bot with heroku + Python
Try to make a "cryptanalysis" cipher with Python
Make a rock-paper-scissors game in one line (python)
Try to make a dihedral group with Python
Let's make a module for Python using SWIG
I made a bin picking game with Python
[Ev3dev] Let's make a remote control program by Python with RPyC protocol
Make one repeating string with a Python regular expression.
Let's make a Discord Bot.
Try to make a command standby tool with python
Let's run Excel with Python
I made a Christmas tree lighting game with Python
[Practice] Make a Watson app with Python! # 2 [Translation function]
[Practice] Make a Watson app with Python! # 1 [Language discrimination]
Make a simple Slackbot with interactive button in python
How to make a shooting game with toio (Part 1)
Let's make Othello with wxPython
Make a breakpoint on the c layer with python
Make Puyo Puyo AI with Python
Let's make dice with tkinter
Make a bookmarklet in Python
Let's make dependency management with pip a little easier
[For play] Let's make Yubaba a LINE Bot (Python)
Let's write python with cinema4d.
Make a CSV formatting tool with Python Pandas PyInstaller
Let's make a Mac app with Tkinter and py2app
Let's make a spherical grid with Rhinoceros / Grasshopper / GHPython
Create a directory with python
Let's build git-cat with Python
What is God? Make a simple chatbot with python