Skip to content

Commit bb36e97

Browse files
committed
Fix incorrect input validation
1 parent 42ffbae commit bb36e97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/gameplay.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def final_score(frames)
7272
def validate_input(input, frames)
7373
return false if input == ""
7474
return false if input == "/" && @current_ball == 1
75-
return false if input == "X" && @current_ball == 2
75+
return false if input == "X" && @current_ball == 2 && @current_frame != 10
7676
return false if /[X\/1-9]/.match(input) == nil
7777
end
7878
end

0 commit comments

Comments
 (0)