<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.extremist.software/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=R3pl1cant</id>
	<title>Noisebridge - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.extremist.software/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=R3pl1cant"/>
	<link rel="alternate" type="text/html" href="https://wiki.extremist.software/wiki/Special:Contributions/R3pl1cant"/>
	<updated>2026-04-03T22:20:41Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.extremist.software/index.php?title=2048&amp;diff=40931</id>
		<title>2048</title>
		<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=2048&amp;diff=40931"/>
		<updated>2014-03-28T00:51:22Z</updated>

		<summary type="html">&lt;p&gt;R3pl1cant: go go ECMAScript&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a dissection of the massive time hole game otherwise known as &#039;&#039;&#039;2048&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Since this game has been remarkably successful at gobbling up time in a possibly pointless sort of way, lets see if we can take apart the mechanics of it as an example of fundamental game architecture and development.&lt;br /&gt;
&lt;br /&gt;
http://gabrielecirulli.github.io/2048/&lt;br /&gt;
&lt;br /&gt;
The documentation contained here in is unindented for the lulz and as a mechanism for learning and inquiry. The initial methodology will be based on reverse engineering the game play itself, and recreating the logic with original code. After this process there will likely be an analysis and comparison of the original code and further digging in to ideological differences, optimizations and possible alternatives.&lt;br /&gt;
&lt;br /&gt;
Code samples are written in ECMA-262 edition 3&lt;br /&gt;
&lt;br /&gt;
== Layout ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-----------------&lt;br /&gt;
| 2 | 2 |   |   |&lt;br /&gt;
-----------------&lt;br /&gt;
| 4 |   |   |   |&lt;br /&gt;
-----------------&lt;br /&gt;
|   |   |   |   |&lt;br /&gt;
-----------------&lt;br /&gt;
|   |   |   |   |&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
The basic game layout is based on a 4x4 grid of tiles.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Logic ==&lt;br /&gt;
&lt;br /&gt;
=== Start Game ===&lt;br /&gt;
&lt;br /&gt;
The game starts with a simple randomization of two tiles placed on the board. The initial tiles have a value of either &#039;2&#039; or &#039;4&#039;, and is heavily weighted towards a value of &#039;2&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Make Move ===&lt;br /&gt;
&lt;br /&gt;
Moves are made by shifting tiles either left, right, up or down.&lt;br /&gt;
&lt;br /&gt;
Rough code for shifting tiles left, does not include logic for &amp;quot;merging&amp;quot; matching tiles...&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xAngle = -1;&lt;br /&gt;
for (var r:int = 0; r &amp;lt; 4; r++)&lt;br /&gt;
{&lt;br /&gt;
	for (var c:int = 1; c &amp;lt; 4; c++)&lt;br /&gt;
	{&lt;br /&gt;
		if (tileGrid.hasOwnProperty(c.toString() + r.toString()))&lt;br /&gt;
		{&lt;br /&gt;
			var xMin:int = 0;&lt;br /&gt;
			&lt;br /&gt;
			tileIndex = tileGrid[c.toString() + r.toString()];&lt;br /&gt;
			tile = tiles[tileIndex];&lt;br /&gt;
			&lt;br /&gt;
			for (var t:int = c - 1; t &amp;gt; -1; t--)&lt;br /&gt;
			{&lt;br /&gt;
				if (tileGrid.hasOwnProperty(t.toString() + r.toString()))&lt;br /&gt;
				{&lt;br /&gt;
					xMin = t + 1;&lt;br /&gt;
					break;&lt;br /&gt;
				}&lt;br /&gt;
			}&lt;br /&gt;
			&lt;br /&gt;
			tile.gridX = xMin;&lt;br /&gt;
			moveTile(tiles[tileIndex]);&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== End Game ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Replicant]]&lt;/div&gt;</summary>
		<author><name>R3pl1cant</name></author>
	</entry>
	<entry>
		<id>https://wiki.extremist.software/index.php?title=2048&amp;diff=40921</id>
		<title>2048</title>
		<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=2048&amp;diff=40921"/>
		<updated>2014-03-27T23:08:12Z</updated>

		<summary type="html">&lt;p&gt;R3pl1cant: /* Logic */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a dissection of the massive time hole game otherwise known as &#039;&#039;&#039;2048&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Since this game has been remarkably successful at gobbling up time in a possibly pointless sort of way, lets see if we can take apart the mechanics of it as an example of fundamental game architecture and development.&lt;br /&gt;
&lt;br /&gt;
http://gabrielecirulli.github.io/2048/&lt;br /&gt;
&lt;br /&gt;
The documentation contained here in is unindented for the lulz and as a mechanism for learning and inquiry. The initial methodology will be based on reverse engineering the game play itself, and recreating the logic with original code. After this process there will likely be an analysis and comparison of the original code and further digging in to ideological differences, optimizations and possible alternatives.&lt;br /&gt;
&lt;br /&gt;
== Layout ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-----------------&lt;br /&gt;
| 2 | 2 |   |   |&lt;br /&gt;
-----------------&lt;br /&gt;
| 4 |   |   |   |&lt;br /&gt;
-----------------&lt;br /&gt;
|   |   |   |   |&lt;br /&gt;
-----------------&lt;br /&gt;
|   |   |   |   |&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
The basic game layout is based on a 4x4 grid of tiles.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Logic ==&lt;br /&gt;
&lt;br /&gt;
=== Start State ===&lt;br /&gt;
&lt;br /&gt;
The game starts with a simple randomization of two tiles placed on the board. The initial tiles have a value of either &#039;2&#039; or &#039;4&#039;, and is heavily weighted towards a value of &#039;2&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Replicant]]&lt;/div&gt;</summary>
		<author><name>R3pl1cant</name></author>
	</entry>
	<entry>
		<id>https://wiki.extremist.software/index.php?title=2048&amp;diff=40918</id>
		<title>2048</title>
		<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=2048&amp;diff=40918"/>
		<updated>2014-03-27T22:44:53Z</updated>

		<summary type="html">&lt;p&gt;R3pl1cant: /* Layout */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a dissection of the massive time hole game otherwise known as &#039;&#039;&#039;2048&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Since this game has been remarkably successful at gobbling up time in a possibly pointless sort of way, lets see if we can take apart the mechanics of it as an example of fundamental game architecture and development.&lt;br /&gt;
&lt;br /&gt;
http://gabrielecirulli.github.io/2048/&lt;br /&gt;
&lt;br /&gt;
The documentation contained here in is unindented for the lulz and as a mechanism for learning and inquiry. The initial methodology will be based on reverse engineering the game play itself, and recreating the logic with original code. After this process there will likely be an analysis and comparison of the original code and further digging in to ideological differences, optimizations and possible alternatives.&lt;br /&gt;
&lt;br /&gt;
== Layout ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-----------------&lt;br /&gt;
| 2 | 2 |   |   |&lt;br /&gt;
-----------------&lt;br /&gt;
| 4 |   |   |   |&lt;br /&gt;
-----------------&lt;br /&gt;
|   |   |   |   |&lt;br /&gt;
-----------------&lt;br /&gt;
|   |   |   |   |&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
The basic game layout is based on a 4x4 grid of tiles.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Logic ==&lt;br /&gt;
&lt;br /&gt;
(placeholder for basic game logic)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Replicant]]&lt;/div&gt;</summary>
		<author><name>R3pl1cant</name></author>
	</entry>
	<entry>
		<id>https://wiki.extremist.software/index.php?title=2048&amp;diff=40916</id>
		<title>2048</title>
		<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=2048&amp;diff=40916"/>
		<updated>2014-03-27T22:32:30Z</updated>

		<summary type="html">&lt;p&gt;R3pl1cant: take&amp;#039;n shizzle apart&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a dissection of the massive time hole game otherwise known as &#039;&#039;&#039;2048&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Since this game has been remarkably successful at gobbling up time in a possibly pointless sort of way, lets see if we can take apart the mechanics of it as an example of fundamental game architecture and development.&lt;br /&gt;
