Skip to content

Commit

Permalink
Simplify the update function
Browse files Browse the repository at this point in the history
  • Loading branch information
w0rm committed Nov 15, 2023
1 parent 0b82ba2 commit 45e6b28
Show file tree
Hide file tree
Showing 2 changed files with 268 additions and 315 deletions.
7 changes: 1 addition & 6 deletions src/EightBall.elm
Original file line number Diff line number Diff line change
Expand Up @@ -636,12 +636,7 @@ playerBreak shotEvents data =
numberOfBallsToWall =
numberOfBallsHitWall shotEvents
in
if
numberOfBallsToWall
< 4
&& List.length allPocketedBalls
< 1
then
if (numberOfBallsToWall < 4) && (List.length allPocketedBalls < 1) then
IllegalBreak <|
Pool
{ data
Expand Down
Loading

0 comments on commit 45e6b28

Please sign in to comment.