阅读背景:

JAVA三星题之playing a TicTacToe game

来源:互联网 

原题:In a game if TicTacToe,two players take turns marking an available cell in a 3x3 grid with their respective tokens(either X or O).When one player has placed three tokens in a horizontal,vertical or diagonal row on the gird,the game is over and that player has won,A draw(no winner) occurs when all the cells on the gird have been filled with tokens and neither player has achiceved a win,Create a program for playing TicTacToe.The program prompts two players to enter X token is enterd,the program redisplays the board on the console and deter=mines the of the game (win,draw,or continue)。原题:In a game if TicTacToe,two players take turn




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: