We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f11571 commit 173ea8cCopy full SHA for 173ea8c
lib/tetris/game.ex
@@ -89,7 +89,7 @@ defmodule Tetris.Game do
89
collision_with_bottom?(state) || collision_with_board?(state) ->
90
new_state = %State{state | board: board_with_overlaid_shape(state) }
91
cleared_state = State.clear_lines(new_state)
92
- %State{cleared_state | current: state.next, x: 5, y: 0, next: Shapes.random}
+ %State{cleared_state | current: state.next, x: 5, y: 0, next: Shapes.random, rotation: 0}
93
:else ->
94
%State{state | y: state.y + 1}
95
end
0 commit comments