aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2021-02-19 15:45:34 +0100
committerAbigail <abigail@abigail.be>2021-02-19 16:28:49 +0100
commit34396d60fc1cd0f672d3c4a674ce1f0a0415d506 (patch)
tree07ad190375ce7a66d25617bd1085ffe26df4824c
parentc91195bb834b740c54cbd0073961f443bacf4f0e (diff)
downloadperlweeklychallenge-club-34396d60fc1cd0f672d3c4a674ce1f0a0415d506.tar.gz
perlweeklychallenge-club-34396d60fc1cd0f672d3c4a674ce1f0a0415d506.tar.bz2
perlweeklychallenge-club-34396d60fc1cd0f672d3c4a674ce1f0a0415d506.zip
Don't rely on buggy Befunge::Interpreter
We're using a patched version of Befunge::Interpreter fixing some of its glaring bugs. But the Befunge-93 specification says that a space should be printed after printing a number. Befunge::Interpreter does not do that, and we had not compensated for this bug yet. But that made our tests succeed, when they should fail. So, now, instead of printing a single number, we now split the number in tens and units, and print the number as characters. While doing this, we found yet another Befunge::Interpreter which needed to be compensated for.
-rw-r--r--challenge-100/abigail/befunge-93/ch-1.bf9327
1 files changed, 12 insertions, 15 deletions
diff --git a/challenge-100/abigail/befunge-93/ch-1.bf93 b/challenge-100/abigail/befunge-93/ch-1.bf93
index 180760e6f6..872410ca03 100644
--- a/challenge-100/abigail/befunge-93/ch-1.bf93
+++ b/challenge-100/abigail/befunge-93/ch-1.bf93
@@ -1,15 +1,12 @@
->022p&:1+!#@_~$&\> ~:" "-!#v_:"a"-!#v_:"p"-!#v_$v
-,>"m"v ^ < :
-*, , 5
-2^_ v v _v#-*34: $$$~~ < 6
-5 : v 0$< v +#< <
-^ g# < v < ` % +
- 2 v_v+ 6
- 2 v*34$< " "6 6
- ^.<_0.v v _^#-*38: ++66 $$$~~ < p a6 $
- ^`# < : " "^_^
- * 3 >v< %
- 3 3 2 +
- 3 * 2 6
- : v`# < p 6
- ^,":".<_0.^ >: ^
+>011p&:1+!#@_~$&\> ~:" "-!#v_:"a"-!#v_:"p"-!#v_v
+ ^ < $
+ v _v#-*34: $$$~~ < :
+ v 0$< v%+66 < v"p"<
+ v < |%+66:p11< |`+5 6<
+ v *34$< ^ +66$< ^"a"<
+ v _^#-*38: ++66 $$$~~ <
+ v $<
+^ ,+55 <,"m",_^#:g11<
+ >"v">58*9p :55+/ 68*+, 55+% 68*+, v
+ >"^"^
+ ^ ,":" <