Skip to content

Commit

Permalink
add for the benefit of readers
Browse files Browse the repository at this point in the history
  • Loading branch information
practicingruby committed Jan 16, 2012
1 parent ceb8ddf commit 88da00c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ideas/tape_example.rb
@@ -0,0 +1,8 @@
tape = TuringTarpit::Tape.new

tape.cell_value #=> 0
tape.cell_value = 100 #=> 100
tape.increment_cell_value #=> 101
tape.decrement_cell_value #=> 100
tape.increment_pointer
tape.decrement_pointer

0 comments on commit 88da00c

Please sign in to comment.