-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
820 changed files
with
464,068 additions
and
1,445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,39 @@ | ||
(defproject pucks "0.1.26" | ||
:description "An environment for experiments and education in artificial intelligence and artificial life." | ||
(defproject pucks "0.1.0-SNAPSHOT" | ||
:description "FIXME: write description" | ||
:url "http://example.com/FIXME" | ||
:license {:name "Eclipse Public License" | ||
:url "https://github.com/lspector/pucks"} | ||
:url "http://www.eclipse.org/legal/epl-v10.html"} | ||
:dependencies [[org.clojure/clojure "1.10.1"] | ||
[quil "4.0.0-SNAPSHOT"] | ||
[clojush "2.8.0"]] | ||
[org.clojure/clojurescript "1.10.520"] | ||
[net.clojars.lspector/propeller "0.2.1"]] | ||
|
||
:plugins [[lein-cljsbuild "1.1.7"] | ||
[lein-figwheel "0.5.19"]] | ||
:hooks [leiningen.cljsbuild] | ||
|
||
:profiles {:uberjar {:aot :all}} | ||
:resource-paths ["target"] | ||
:main pucks.core | ||
:target-path "target/%s" | ||
:profiles {:uberjar {:aot :all}} | ||
;; the following should automatically take n% of the machine's RAM and also use the G1 garbage collector | ||
;:jvm-opts ~(let [mem-to-use (long (* (.getTotalPhysicalMemorySize | ||
; (java.lang.management.ManagementFactory/getOperatingSystemMXBean)) | ||
; 0.5))] | ||
; [(str "-Xmx" mem-to-use) | ||
; (str "-Xms" mem-to-use) | ||
; ;"-XX:+UseG1GC" | ||
; ]) | ||
) | ||
|
||
:clean-targets ^{:protect false} ["resources/public/js"] | ||
:cljsbuild | ||
{:builds [; development build with figwheel hot swap | ||
{:id "development" | ||
:source-paths ["src"] | ||
:figwheel true | ||
:compiler | ||
{:main "pucks.core" | ||
:output-to "resources/public/js/main.js" | ||
:output-dir "resources/public/js/development" | ||
:asset-path "js/development"}} | ||
; minified and bundled build for deployment | ||
{:id "optimized" | ||
:source-paths ["src"] | ||
:compiler | ||
{:main "pucks.core" | ||
:output-to "resources/public/js/main.js" | ||
:output-dir "resources/public/js/optimized" | ||
:asset-path "js/optimized" | ||
:optimizations :advanced}}]}) |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@600&display=swap" rel="stylesheet"> | ||
<link href='./style.css' rel='stylesheet'> | ||
<title>pucks</title> | ||
</head> | ||
<body> | ||
<p>Pucks: An environment for experiments and education in artificial intelligence and artificial life.</p> | ||
|
||
<div align="center"> | ||
|
||
<select id="mySelect"> | ||
<option value="World1">World1</option> | ||
<option value="World2">World2</option> | ||
<option value="World3">World3</option> | ||
<option value="World4">World4</option> | ||
<option value="World5">World5</option> | ||
<option value="World6">World6</option> | ||
<option value="World7">World7</option> | ||
<option value="World8">World8</option> | ||
<option value="World9">World9</option> | ||
<option value="World10">World10</option> | ||
<option value="World11">World11</option> | ||
<option value="World12">World12</option> | ||
<option value="World13">World13</option> | ||
<option value="World14">World14</option> | ||
<option value="World15">World15</option> | ||
<option value="World16">World16</option> | ||
<option value="World17">World17</option> | ||
<option value="World18">World18</option> | ||
<option value="World19">World19</option> | ||
<option value="World20">World20</option> | ||
<option value="World21">World21</option> | ||
<option value="World22">World22</option> | ||
<option value="World23">World23</option> | ||
<option value="World24">World24</option> | ||
<option value="aiWorld1">aiWorld1</option> | ||
<option value="aiWorld2">aiWorld2</option> | ||
<option value="aiWorld3">aiWorld3</option> | ||
<option value="aiWorld4">aiWorld4</option> | ||
<option value="aiWorld5">aiWorld5</option> | ||
<option value="aiWorld6">aiWorld6</option> | ||
<option value="aiWorld7">aiWorld7</option> | ||
<option value="aiWorld8">aiWorld8</option> | ||
</select> | ||
<button id="btn">Run!</button> | ||
|
||
<script> document.getElementById('btn').addEventListener("click", function(){ | ||
var x = document.getElementById("mySelect").value; | ||
pucks.core._main(x);});</script> | ||
|
||
</div> | ||
<div id="pucks"> | ||
<script src="js/main.js"></script> | ||
</div> | ||
<!-- <script>pucks.core._main()</script>--> | ||
</body> | ||
</html> |
Oops, something went wrong.