Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Tic-Tac-Toe Board | Working with 2D Arrays
Quizzes & Challenges
Quizzes
Challenges
/
C# Arrays

bookChallenge: Tic-Tac-Toe Board

Tâche

Swipe to start coding

Write a program that represents a Tic-Tac-Toe game board using a two-dimensional array and prints it in a grid format.

  • Use the provided 3x3 char array to represent the game board.
  • Print the board so that each row is displayed on a separate line.
  • Separate columns with " | ".
  • Separate rows with a line of dashes and plus signs ("--+---+--"), except after the last row.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 4. Chapitre 7
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Tic-Tac-Toe Board

Glissez pour afficher le menu

Tâche

Swipe to start coding

Write a program that represents a Tic-Tac-Toe game board using a two-dimensional array and prints it in a grid format.

  • Use the provided 3x3 char array to represent the game board.
  • Print the board so that each row is displayed on a separate line.
  • Separate columns with " | ".
  • Separate rows with a line of dashes and plus signs ("--+---+--"), except after the last row.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 4. Chapitre 7
single

single

some-alt