Skip to content

Commit

Permalink
fix: fix langton start place
Browse files Browse the repository at this point in the history
  • Loading branch information
bolinocroustibat committed Jul 23, 2024
1 parent 11de752 commit 4a71257
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 2d/langton/langton.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export class LangtonAutomaton extends Automaton2D {
this.setUniformStateAndRender()

// Initial values for the cursor (has to be set after the initial state)
this.positionX = Math.round(this.state.length / 2 - 1)
this.positionY = Math.round(this.state[0].length / 2 - 1)
this.positionX = Math.round(this.state[0].length / 2 - 1)
this.positionY = Math.round(this.state.length / 2 - 1)
this.orientationX = -1 // start orientated towards left
this.orientationY = 0
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cyclic-cellular-automaton",
"private": true,
"version": "3.3",
"version": "3.4",
"type": "module",
"scripts": {
"dev": "bunx --bun vite",
Expand Down

0 comments on commit 4a71257

Please sign in to comment.