&lt;br /&gt;
http://gabrielecirulli.github.io/2048/&lt;br /&gt;
&lt;br /&gt;
The documentation contained here in is unindented for the lulz and as a mechanism for learning and inquiry. The initial methodology will be based on reverse engineering the game play itself, and recreating the logic with original code. After this process there will likely be an analysis and comparison of the original code and further digging in to ideological differences, optimizations and possible alternatives.&lt;br /&gt;
&lt;br /&gt;
== Layout ==&lt;br /&gt;
&lt;br /&gt;
(placeholder for diagram of layout)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Logic ==&lt;br /&gt;
&lt;br /&gt;
(placeholder for basic game logic)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Replicant]]&lt;/div&gt;</summary>
		<author><name>R3pl1cant</name></author>
	</entry>
	<entry>
		<id>https://wiki.extremist.software/index.php?title=Category:Replicant&amp;diff=40915</id>
		<title>Category:Replicant</title>
		<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=Category:Replicant&amp;diff=40915"/>
		<updated>2014-03-27T22:31:46Z</updated>

		<summary type="html">&lt;p&gt;R3pl1cant: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Excellent.gif]]&lt;br /&gt;
&lt;br /&gt;
[[File:Keep-calm-and-party-on.png|400px|right]]&lt;/div&gt;</summary>
		<author><name>R3pl1cant</name></author>
	</entry>
	<entry>
		<id>https://wiki.extremist.software/index.php?title=File:Keep-calm-and-party-on.png&amp;diff=40914</id>
		<title>File:Keep-calm-and-party-on.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=File:Keep-calm-and-party-on.png&amp;diff=40914"/>
		<updated>2014-03-27T22:29:53Z</updated>

		<summary type="html">&lt;p&gt;R3pl1cant: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>R3pl1cant</name></author>
	</entry>
</feed>