<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<link rel="alternate" type="text/html" href="https://emergent.unpythonic.net/"/>

<title>Jeff Epler's blog</title>
<modified>2015-02-19T19:31:59Z</modified>
<tagline>Photos, electronics, cnc, and more</tagline>
<author><name>Jeff Epler</name><email>jepler@unpythonic.net</email></author>
<entry>
<title>Cheating at incremental games using angularjs</title>
<issued>2015-02-19T19:31:59Z</issued>
<modified>2015-02-19T19:31:59Z</modified>
<id>https://emergent.unpythonic.net/01424374319</id>
<link rel="alternate" type="text/html" href="https://emergent.unpythonic.net/01424374319"/>
<content type="text/html" mode="escaped">

I don't know a thing about javascript frameworks, but I like to cheat at
incremental games.  So it's frustrating when a game is made with some framework
that seems to leave everything inaccessible. (I think this is more about
the framework trying to be hygenic than anti-cheating)

&lt;p&gt;So I was happy to learn enough about angularjs to cheat at my favorite
incremental game of the moment, &lt;a href=&quot;https://swarmsim.github.io/&quot;&gt;Swarm Simulator&lt;/a&gt;.

&lt;p&gt;&lt;pre &gt;
var sc = angular.element(document.querySelector('.ng-scope')).scope()
sc.env.isDebugEnabled = 1
sc.game._units.byName.nexus.prodByName.energy.val = new Decimal(1000)
sc.game.unit('mutagen')._addCount(new Decimal(1e100))
&lt;/pre&gt;
</content>
</entry>
</feed>
