tic tac toe game | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

tic tac toe game

Howsit guys ive created a game of tic tac toe, but im not sure at the end how to save all my data in a text file for the 2 players. Any ideas?? And also how to view the game history for the 2 players.

5th Oct 2017, 3:13 PM
Darrian Rajah
Darrian Rajah - avatar
1 Answer
+ 1
I can help you to save and read a text file. If you completed the Java course on SoloLearn, you can go to the bottom to the course to find "Exceptions, Lists, Threads & Files" This lesson shows about files and other cool stuff. But you'll need the formatter class. Go ahead and look at the mini-lessons in "Exceptions, Lists, Threads & Files" Working with files, Reading a file, and creating a file. Those will help you. TIP: Use formatter.
6th Oct 2017, 1:45 PM
Dgames Crew
Dgames Crew - avatar