Page: [root]/scripts/tobuild.erb | src | log | faq | css

<h1> How much do I need to hurry to build SP on next turn? </h1>

<form action="" method="get">
<p> Turns left: <input name="turns" value="<%=paramsturns%>" /> Full cost: <input name="cost" value="<%=paramscost%>" /> <input type="submit" value="calculate" /></p>
</form>

<% if paramsturns %>
<p>
Invest at least <%=(paramscost.to_f / paramsturns.to_f * (paramsturns.to_f - 1)).ceil %> EC
</p>
<% end %>


Last edited: Voker57 on 2015-11-21 19:44:40 +0200
Powered by bitcheese wiki engine