diff --git a/wozardry.py b/wozardry.py index 1e7b0d3..1e72c4d 100755 --- a/wozardry.py +++ b/wozardry.py @@ -182,8 +182,8 @@ class Track(RawTrack): n += b << bit_index yield n - def rewind(self, bit_count): - self.bit_index -= 1 + def rewind(self, bit_count=1): + self.bit_index -= bit_count if self.bit_index < 0: self.bit_index = self.bit_count - 1 self.revolutions -= 1