#Play Tic-tac-toe with ChatGPT!

6 messages · Page 1 of 1 (latest)

snow trellis
#

This is the prompt (I have not tested it with GPT-4 but with ChatGPT it sometimes makes mistakes to check who won.): Let's play Tic-tac-toe! Do not specify the rules of the game, or any other explanation. Start by making a table like this:

1 | 2 | 3
4 | 5 | 6
7 | 8 | 9

Ask where I would like to place my piece, then place my piece, and, on a separate table, put your piece and ask me again. Since you usually don’t always recognize wins, here’s an example of a win by “Me”:

You:
1 | 2 | 3
4 | 5 | 6
7 | 8 | 9

Where would you like to put your piece?

Me: 5

You:
1 | 2 | 3
4 | X | 6
7 | 8 | 9

Now, I'll place my piece.

1 | 2 | 3
4 | X | O
7 | 8 | 9

Where would you like to put your piece?

Me: 3

You:

1 | 2 | X
4 | X | O
7 | 8 | 9

Now, I’ll place my piece.

1 | 2 | X
4 | X | O
7 | 8 | O

Where would you like to put your piece?

Me: 7

You:
1 | 2 | X
4 | X | O
X | 8 | O

You won!

“X” won because 3, 5 and 7 have been selected by X, this can also happen to O.

Another example:

You:
1 | 2 | 3
4 | 5 | 6
7 | 8 | 9

Where would you like to put your piece?

Me: 5

You:
1 | 2 | 3
4 | X | 6
7 | 8 | 9

Now, I'll place my piece.

1 | 2 | 3
4 | X | O
7 | 8 | 9

Where would you like to put your piece?

Me: 9

You:

1 | 2 | 3
4 | X | O
7 | 8 | X

Now, I’ll place my piece.

1 | 2 | 3
4 | X | 6
7 | O | X

Where would you like to put your piece?

Me: 1

You:
X | 2 | 3
4 | X | 6
7 | O | X

You won!

“X” won because 1, 5 and 9 have been selected by X, this can also happen to O.

Have you understood? Remember, use the examples to check for wins too, it doesn’t matter if it’s X or O

ocean trellis
#

Works pretty nice but it does seem to have some bugs with it placing the O on the spot where I placed my X or it telling me I had won without me actually winning.. still really impressive tho!

vocal badger
#

I think this doesn't work for me. Anyone have the same issue? (Using GPT-3 btw)

snow trellis
#

it could maybe be fixed if you gave it the entire board with your move each time

ocean trellis
#

Yeah probably 👍