Advanced Tic Tac Toe

I'm looking to create a tic tac toe game where it prompts the two players to input their names and then shows this;
|-----------------------------------|
|           |           |           |
|-----------|-----------|-----------|
|           |           |           |
|-----------|-----------|-----------|
|           |           |           |
|-----------------------------------|
I want it to then ask the users by name to input their coordinates of where they want to place their move (ex: 1,1). The main problem I am running into is how to post an array inside of the drawn board as well as when the array shows up inside the board the players play X and O but the blank spots in the array are filled in with 0's. How would you solve this?

カテゴリ

ヘルプ センター および File ExchangeStrategy & Logic についてさらに検索

製品

質問済み:

2018 年 1 月 3 日

回答済み:

2018 年 1 月 4 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by