<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Glyfarm X Hackobian — Blog]]></title><description><![CDATA[United blog for Hackobian &amp; Glyfarm]]></description><link>https://blog.glyfarm.com</link><image><url>https://cdn.hashnode.com/res/hashnode/image/upload/v1746341689876/4d8c4e88-73ce-499d-ad04-aeb2860d594a.png</url><title>Glyfarm X Hackobian — Blog</title><link>https://blog.glyfarm.com</link></image><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 12:01:02 GMT</lastBuildDate><atom:link href="https://blog.glyfarm.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Masks of Trust: Trust Index Formula]]></title><description><![CDATA[As we prepare for the full reveal of Masks of Trust: Game Theory Interactive App, we're excited to share a glimpse into the system that powers key behavioral dynamics inside the simulation.
One of the core mechanics revolves around how trust is measu...]]></description><link>https://blog.glyfarm.com/masks-of-trust-trust-index-formula</link><guid isPermaLink="true">https://blog.glyfarm.com/masks-of-trust-trust-index-formula</guid><category><![CDATA[Swift]]></category><category><![CDATA[iOS]]></category><category><![CDATA[Game Development]]></category><dc:creator><![CDATA[Hackobian]]></dc:creator><pubDate>Mon, 05 May 2025 07:46:40 GMT</pubDate><content:encoded><![CDATA[<p>As we prepare for the full reveal of <em>Masks of Trust: Game Theory Interactive App</em>, we're excited to share a glimpse into the system that powers key behavioral dynamics inside the simulation.</p>
<p>One of the core mechanics revolves around how trust is measured and interpreted during each interaction. Below is a simple yet powerful function that calculates a “Trust Index” — a value that plays a critical role in decision outcomes between players.</p>
<p>This method uses the minimum of the two scores and adds half the difference to it.</p>
<p>Parameters:</p>
<ul>
<li>socialTrustScore: The social trust score (0...1)</li>
</ul>
<ul>
<li>personalTrustScore: The personal trust score (0...1)</li>
</ul>
<p>Returns: A Double representing the combined trust index</p>
<pre><code class="lang-swift"><span class="hljs-comment">// Function to calculate the trust index. Dev by Hackobian dd May 2025</span>
<span class="hljs-keyword">private</span> <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">calculateTrustIndex</span><span class="hljs-params">(socialTrustScore: Double, personalTrustScore: Double)</span></span> -&gt; <span class="hljs-type">Double</span> {
    <span class="hljs-comment">// 1. Find the minimum value between socialTrustScore and personalTrustScore</span>
    <span class="hljs-keyword">let</span> minimumScore = <span class="hljs-built_in">min</span>(socialTrustScore, personalTrustScore)

    <span class="hljs-comment">// 2. Calculate the absolute difference between the two scores</span>
    <span class="hljs-keyword">let</span> difference = <span class="hljs-built_in">abs</span>(socialTrustScore - personalTrustScore)

    <span class="hljs-comment">// 3. Trust index = minimum + half of the difference</span>
    <span class="hljs-keyword">let</span> trustIndex = minimumScore + <span class="hljs-number">0.5</span> * difference

    <span class="hljs-keyword">return</span> trustIndex
}
</code></pre>
<p>While the logic may seem straightforward, its impact is far from trivial. This formula shapes how players navigate ambiguity, interpret intentions, and respond to subtle shifts in trust.</p>
<p>Stay tuned — in the coming weeks, we’ll unveil more design insights and mechanics that turn abstract concepts into meaningful interactive experiences.</p>
]]></content:encoded></item></channel></rss>