tung te gjithe,
a mund te me ndihmoni ne kete detyre si ta punoj,
duhet ta shkruaj kodin per lojen tic tac toe.
detyra eshte keshtu:
Write a program that lets two players play a game of tic-tac-toe (noughts and
crosses). (Hint: the model simulates the the game board, whose internal state
can be represented by three strings, representing the three rows of the board.
Write methods that can insert a move into the board and check for three-in-
a-row. (Note: use the charAt and substring methods for strings; see Table 9,
Chapter 3 for details about substring.)
It is simplest to build the game for only one player at first; then add a second
player. Next, revise the game so that the computer can compete against a
human player.
Krijoni Kontakt