lib/boxcars/boxcar/calculator.rb in boxcars-0.5.1 vs lib/boxcars/boxcar/calculator.rb in boxcars-0.6.1
- old
+ new
@@ -46,10 +46,11 @@
"Return code written in the Ruby programming language that prints the results to the console. ",
"If anyone gives you a hard math problem, just ",
"use the following format and we’ll take care of the rest:\n",
"${{Question with hard calculation.}}\n",
"reply only with the following format:\n",
- "```ruby\n${{only Ruby code that prints the answer}}\n```\n",
+ "```ruby\n${{only Ruby code that prints the answer. " \
+ "If you use puts, make sure to wrap the expression in paranthesis}}\n```\n",
"```output\n${{Output of your code}}\n```\n\n",
"Otherwise, you should use this simpler format:\n",
"${{Question without hard calculation}}\n",
"Answer: ${{Answer}}\n\n",
"Do not give an explanation of the answer and make sure your answer starts with either 'Answer:' or '```ruby'."),