correction
This commit is contained in:
parent
af5e5112c3
commit
cc3240da13
1 changed files with 7 additions and 7 deletions
14
script.js
14
script.js
|
@ -59,19 +59,19 @@ function update(x) {
|
|||
}
|
||||
|
||||
function write_result(verif){
|
||||
let pos = ""
|
||||
pos = free_box[0].toString()
|
||||
let pos = "";
|
||||
pos = free_box[0].toString();
|
||||
for(let i=0; i<5; i++){
|
||||
pos = (free_box[0]-1).toString()
|
||||
pos += (i+1).toString()
|
||||
pos = (free_box[0]-1).toString();
|
||||
pos = pos.concat((i+1).toString());
|
||||
if (verif[i] == 2){
|
||||
change_color_good_letter()
|
||||
change_color_good_letter();
|
||||
}
|
||||
else if ( verif[i]===1){
|
||||
change_color_mid_letter()
|
||||
change_color_mid_letter();
|
||||
}
|
||||
else{
|
||||
change_color_bad_letter()
|
||||
change_color_bad_letter();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue