Coding Adventure 8: Play Tic Tac!

Master JavaScript

Be familiar with javascript arrays and functions.

JOIN

Description

Awesome! Now we need to build a Tic Tac game. Can you?!

Preview Video

Coding Missions

Print the board!

Now to print the board. Build 3x3 List variable and fill it with dash "-" and print it on screen. That will bring the game to the world.

First X.

Now read the two values beside robo. The first value is the determines the row number and the second number determines the cell location in the row. Set the correct cell in the list of lists variable to "X" and print the variable to screen to update the board. 

First O!

Now we have 4 numbers the first two numbers determine the location of the first X. The third and fourth number determines the location of the first O. Set the "X and "O" inside your list of lists variable and print it to screen each time to update the board.

No more than three patches!

Wow can you repeat previous mission two more times! for another X and another O. Print the lists of lists to screen after each time you put a value in it to update the board.

Full game!

Now its time to read 4 "X" and 4"O" locations and set them in the list of lists. Print the lists of lists to screen after each time you put a value in it to update the board.

Master JavaScript

Be familiar with javascript arrays and functions.

JOIN
Canada Flag Privacy Policy Terms of Use
Got an invite