python bots

Solutions on MaxInterview for python bots by the best coders in the world

showing results for - "python bots"
Lya
05 Apr 2016
1#I'm assuming that people would like a chatbot: Here is an example of one that tells an adventure story.
2#Feel free to make any changes.
3#I'm not going to write out a completed bot, by the way.
4
5
6#Importing the time and random modules.
7import random
8import time 
9
10#Setting the counters.
11choices=0
12incorrect=1
13incorrect1=1
14incorrect2=1
15
16#Asking the User's name.
17print ("Welcome user. What is your name?")
18cname = input()
19print ("Before we start, I have to explain the rules to you.")
20print ("This adventure game has multiple endings depending on what cycles of commands you choose to go through. Whenever your input is required, options will be displayed on the screen. Please choose one of the options and enter it in.")
21time.sleep(6.5)
22
23#Introduces the story of the game, sets the theme and gives the user their first choice on where to go.
24print ("\n")
25print ("You wake up in a dark cave")
26print ("You don't remember going to sleep in here...")
27time.sleep(2)
28print ("You're thinking about how you could've gotten here and what to do next when all of a sudden...")
29time.sleep(2.5)
30print ("*", cname, ",", cname, ",", cname, ",", cname, "*" " You hear a voice whisper your name and it bounces off the cold, inky black walls"" *", cname, ",", cname, ",", cname,", *" )
31print ("\n")
32time.sleep (4)
33print ("Do you, (A) Get up and attempt to discover the source of the whispering?""\n""(B) Stay where you are and not move a muscle for fear of being discovered?"
34"\n""(C) Get up and run as far away from the whispering as possible?")
35choice1=input()
36
37if choice1=="A" or choice1=="a":
38    print ("\n")
39    print ("You venture deep into the caverns and press along the dark and suprisingly.. soft walls.")
40    time.sleep(3)
41    print ("After many cuts and soft curses from the many sharp extrusions in the wall, you come across a mossy vined section of the wall.")
42    time.sleep(4)
43    print ("You look up and notice a faint white light hundreds of feet above which appears to be the source of the whispering, and the only way up, appears to be the treacherous vined wall...")
44    time.sleep(5)
45    print ("Do you wish to (A) try your luck on the treacherous vines or (B) keep looking for another way?")
46    choice1a=input()
47
48    if choice1a=="A" or choice1a=="a":
49        print ("\n")
50        print ("Many near death expeiences and torn soles later you crawl up onto the ledge.")
51        time.sleep(3)
52        print ("The whispering suddenly ceases and the burning light parts to reveal a shadowy creature standing there...")
53        time.sleep(4.5)
54        print ("Well well, an adventurous one, welcome to my cave of riddles, its scratchy voice whispered.")
55        time.sleep(4)
56        print ("Im feeling merciful today so how about you either (A) get a riddle with one guess to try and solve it or (B) have 5 tries to guess a number from 1-10? \nIf you win, you live, and if you lose, you die!")
57        choice1b=input()
queries leading to this page
make bot with python that uses websitespython software botspython bot codingbot libraries pythonmake python botsoftware python botswebsite bots in pythonpython bot programing bots in pythonpython bot for iviewsmaking bots with pythonhow to make bots with pythonsimple bot in pythonhow to make python botbots to create in python bot module in pythonpython command botwhich python module is used to create botscreate bot using pythonfun bots pythonhow to make a bot on pythonpython bot tutoritalwhich html styles can i use for creating bot in pythonbuild a python botpython bot programminginformation bot on pythonmaking bot in pythonhow to make a bot in pythonbot en pythonbuilding a bot in pythonbasic bot with pythonpython bot libraryfull python botpython bot web bot bot program using pythonbot python codepython bot functionpython botspython code for a botcreating bots in pythonwhat is a python botbot tutorial pythonwhat to code a python bot onhow to make python botscreating bots using pythonpython bot for osulbot with pythonuseful python botssimple python botbot framework pythonbot frameworks for pythonhow to write a bot using pythonprogram a python botcreate bots with pythonhow to code a bot in pythonbot python libraryhow to make a python botweb bot pythonlibraries for bot on pythonmake a bot in pythonwhy python for botspython botobuilding bots with pythonpython make bothow to make bot in pythoncreeating bots in pythonpython bot packagepython bot nedirpython botmake a python bothow to use python to make botswhy do all bots use pythoncreate python botpython for botsbots with pythonbuild bot in pythonpython creating botshow to program a bot in pythonbots pythonpython libraries used for botswhy python is good for botspython bot examplehow to ru python botpython bot how usebot pythonbot in pythonhow to make bot pythonhow to create bots using pythonpython bot scriptpython bot tutorialpython bot forwhy python to make bot 40bot pythonpython bot commandpython bot frameworkspython bot framework python f c3 bcr bots 3fhow to create a bot pythonbot programming pythonpython bots