Skip to content

Commit

Permalink
Fix slit width answer
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTrustyPwo committed Aug 20, 2024
1 parent 144a1c2 commit 5141967
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/game/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ function possConstPhaseDiff() {
}

function increaseSlitWidth() {
const correctOpt = `Only the spacing between maxima points decreases`
const correctOpt = `The intensity increases while the spacing between maxima points decreases`
const wrongOpt1 = `Only the spacing between maxima points increases`
const wrongOpt2 = `Both the intensity and the spacing between maxima points increases`
const wrongOpt3 = `Both the intensity and the spacing between maxima points decreases`
const wrongOpt4 = `The intensity increases while the spacing between maxima points decreases`
const wrongOpt4 = `Only the spacing between maxima points decreases`
const wrongOpt5 = `The intensity decreases while the spacing between maxima points increases`


Expand All @@ -164,12 +164,12 @@ function increaseSlitWidth() {
}

function decreaseSlitWidth() {
const correctOpt = `Only the spacing between maxima points increases`
const correctOpt = `The intensity decreases while the spacing between maxima points increases`
const wrongOpt1 = `Only the spacing between maxima points decreases`
const wrongOpt2 = `Both the intensity and the spacing between maxima points increases`
const wrongOpt3 = `Both the intensity and the spacing between maxima points decreases`
const wrongOpt4 = `The intensity increases while the spacing between maxima points decreases`
const wrongOpt5 = `The intensity decreases while the spacing between maxima points increases`
const wrongOpt5 = `Only the spacing between maxima points increases`


const wrongOpts = [wrongOpt1, wrongOpt2, wrongOpt3, wrongOpt4, wrongOpt5]
Expand Down Expand Up @@ -317,7 +317,7 @@ function changeSlitWidth(){
}

function GenQuestion() {
randomQuestion = getRandomInt(0, 7)
const randomQuestion = getRandomInt(0, 6)
if (randomQuestion === 0) {
return lightColor();
} else if (randomQuestion === 1) {
Expand All @@ -332,7 +332,7 @@ function GenQuestion() {
return changeSlitSeparation()
} else if (randomQuestion === 6) {
return changeSlitWidth()
} else if (randomQuestion === 7) {
} else if (randomQuestion === 6) {
return changeWaveLength()
}

Expand Down

0 comments on commit 5141967

Please sign in to comment.