From d654fd5976437678a9f9ca19464fbf4593f0a740 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Wed, 16 Aug 2017 22:55:39 +1000 Subject: Updated license, smoothed a few minor glitches --- license.txt | 14 -------------- makefile | 4 +++- readme.txt | 3 +-- src/agent.prolog | 2 +- src/main.prolog | 2 +- unlicense.txt | 24 ++++++++++++++++++++++++ 6 files changed, 30 insertions(+), 19 deletions(-) delete mode 100644 license.txt create mode 100644 unlicense.txt 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 - - 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 -- cgit