Browse files

Cleanup Tape class in BrainmessShort

Several of the methods I extracted to make the Tape class had return
values. Now that they are all part of the Tape class which manages the
state of the tape counter, these methods can be converted to be
void and return nothing.
  • Loading branch information...
michaelgwelch committed Apr 1, 2012
1 parent 3e4f68a commit 836a96877b7ffa3b04a75d73f66063dfef9dcbc2
Showing with 8 additions and 8 deletions.
  1. +8 −8 csharp/BrainmessShort/Tape.cs
@@ -7,24 +7,24 @@ public class Tape
private readonly int[] tape = new int[5000];
private int tc = 2500;
public int MoveForward()
public void MoveForward()
return tc++;
public int MoveBackward()
public void MoveBackward()
return tc--;
public int Increment()
public void Increment()
return tape[tc]++;
public int Decrement()
public void Decrement()
return tape[tc]--;
public int Current

0 comments on commit 836a968

Please sign in to comment.