Choose color against cpu

This commit is contained in:
Josh-Heaps
2026-06-12 10:51:26 -06:00
parent 6402ef268c
commit 743c395e11
8 changed files with 92 additions and 19 deletions
@@ -23,6 +23,16 @@ const ChessModals = {
resolve(difficulty);
};
});
},
promptColor() {
return new Promise(resolve => {
document.getElementById("colorModal").style.display = "block";
window.selectColor = (color) => {
document.getElementById("colorModal").style.display = "none";
resolve(color);
};
});
}
};