About 61,700 results
Open links in new tab
  1. java - testing tic tac toe win condition - Stack Overflow

    Aug 31, 2013 · Make your tic tac toe board a class, and encapsulate the grid within it. Use a method, say checkEndCondition (), to determine whether the game is over. In this way, you …

  2. Algorithm for Determining Tic Tac Toe Game Over - Stack Overflow

    Jun 29, 2009 · I've written a game of tic-tac-toe in Java, and my current method of determining the end of the game accounts for the following possible scenarios for the game being over: The …

  3. tic tac toe - TicTacToe with GUI in Java - Stack Overflow

    Dec 23, 2019 · As an aside, tic-tac-toe is simpler to code if you use a plain old array, rather than the 2D variety.

  4. (Java) Tic-Tac-Toe game using 2 dimensional Array

    Oct 9, 2016 · In class, our assignment is to create a two-dimensional array and create a tic-tac-toe game around it. I have everything done except displaying when the whole board is full and …

  5. Tic Tac Toe game - object oriented Java - Code Review Stack …

    Dec 24, 2017 · You should consider what the purpose of each class is. Does it represent some object in your problem domain, such as a tic-tac-toe grid? Is it part of a design pattern that …

  6. TicTacToe Java - check for winner - Stack Overflow

    Oct 25, 2013 · Here is my code. I am trying to check for the winner. I am only a beginner, so please make it easy. I wanted the board to change sizes. So, I want the check for winner can …

  7. Tic Tac Toe Java Game - Stack Overflow

    I made a Tic Tac Toe game in java. I have finished the code, but I am not sure how I would check to see if there is a winner in the diagonals. What I tried to put in is: win[x] += (board[0][2] + b...

  8. Tic Tac Toe java - Stack Overflow

    Jun 9, 2012 · I'm a beginner of learning Java programming and I'm doing the game of tic tac toe. When I finish my game, I can't continue to play the game, because the program will exit. What …

  9. java - Tic Tac Toe game beginner level - Stack Overflow

    Dec 10, 2023 · i am new to programming and i was doing a tic tac toe game on beginner level but i can't manage to get my code to repeat when user puts invalid value. Instead of re-asking the …

  10. Tic-Tac-Toe in Java using 2-D arrays - Stack Overflow

    Apr 25, 2014 · I've run into some trouble while trying to code a simple tic-tac-toe program. My issue lies in the checkForWinner method, which was provided to us as part of the exercise. …