Write a program that will allow two users to play tic tac toe.The program should
ID: 3619249 • Letter: W
Question
Write a program that will allow two users to play tic tac toe.The program should ask for moves alternately from player X andplayer O. The program displays the game positions as follows. 123 456 789 The players enter their moves by entering the position numberthey wish to mark. After each move, the program displays thechanged boward. A sample board configuaration is as follows: XXO 456 O89Please make sure to use 3 diminsional arrays so I canunderstand how they work. Write a program that will allow two users to play tic tac toe.The program should ask for moves alternately from player X andplayer O. The program displays the game positions as follows. 123 456 789 The players enter their moves by entering the position numberthey wish to mark. After each move, the program displays thechanged boward. A sample board configuaration is as follows: XXO 456 O89
Please make sure to use 3 diminsional arrays so I canunderstand how they work.