Python Forum
Program for a Game - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Program for a Game (/thread-9620.html)



Program for a Game - PatrickTheFabulous - Apr-19-2018

Hello,

im very new to coding and there is a lot i don't understand but that is not my point my friend is looking to make and interactive game and part of the involves a program that types out a certain sentence no matter what the user presses for example: "hello" if i typed "kaied" or "uvjsa" it would type out hello anyways he plans to implement this as a conversation and a way for telling a story (don't know if that helps) i did think of a way to do this but it would have been so inefficient it would have been laughable as well as being hard for him to wight out his story anyways i hope you can help and thank you in advanced


RE: Program for a Game - Gribouillis - Apr-19-2018

You can write down a typical conversation between a user and the program. Then write a python program that can produce this conversation. Post code and any error messages here.