Skip to content

Commit

Permalink
fix conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
JayAgra committed May 22, 2023
1 parent 92bc1d6 commit fdacdfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2023.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function weightScores(submissionID) {
var cubes = 0;
var cones = 0;
result.game12.split("").forEach(function(item, index, array) {
var fullgrid = array.includes("0");
var fullgrid = !array.includes("0");
if (index <= 8 && item !== "0") {
if (item === "3" || item === "4" && fullgrid) {
gridwt = gridwt + 3;
Expand Down

0 comments on commit fdacdfc

Please sign in to comment.