About 56,900 results
Open links in new tab
  1. I made this code to make a tic-tac-toe game without a GUI in …

    Feb 16, 2020 · I made this code on tic-tac-toe in python and after iterating it works fine but in between the computer stops giving input. My code involves a user vs computer game. Please …

  2. How to print a tic-tac-toe board using a for loop in Python

    Mar 9, 2022 · You can make a Tic Tac Toe game using the folowing code : import random class TicTacToe: def __init__(self): self.board = [] def create_board(self): for i in range(3): row = [] …

  3. tic tac toe - Python ticTacToe game with turtle - Stack Overflow

    Dec 11, 2013 · I would hide the turtle using Turtle.ht(), then make lines, and figure out the region that each square is in. using if loops, make 'buttons' or spaces where, if pressed, will be an X …

  4. Python - Determine Tic-Tac-Toe Winner - Stack Overflow

    Two check the winner in tic-tac-toe you can use this function. you have to create a 2d-array like this first: board=[[0,0,0], [0,0,0], [0,0,0]] so when it is x's turn click the box and change the …

  5. Tic Tac Toe Python Program - Stack Overflow

    Apr 9, 2015 · You can try this: find below python code for end-to-end interactive Tic-Tac-Toe board game. Code looks lengthy which can be optimized, but it works perfect as interactive Tic …

  6. Tic Tac Toe Game on Python using TURTLE - Stack Overflow

    Dec 2, 2013 · I would like to make a Tic Tac Toe using turtle on python. Assuming that I make a grid by making 9 squares using the following code: for i in range(4): turtle.forward(60) …

  7. python - Tic Tac Toe: display score, prevent duplicate entries, print ...

    Jun 3, 2017 · I'm new to Python and programming, and I'm trying to make a tic tac toe game based on specific guidelines. This is my code: import random import time marker = {'Player 1 ': …

  8. tic tac toe - Tic Tac Toe in python. How to make it so you can't ...

    Dec 10, 2020 · How to switch between players in tic tac toe in Python. 0. Simple 2 Players Tic Tac Toe Python. 8.

  9. How to make tic tac toe in Python using turtle without the number ...

    May 9, 2019 · Here's my example of a Tic-Tac-Toe game where the computer plays by picking random squares and the code tries to avoid numbers as much as possible. It has the ability to …

  10. Tic tac toe python game - Stack Overflow

    Jan 20, 2020 · I am new to python and am working on a tic-tac-toe game. I am stuck in make_move and next_player function ...

Refresh