summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-08-16 22:55:39 +1000
committerJed Barber <jjbarber@y7mail.com>2017-08-16 22:55:39 +1000
commitd654fd5976437678a9f9ca19464fbf4593f0a740 (patch)
tree99e16bd49daf343f66d6f38153fb1a69d989bf1d
parent7299eb1594efddd424af5d5e7feb216306b60ce7 (diff)
Updated license, smoothed a few minor glitchesHEADmaster
-rw-r--r--license.txt14
-rw-r--r--makefile4
-rw-r--r--readme.txt3
-rw-r--r--src/agent.prolog2
-rw-r--r--src/main.prolog2
-rw-r--r--unlicense.txt24
6 files changed, 30 insertions, 19 deletions
diff --git a/license.txt b/license.txt
deleted file mode 100644
index 5a8e332..0000000
--- a/license.txt
+++ /dev/null
@@ -1,14 +0,0 @@
- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
- Version 2, December 2004
-
- Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
-
- Everyone is permitted to copy and distribute verbatim or modified
- copies of this license document, and changing it is allowed as long
- as the name is changed.
-
- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. You just DO WHAT THE FUCK YOU WANT TO.
-
diff --git a/makefile b/makefile
index 2adaf2a..e7bf9e0 100644
--- a/makefile
+++ b/makefile
@@ -4,6 +4,8 @@ SOURCEDIR = src
EXECUTABLES = ${OUTPUTDIR}/wumpus
+COMPILER = swipl
+
all: huntthewumpus
@@ -17,4 +19,4 @@ distclean:
huntthewumpus:
- prolog --goal=play --stand_alone=true -o ${OUTPUTDIR}/wumpus -c ${SOURCEDIR}/main.prolog
+ ${COMPILER} --goal=play --stand_alone=true -o ${OUTPUTDIR}/wumpus -c ${SOURCEDIR}/main.prolog
diff --git a/readme.txt b/readme.txt
index e063e3e..1e4bc45 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,7 +1,6 @@
Hunt The Wumpus
-
-
+---------------
An implementation of the classic text adventure game.
diff --git a/src/agent.prolog b/src/agent.prolog
index 0b8ed3e..7b62877 100644
--- a/src/agent.prolog
+++ b/src/agent.prolog
@@ -1,5 +1,5 @@
-:- module(agent, [init, look/0, move/1, take/1, shoot/1, hazardAt/1, somethingAt/1]).
+:- module(agent, [init/0, look/0, move/1, take/1, shoot/1, hazardAt/1, somethingAt/1]).
:- consult('misc.prolog').
diff --git a/src/main.prolog b/src/main.prolog
index 09011ed..ae9fc7b 100644
--- a/src/main.prolog
+++ b/src/main.prolog
@@ -8,7 +8,7 @@
play :-
- write('\n\nHUNT THE WUMPUS\n\n\n'),
+ write('\nHUNT THE WUMPUS\n\n'),
init,
look,
playLoop.
diff --git a/unlicense.txt b/unlicense.txt
new file mode 100644
index 0000000..68a49da
--- /dev/null
+++ b/unlicense.txt
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <http://unlicense.org/>