summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-08-08 01:03:41 +1000
committerJed Barber <jjbarber@y7mail.com>2017-08-08 01:03:41 +1000
commit4795c934fc38d04e1ca8ab3fa9e59fba7bc99729 (patch)
tree646de2518b35e8e400f511321ff6f2237eb044cf
parent1a7e98a629ccc244b047a6e4858e87bb170047ae (diff)
Added Sokoban article
-rw-r--r--project/assets/img/sokoban_level0.pngbin0 -> 59118 bytes
-rw-r--r--project/complexity.yml1
-rw-r--r--project/templates/index.html3
-rw-r--r--project/templates/sokoban.html40
4 files changed, 44 insertions, 0 deletions
diff --git a/project/assets/img/sokoban_level0.png b/project/assets/img/sokoban_level0.png
new file mode 100644
index 0000000..92874f4
--- /dev/null
+++ b/project/assets/img/sokoban_level0.png
Binary files differ
diff --git a/project/complexity.yml b/project/complexity.yml
index 883d253..9ee1cb8 100644
--- a/project/complexity.yml
+++ b/project/complexity.yml
@@ -17,4 +17,5 @@ unexpanded_templates:
- "stvcount.html"
- "fltkada.html"
- "sunset.html"
+ - "sokoban.html"
diff --git a/project/templates/index.html b/project/templates/index.html
index fa0abab..7180af6 100644
--- a/project/templates/index.html
+++ b/project/templates/index.html
@@ -16,6 +16,9 @@
{% block content %}
<ul class="index">
+ <li><a href="/sokoban.html">Sokoban Clone</a><br>
+ <span class="post">(Posted 8/8/2017)</span></li>
+
<li><a href="/sunset.html">Sunset License</a><br>
<span class="post">(Posted 29/6/2017)</span></li>
diff --git a/project/templates/sokoban.html b/project/templates/sokoban.html
new file mode 100644
index 0000000..701317a
--- /dev/null
+++ b/project/templates/sokoban.html
@@ -0,0 +1,40 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Sokoban Clone{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Sokoban Clone</h4>
+
+<p>Git repository: <a href="/cgit/cgit.cgi/sokoban.git/">Link</a></p>
+
+<h5>8/8/2017</h5>
+
+<p>Back when I was studying computer science at university, there was an assignment involving
+<a href="https://en.wikipedia.org/wiki/Sokoban" target="_blank">Sokoban</a>. We were tasked with completing
+a half written implementation in Java and Swing. This is not that implementation. It is, however, based
+on it. Recently while going over old notes I found the assignment. The submission I had originally
+made is lost to time, but it seemed like a nice quick diversion to get some more use out of the
+FLTK Ada binding.</p>
+
+<figure>
+ <img src="/img/sokoban_level0.png"
+ alt="The first level"
+ height="568"
+ width="764">
+ <figcaption>The first level</figcaption>
+</figure>
+
+<p>This is a vanilla version, so the only mechanic is pushing blocks to specific goal tiles. Controls
+are simple enough that instructions can be left permanently written at the bottom of the window. An
+<a href="https://brilliant.org/wiki/a-star-search/" target="_blank">A* Search</a> algorithm is used
+for the mouse control.</p>
+
+{% endblock %}
+
+