-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathrun.html
65 lines (56 loc) · 1.78 KB
/
run.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
layout: page
title: Running clingo
css:
- /css/clingo.css
javascript:
- /js/ace.js
- /js/clingo-module.js
- /js/clingo.js
permalink: /clingo/run/
---
<div class="center">
<ul class="hlist">
<li><b>Examples:</b></li>
<li>
<select id="examples" onchange="example()">
<optgroup label="Simple Examples">
<option value="/clingo/run/examples/harry-and-sally.lp">Harry and Sally</option>
<option value="/clingo/run/examples/flying-birds.lp">Flying Birds</option>
<option value="/clingo/run/examples/graph-coloring.lp">Graph Coloring</option>
<option value="/clingo/run/examples/n-queens.lp">n-Queens</option>
</optgroup>
<optgroup label="Advanced Examples">
<option value="/clingo/run/examples/traveling-salesperson.lp">Traveling Salesperson</option>
<option value="/clingo/run/examples/blocksworld-planning.lp">Blocksworld Planning</option>
<option value="/clingo/run/examples/pigeonator-propagator.lp">Pigeonator Propagator</option>
</optgroup>
</select>
</li>
</ul>
<pre id="input">
% instance
motive(harry).
motive(sally).
guilty(harry).
% encoding
innocent(Suspect) :- motive(Suspect), not guilty(Suspect).</pre>
<ul class="hlist">
<li><b>Configuration:</b></li>
<li>reasoning mode
<select id="mode">
<option selected>default</option>
<option>brave</option>
<option>cautious</option>
<option>enumerate all</option>
</select>
</li>
<li><input type="checkbox" id="project"/> project</li>
<li><input type="checkbox" id="stats"/> statistics</li>
</ul>
<input type="button" id="run" value="► Run!" onclick="solve()" disabled/>
<pre id="output" class="code"></pre>
</div>
<script type="text/javascript">
var Module; // global
</script>