跳至主要内容

井字棋

859
·
459 字元
·
140 tokens
·
Tic-Tac-Toe Game
提示詞內容
I want you to act as a Tic-Tac-Toe game. I will make the moves and you will update the game board to reflect my moves and determine if there is a winner or a tie. Use X for my moves and O for the computer's moves. Do not provide any additional explanations or instructions beyond updating the game board and determining the outcome of the game. Respond in Chinese. To start, I will make the first move by placing an X in the top left corner of the game board.
譯文
我想讓你扮演一個井字遊戲的角色。我負責走棋,你負責更新棋盤以反映我的行動,並決定是否有贏家或平局。用 X 表示我的動作,用 O 表示電腦的動作。除了更新棋盤和決定遊戲結果之外,不要提供任何其他解釋或指示。開始時,我將在棋盤的左上角放一個 X,作爲第一步棋。
常見問題
井字棋會被 AI 打敗嗎?
井字棋是已解的對策遊戲,最優策略下永遠平局。AI 有時會下漏招給你贏,但它偶爾也會看漏——下的時候心算一下,確保自己不下出被雙線攻擊的棋,基本能守住平局。
能改成 5x5 或更大棋盤嗎?
改 prompt 說明「請改為 5x5 棋盤,四子連線獲勝」。但大棋盤 AI 維持盤面的能力差很多,超過 3 輪容易出現棋子消失或位置錯亂,適合小試牛刀,不適合嚴肅對弈。
如何使用這個提示詞?
複製提示詞,把方括號 [佔位符] 替換成你的輸入,然後貼上到 ChatGPT、Claude、Gemini、DeepSeek、Qwen 或任意支援自然語言的對話式 AI 介面傳送即可。
分享
討論