mirror of
https://github.com/FranP-code/Tic-Tac-Toe-Game.git
synced 2025-10-12 23:52:39 +00:00
Emoji picker bug fix
This commit is contained in:
@@ -2,5 +2,5 @@ export default function addStartButtonFunctionality(game) {
|
|||||||
|
|
||||||
const button = document.getElementById('start')
|
const button = document.getElementById('start')
|
||||||
|
|
||||||
button.addEventListener('click', game)
|
button.addEventListener('click', () => game(false, false))
|
||||||
}
|
}
|
||||||
@@ -8,6 +8,7 @@ export default function gameLogic(checkInputsResult, replay) {
|
|||||||
function Player(position) {
|
function Player(position) {
|
||||||
|
|
||||||
console.log(replay)
|
console.log(replay)
|
||||||
|
console.log(checkInputsResult)
|
||||||
|
|
||||||
if (replay) {
|
if (replay) {
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ function main(game) {
|
|||||||
|
|
||||||
function game(checkInputsResult, replay) {
|
function game(checkInputsResult, replay) {
|
||||||
|
|
||||||
|
console.log(checkInputsResult)
|
||||||
|
|
||||||
if (!checkInputsResult) {
|
if (!checkInputsResult) {
|
||||||
|
|
||||||
checkInputsResult = checkInputs()
|
checkInputsResult = checkInputs()
|
||||||
|
|||||||
Reference in New Issue
Block a user