UNPKG

535 BHTMLView Raw
1<html>
2<head>
3 <title>WallFollower</title>
4</head>
5<body>
6 <script type="module">
7 import * as util from 'https://code.agentscript.org/src/utils.js'
8 import Model from 'https://code.agentscript.org/models/WallFollowerModel.js'
9
10 util.printToPage('Running for 500 steps.')
11
12 const model = new Model()
13 await model.startup()
14 model.setup()
15
16 util.repeat(500, model.step)
17
18 const sample = util.sampleModel(model)
19 util.printToPage(sample)
20 </script>
21</body>
22</html>