Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
13
Task/Magic-8-ball/Prolog/magic-8-ball.pro
Normal file
13
Task/Magic-8-ball/Prolog/magic-8-ball.pro
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
magic_8_ball :-
|
||||
Responses = ["It is certain", "It is decidedly so", "Without a doubt",
|
||||
"Yes, definitely", "You may rely on it", "As I see it, yes", "Most likely",
|
||||
"Outlook good", "Signs point to yes", "Yes", "Reply hazy, try again",
|
||||
"Ask again later", "Better not tell you now", "Cannot predict now",
|
||||
"Concentrate and ask again", "Don't bet on it", "My reply is no",
|
||||
"My sources say no", "Outlook not so good", "Very doubtful"],
|
||||
repeat,
|
||||
format("Q: "),
|
||||
read_line_to_codes(user_input, _),
|
||||
random_member(Response, Responses),
|
||||
format("A: ~s~n", [Response]),
|
||||
fail.
|
||||
Loading…
Add table
Add a link
Reference in a new issue