<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Neptune&#8217;s Pride Battle Calculator</title>
	<atom:link href="http://josteinb.com/2010/03/neptunes-pride-battle-calculator/feed/" rel="self" type="application/rss+xml" />
	<link>http://josteinb.com/2010/03/neptunes-pride-battle-calculator/</link>
	<description>The blog with the awesome slogan</description>
	<lastBuildDate>Wed, 02 May 2012 09:21:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Nick</title>
		<link>http://josteinb.com/2010/03/neptunes-pride-battle-calculator/comment-page-1/#comment-1171</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 23 Nov 2010 19:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://josteinb.com/?p=129#comment-1171</guid>
		<description>A defense version complement to your attack code would be nice.  It would calculate two items:
1.) At what hypothetical level would I win as defender
2.) What level of defenders give the best enemy loss/my loss ratio
3.) What are the &quot;tiers&quot; in which I cause additional enemy losses</description>
		<content:encoded><![CDATA[<p>A defense version complement to your attack code would be nice.  It would calculate two items:<br />
1.) At what hypothetical level would I win as defender<br />
2.) What level of defenders give the best enemy loss/my loss ratio<br />
3.) What are the &#8220;tiers&#8221; in which I cause additional enemy losses</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://josteinb.com/2010/03/neptunes-pride-battle-calculator/comment-page-1/#comment-181</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 08 Apr 2010 22:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://josteinb.com/?p=129#comment-181</guid>
		<description>Thanks alot for the help tho :). The only thing I had to change was the boolean part at the start of the while loop. I was going to do it round by round but then that brings up the problem of if people have huge amounts of ships fighting each other. Im doing software development at college starting in September so I wanted a head start :).</description>
		<content:encoded><![CDATA[<p>Thanks alot for the help tho <img src='http://josteinb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . The only thing I had to change was the boolean part at the start of the while loop. I was going to do it round by round but then that brings up the problem of if people have huge amounts of ships fighting each other. Im doing software development at college starting in September so I wanted a head start <img src='http://josteinb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://josteinb.com/2010/03/neptunes-pride-battle-calculator/comment-page-1/#comment-180</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 08 Apr 2010 21:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://josteinb.com/?p=129#comment-180</guid>
		<description>Nice! I&#039;ve never coded in C#, have mainly kept to Java since that&#039;s what we use at uni... But the two languages are very similar.  Glad to hear what I&#039;ve done can be helpful :)
The while-loop is really a very dirty hack.. The calculation can be done in constant time with some simple math in stead of the linear time the while-loop gives.. But I haven&#039;t been bothered to implement it yet. Not that it would make any big difference in performance with the small numbers we usually use here</description>
		<content:encoded><![CDATA[<p>Nice! I&#8217;ve never coded in C#, have mainly kept to Java since that&#8217;s what we use at uni&#8230; But the two languages are very similar.  Glad to hear what I&#8217;ve done can be helpful <img src='http://josteinb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
The while-loop is really a very dirty hack.. The calculation can be done in constant time with some simple math in stead of the linear time the while-loop gives.. But I haven&#8217;t been bothered to implement it yet. Not that it would make any big difference in performance with the small numbers we usually use here</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://josteinb.com/2010/03/neptunes-pride-battle-calculator/comment-page-1/#comment-179</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 08 Apr 2010 21:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://josteinb.com/?p=129#comment-179</guid>
		<description>I made a battle calculator in C#. This was the very first thing I have made in C#. I did use your while statement tho, after spending hours on trying to figure it out :(. 


http://pastebin.com/xrthmMZS</description>
		<content:encoded><![CDATA[<p>I made a battle calculator in C#. This was the very first thing I have made in C#. I did use your while statement tho, after spending hours on trying to figure it out <img src='http://josteinb.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> . </p>
<p><a href="http://pastebin.com/xrthmMZS" rel="nofollow">http://pastebin.com/xrthmMZS</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://josteinb.com/2010/03/neptunes-pride-battle-calculator/comment-page-1/#comment-68</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 23 Mar 2010 16:15:57 +0000</pubDate>
		<guid isPermaLink="false">http://josteinb.com/?p=129#comment-68</guid>
		<description>This calculator has been very helpfull &amp; much appreciated. Thank you.</description>
		<content:encoded><![CDATA[<p>This calculator has been very helpfull &amp; much appreciated. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://josteinb.com/2010/03/neptunes-pride-battle-calculator/comment-page-1/#comment-63</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 22 Mar 2010 22:18:56 +0000</pubDate>
		<guid isPermaLink="false">http://josteinb.com/?p=129#comment-63</guid>
		<description>You are absolutely right, thanks!
It was a simple matter of a &quot;&lt;&quot; instead of a &quot;&lt;=&quot; in the border cases.  Nice catch!
It is now fixed in both versions

Cheers!</description>
		<content:encoded><![CDATA[<p>You are absolutely right, thanks!<br />
It was a simple matter of a &#8220;<&#8221; instead of a &#8220;<=&#8221; in the border cases.  Nice catch!<br />
It is now fixed in both versions</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalle</title>
		<link>http://josteinb.com/2010/03/neptunes-pride-battle-calculator/comment-page-1/#comment-62</link>
		<dc:creator>Kalle</dc:creator>
		<pubDate>Mon, 22 Mar 2010 22:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://josteinb.com/?p=129#comment-62</guid>
		<description>It seems your calculator is bugged, or I&#039;m not getting the calculation.

For &quot;how many ships to survive?&quot;, if I put in 48 ships attacking with WS 6, and defender WS 5, it tells me I need 49 ships to survive. According to my very manual calculation of this based on the concept of &quot;defender gets +1 and hits first, then attacker, then defender, then attacker, etc. until &quot;the receiver of damage&quot; goes &lt;= 0. So if we look at losses &quot;attacker defender&quot; we get this:
0		0 &lt;- attacker reaches defender, no losses at this point
6		0 &lt;- defender gets initiative and hits attacker
6		6 &lt;- attacker hits back
12		6 &lt;- defender hits back
12		12 etc
18		12
18		18
24		18
24		24
30		24
30		30
36		30
36		36
42		36
42		42
48		42  &lt;-- attacker has 0 left, defender has lost 42 ships, thus 43 should cover &quot;surviving&quot;

Or am I missing something? :)</description>
		<content:encoded><![CDATA[<p>It seems your calculator is bugged, or I&#8217;m not getting the calculation.</p>
<p>For &#8220;how many ships to survive?&#8221;, if I put in 48 ships attacking with WS 6, and defender WS 5, it tells me I need 49 ships to survive. According to my very manual calculation of this based on the concept of &#8220;defender gets +1 and hits first, then attacker, then defender, then attacker, etc. until &#8220;the receiver of damage&#8221; goes &lt;= 0. So if we look at losses &quot;attacker defender&quot; we get this:<br />
0		0 &lt;- attacker reaches defender, no losses at this point<br />
6		0 &lt;- defender gets initiative and hits attacker<br />
6		6 &lt;- attacker hits back<br />
12		6 &lt;- defender hits back<br />
12		12 etc<br />
18		12<br />
18		18<br />
24		18<br />
24		24<br />
30		24<br />
30		30<br />
36		30<br />
36		36<br />
42		36<br />
42		42<br />
48		42  &lt;&#8211; attacker has 0 left, defender has lost 42 ships, thus 43 should cover &quot;surviving&quot;</p>
<p>Or am I missing something? <img src='http://josteinb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JosteinB</title>
		<link>http://josteinb.com/2010/03/neptunes-pride-battle-calculator/comment-page-1/#comment-52</link>
		<dc:creator>JosteinB</dc:creator>
		<pubDate>Fri, 19 Mar 2010 15:41:04 +0000</pubDate>
		<guid isPermaLink="false">http://josteinb.com/?p=129#comment-52</guid>
		<description>Thanks :)  The animated javascript thing is just a very very basic jQuery .show(&quot;slow&quot;); on the result div... It&#039;s my first time with jQuery, so wanted to do something a little bit fun.

I&#039;m not really sure what you mean... There is funtionality to find the cheapest stars to build stuff on within the game.  Hmm.. do you mean for a single star, how many industry upgrades you could do on that one?  That should be possible yes, just have to figure out what algorithm they use to convert from star resources to amount of $ per level.  I&#039;ll look into it :)</description>
		<content:encoded><![CDATA[<p>Thanks <img src='http://josteinb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   The animated javascript thing is just a very very basic jQuery .show(&#8220;slow&#8221;); on the result div&#8230; It&#8217;s my first time with jQuery, so wanted to do something a little bit fun.</p>
<p>I&#8217;m not really sure what you mean&#8230; There is funtionality to find the cheapest stars to build stuff on within the game.  Hmm.. do you mean for a single star, how many industry upgrades you could do on that one?  That should be possible yes, just have to figure out what algorithm they use to convert from star resources to amount of $ per level.  I&#8217;ll look into it <img src='http://josteinb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://josteinb.com/2010/03/neptunes-pride-battle-calculator/comment-page-1/#comment-43</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Thu, 18 Mar 2010 10:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://josteinb.com/?p=129#comment-43</guid>
		<description>This is a very neat little site. I like the nice java that comes to the side of the input data, v.nice.
Have you thought about extending and making a more complicated calculator... almost like a simulator, you enter star resources, what your economy, industry and science is, then it tells you how much you can afford and which star to spend it at. Reading that back doesn&#039;t make sense, but if you do understand me, do you think its possible?
I do it on scraps of paper which takes a long time to do right now. I&#039;m speaking to another player in game who says he has got a table to do it!

Thanks again,
Rob</description>
		<content:encoded><![CDATA[<p>This is a very neat little site. I like the nice java that comes to the side of the input data, v.nice.<br />
Have you thought about extending and making a more complicated calculator&#8230; almost like a simulator, you enter star resources, what your economy, industry and science is, then it tells you how much you can afford and which star to spend it at. Reading that back doesn&#8217;t make sense, but if you do understand me, do you think its possible?<br />
I do it on scraps of paper which takes a long time to do right now. I&#8217;m speaking to another player in game who says he has got a table to do it!</p>
<p>Thanks again,<br />
Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://josteinb.com/2010/03/neptunes-pride-battle-calculator/comment-page-1/#comment-38</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 15 Mar 2010 17:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://josteinb.com/?p=129#comment-38</guid>
		<description>Appreciate that!
If you have any wishes for improvements, let me know</description>
		<content:encoded><![CDATA[<p>Appreciate that!<br />
If you have any wishes for improvements, let me know</p>
]]></content:encoded>
	</item>
</channel>
</rss>

