Sha256: 4789da484aa81336da6af0fb8c5598a4d1b36e573b82150b63d06bcd2c425a25

Contents?: true

Size: 651 Bytes

Versions: 9

Compression:

Stored size: 651 Bytes

Contents

# vim: ts=2 sw=2 et ft=ruby
# Call with an empty tape
# $ turing.rb bb3.stm ''

# Busy Beaver: 3-state, 2-symbol

# state A
 1. cond  :if => 'B', :then => 2, :else => 4
 2. write :symbol => '1', :goto => 3
 3. right :goto => 6
 4. write :symbol => '1', :goto => 5
 5. right :goto => 16
# state B
 6. cond  :if => 'B', :then => 7, :else => 9
 7. write :symbol => 'B', :goto => 8
 8. right :goto => 11
 9. write :symbol => '1', :goto => 10
10. right :goto => 6
# state C
11. cond  :if => 'B', :then => 12, :else => 14
12. write :symbol => '1', :goto => 13
13. left  :goto => 11
14. write :symbol => '1', :goto => 15
15. left  :goto => 1
# halt
16. halt

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
tins-1.3.0 examples/bb3.stm
tins-1.2.0 examples/bb3.stm
tins-1.1.0 examples/bb3.stm
tins-1.0.1 examples/bb3.stm
tins-1.0.0 examples/bb3.stm
dslkit-0.2.13 examples/bb3.stm
dslkit-0.2.12 examples/bb3.stm
dslkit-0.2.11 examples/bb3.stm
dslkit-0.2.10 examples/bb3.stm