I am curious as to if I am using too many if/else if statements. I am writing a tic-tac-toe program using javascript, and to determine if the computer should block the player I am using about 9 if statements and I use about 9 when determining if the...
Hey guys i'm still a noobie with javascript so I hope you guys will be able to help! I was able to create a simple html5 tic tac toe game. I'm just having trouble on how to go about checking if three X or O's are on the same line to end t...
I'm trying to build a basic tic tac toe game in angular 1. When I click on a square I want to either add X or O depending on the turn. I cannot figure out how to do that. I can do it in jquery but I want to do it in angular.   <div class="...
I was following a tutorial on Youtube (The Coding Train) which was making a minesweeper game. I followed the video until I had make a X. I want to make to lines that cross each other and form a big x like this:  The board with a X   The problem I hav...
I create a system to have the names of the players how get the 2 values of the names  I create 2 input text and I want take the 2 values to show the name's players but I can not:  HTML:  <section id="first_section" class="first_sec...
I'm trying to develop a Tic-Tac-Toe game with an unbeatable AI and am at a point where my negamax function returns correct output most of the time. At times, though, under certain predictable conditions, the computer chooses a board move that doe...
i'm stuck with my tic tac toe program for what seems like the 100th time. I am running my program through selenium and everything works fine except that if there is a winner announced it will still switch turns and click another box. for example...
I am currently writing a basic Tic Tac Toe game (multiplayer, no AI) using web (HTML, CSS, Javascript). The game logic obviously is all within the Javascript. I have a question. The following is my code.  window.onload = function () {     console.log...
I've been trying to make a tic-tac-toe game but for some reason, the conditional isn't working..  I tried to target the first three elements on the first row and if they all were the same color, I wanted to browser to alert a "win" po...
I'm working on building a tic-tac-toe game where a variety of combinations could potentially produce a winner. I have created an array that holds the winning combinations (I'm using jquery, hence I have stored them as strings that correspond...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.