-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdeadfish.mlg
56 lines (54 loc) · 1.52 KB
/
deadfish.mlg
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
MEMORY LAYOUT: 0:10 1:'>' 2:32 3:x 4:input
d i o s
++++++
========
+++++++)<
+======="
>++ (-[!)++..(
========#======
))) ++++++++++<
===============
>++++
===== ).)..).((( <- print prompt
++++(< < ) <<<< <
+======" ============================""""=="
>+++)-[!(.))>, NOW AT 4, mem is set
=======#======
. ((((< DO NOT print newline
======
>)))) return to 4
=====
++++++++++)<
=============
>>(-------
="=======-
(![ -)--<
#======== AGAIN AT 4
>---------------[
=================
><< middle < skipped
= if 's'
====
++++[!(: !
======#================#
>++++++[!(+ !
"=======#=========#
>+++++[!(- !
"======#===#
>( !
"====#
>(>-)+)+)) move 1 to 2 3 5
=="======
)![((((+<
)#=======
+((-< ) <
move 3>1 )==="============="
>) [!
====#
dec 2 >(- )))>-(+( move 5 to 4 3
======="===+
+)-<(![))< -[< -[<
move 4 to 5 (=="=#==== ==" =="
> [! (([! )> [!))> [!((((! answer in 1
===#=======#======#=====#====#
clean 3 5