Python Forum
Tic Tac Toe, Python, code won`t run
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tic Tac Toe, Python, code won`t run
#9
The positions are not empty when you start, they contain spaces.

Your game is hard to play. I didn't know how I was supposed to enter a position on the board. Do I enter row column or row, column or column, row or something else. Why do I have to enter two numbers? I don't like to type. Is the top left position 1, 1 or 0, 0?

There have been a lot of tic-tac-toe games on the forum and I like the ones that present the board like this:
Output:
1 2 3 4 5 6 7 8 9 Enter position (1-9) for X:
It is pretty clear I should type 5 to put 'X' in the center position.

Using positions 1 through 9 also changes the board from a matrix to an array. And you don't have to worry about blank slots because the board starts out full.
Reply


Messages In This Thread
RE: Tic Tac Toe, Python, code won`t run - by buran - Sep-25-2020, 11:24 AM
RE: Tic Tac Toe, Python, code won`t run - by deanhystad - Sep-25-2020, 03:50 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020