{"id":319,"date":"2014-08-13T15:05:58","date_gmt":"2014-08-13T15:05:58","guid":{"rendered":"http:\/\/www.kamremake.com\/devblog\/?p=319"},"modified":"2014-08-13T15:08:38","modified_gmt":"2014-08-13T15:08:38","slug":"is-there-an-unfair-advantage-when-2-arbaletmen-armies-clash","status":"publish","type":"post","link":"https:\/\/www.kamremake.com\/devblog\/is-there-an-unfair-advantage-when-2-arbaletmen-armies-clash\/","title":{"rendered":"Is there an unfair advantage when 2 arbaletmen armies clash?"},"content":{"rendered":"<p>There was a question about fighting mechanics over at KaM forum (<a title=\"link\" href=\"https:\/\/www.knightsandmerchants.net\/forum\/viewtopic.php?f=23&amp;t=2311\">link<\/a>). To sum up in one sentence &#8211; Is there an unfair advantage when 2 arbaletmen armies clash?<\/p>\n<p><a href=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2014\/08\/28vs28-xbows-screen.png\"><img loading=\"lazy\" class=\"aligncenter wp-image-321 size-medium\" src=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2014\/08\/28vs28-xbows-screen-266x300.png\" alt=\"28vs28 xbows screen\" width=\"266\" height=\"300\" srcset=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2014\/08\/28vs28-xbows-screen-266x300.png 266w, https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2014\/08\/28vs28-xbows-screen.png 400w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><\/a><\/p>\n<p>Imagine there are 2 armies of arbaletmen standing in front of each other. Top vs bottom, Red vs Blue. Order to attack arrives at the same moment to both armies. Who has an advantage? Place your bets and proceed inside:<\/p>\n<p><!--more--><\/p>\n<p>One of the joys of having a working game engine is to be able to run it in\u00c2\u00a0crazy environments. One of such is stripping all of the rendering and terrain updates, keeping just the games logic, which being unleashed can run at\u00c2\u00a0crazy speeds of measured at around x1000.<\/p>\n<p>I have configured our test-runner tool to simulate 1000 fights between 2 groups of xbows. Each group had 7 columns and 4 rows &#8211; total of 28 xbows. Groups were 4 tiles apart facing each other. Attack orders were placed on the same moment.<\/p>\n<p>Results were recorded and displayed as a distribution chart:<\/p>\n<p><a href=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2014\/08\/28vs28-xbows-chart.png\"><img loading=\"lazy\" class=\"wp-image-320 size-medium aligncenter\" src=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2014\/08\/28vs28-xbows-chart-300x268.png\" alt=\"28vs28 xbows chart\" width=\"300\" height=\"268\" srcset=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2014\/08\/28vs28-xbows-chart-300x268.png 300w, https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2014\/08\/28vs28-xbows-chart.png 760w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><em>X axis measures how many soldiers left alive in that team. Y axis measures how many times that result was met.<\/em><\/p>\n<p>From the chart above we can see that each team was defeated (had 0 soldiers left) ~500 times. All other times some remained alive. In\u00c2\u00a0precise\u00c2\u00a0words, Top-Red won 50.4% of fights, Bottom-Blue won 49.6% of fights.\u00c2\u00a0The unfair advantage mentioned at the topics start, seems to be within 1%, which is negligible considering many other factors in play: tactics, attack orders timing, etc.<\/p>\n<p>Other points of interest:<\/p>\n<ul>\n<li>Luckiest of times, one of the teams lost only 9 xbows while killing 28 enemies;<\/li>\n<li>Having single xbow survive is as likely as having 17 left alive;<\/li>\n<li>Most of the times (~28%) winning team has 7-9 xbows alive;<\/li>\n<li>Without deep inspection of the logs, longest winning streak for one of the teams was 9 victories in a row;<\/li>\n<li>1000 fights take around 1.5 minutes.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>There was a question about fighting mechanics over at KaM forum (link). To sum up in one sentence &#8211; Is there an unfair advantage when 2 arbaletmen armies clash? Imagine there are 2 armies of arbaletmen standing in front of &hellip; <a href=\"https:\/\/www.kamremake.com\/devblog\/is-there-an-unfair-advantage-when-2-arbaletmen-armies-clash\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[8],"tags":[],"_links":{"self":[{"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/posts\/319"}],"collection":[{"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/comments?post=319"}],"version-history":[{"count":4,"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/posts\/319\/revisions"}],"predecessor-version":[{"id":325,"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/posts\/319\/revisions\/325"}],"wp:attachment":[{"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/media?parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/categories?post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/tags?post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}