Sha256: 3b7930994a3dcf281d2e92c7e23c7002043cd8a2223fbdea2b94e66cf30d4c81

Contents?: true

Size: 570 Bytes

Versions: 132

Compression:

Stored size: 570 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

132 entries across 118 versions & 9 rubygems

Version Path
tins-1.38.0 examples/bb3.stm
tins-1.37.1 examples/bb3.stm
tins-1.37.0 examples/bb3.stm
tins-1.36.1 examples/bb3.stm
tins-1.36.0 examples/bb3.stm
tins-1.35.0 examples/bb3.stm
tins-1.34.0 examples/bb3.stm
tins-1.33.0 examples/bb3.stm
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/tins-1.31.1/examples/bb3.stm
tins-1.32.1 examples/bb3.stm
tins-1.32.0 examples/bb3.stm
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/tins-1.31.1/examples/bb3.stm
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/tins-1.31.1/examples/bb3.stm
tins-1.31.1 examples/bb3.stm
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/tins-1.31.0/examples/bb3.stm
tins-1.31.0 examples/bb3.stm
tins-1.30.0 examples/bb3.stm
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/tins-1.29.1/examples/bb3.stm
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/tins-1.29.1/examples/bb3.stm
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/tins-1.29.1/examples/bb3.stm