Skip to content

Commit

Permalink
fix: do not pad tape/print block
Browse files Browse the repository at this point in the history
fixes #1
  • Loading branch information
ctjlewis committed Apr 21, 2024
1 parent 9652559 commit 2b31fec
Show file tree
Hide file tree
Showing 3 changed files with 388 additions and 388 deletions.
2 changes: 1 addition & 1 deletion programs/automata/eval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function testAutomata(
const rule = generateRule(ruleNumber, log)

function info(i: number) {
const indexLabel = `${i-1}/${generations}`.padEnd(5)
const indexLabel = `${i-1}/${generations}`
log("")
log(`TAPE ${indexLabel} ${positions(format(state).split(""))}`)
log(`PRINT ${indexLabel} ${format(state, " ")}`)
Expand Down
Loading

0 comments on commit 2b31fec

Please sign in to comment.