< > BotCompany Repo | #757
- Standing Challenge for relp.slack.com
STEFAN'S STANDING CHALLENGE TO RELP.SLACK.COM (open ended)
Here's my own challenge for you, complementing the Weekly Challenges. The advantage here is that the results will be useful, new programs!
The challenge is:
Write a BOT-LIKE FUNCTION in a C-SYNTAX-ISH LANGUAGE.
A BOT-LIKE FUNCTION is a function that receives a string (a user question) and returns another string (the bot's answer). Return null or "" if you don't have anything to say. You can write multiple functions and do other stuff; just please refrain from the super-complex (no C++ templates).
I WILL DO THE REST.
Specifically, I promise I will translate your bot function from your chosen language into Java using an automatic translator.
I can also put the bot online on relp.slack.com afterwards if you like that.
The winner bot of the day is the one that people use most when it's online... ^^
Mode of entry: Write a post in #talkingbots or PM or mail me (@stefanreich, firstname.lastname@example.org).
Final note: All submitted source code will be published and considered public domain (crediting you of course!).
Hack away! :-)
Example code (Python):
# deh function!
return "OMG USER! I can't believe you just said: " + s
# deh test program! oh, python is so nice and short.
s = "hello computer!"
print("> " + answer(s))
(JavaX Translation: #1002002, Translator: #1002001)
download show line numbers
Travelled to 8 computer(s): aoiabmzegqzx, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz
No comments. add comment
||Standing Challenge for relp.slack.com
|Eternal ID of this version:
|Public (visible to everyone):
|Archived (hidden from active list):
|Source code size:
||1719 bytes / 47 lines
|Pitched / IR pitched:
||No / Yes
|Views / Downloads:
||1813 / 118
Formerly at http://tinybrain.de/757 & http://757.tinybrain.de