summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthoine Bourgeois <anthoine.bourgeois@gmail.com>2014-10-14 23:21:09 +0200
committerAnthoine Bourgeois <anthoine.bourgeois@gmail.com>2014-10-14 23:21:09 +0200
commitb682f1efe3d8953d9c0a23445c6dbf808fa9b6cd (patch)
tree1b404fcfd8e4df639334c9507d070b95ac2822cd /games-simulation/corewars/files
parentcorewars-0.9.13-r1.ebuild (diff)
downloadaluco-b682f1efe3d8953d9c0a23445c6dbf808fa9b6cd.tar.gz
aluco-b682f1efe3d8953d9c0a23445c6dbf808fa9b6cd.tar.bz2
aluco-b682f1efe3d8953d9c0a23445c6dbf808fa9b6cd.zip
corewars-0.9.13-r1.ebuild
- add a new corewars robot - fix egamesconf - fix a crash when try to load a new robot's directory
Diffstat (limited to 'games-simulation/corewars/files')
-rw-r--r--games-simulation/corewars/files/0.9.13-fix-get_current_dir_name-prototype.patch11
-rw-r--r--games-simulation/corewars/files/reroute.cw17
2 files changed, 28 insertions, 0 deletions
diff --git a/games-simulation/corewars/files/0.9.13-fix-get_current_dir_name-prototype.patch b/games-simulation/corewars/files/0.9.13-fix-get_current_dir_name-prototype.patch
new file mode 100644
index 0000000..d5d9cd7
--- /dev/null
+++ b/games-simulation/corewars/files/0.9.13-fix-get_current_dir_name-prototype.patch
@@ -0,0 +1,11 @@
+diff -Npur corewars-0.9.13.orig/src/main-gui.c corewars-0.9.13/src/main-gui.c
+--- corewars-0.9.13.orig/src/main-gui.c 2014-10-14 23:08:11.461410224 +0200
++++ corewars-0.9.13/src/main-gui.c 2014-10-14 23:09:38.931417792 +0200
+@@ -15,6 +15,7 @@
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
++#define _GNU_SOURCE
+ #include <stdlib.h>
+ #include <gtk/gtk.h>
+ #include <string.h>
diff --git a/games-simulation/corewars/files/reroute.cw b/games-simulation/corewars/files/reroute.cw
new file mode 100644
index 0000000..1c15271
--- /dev/null
+++ b/games-simulation/corewars/files/reroute.cw
@@ -0,0 +1,17 @@
+# Reroute other processes to execute my code
+
+ Title "Reroute"
+ Author "Jonathan Enders <kannibalenfleisch@web.de>"
+DIA: data &DIA #DestinationIndexA for Jump-Instruction
+DIB: data &DIB #DestinationIndexB for Jump-Coordinates
+
+S: add -2038,DIA
+ add -2038,DIB #Move Jump-Instruction to more
+ move INST,[DIA] #or less random location
+ move DIS,[DIB]
+
+E: jump S #Repeat
+
+
+INST: jump [DIS] #Instruction to be copied to Destination
+DIS: data &S #Address where other processes should jump to