Jump to content
  • Advertisement
phil67rpg

OpenGL tic tac toe

Recommended Posts

Advertisement

You had a working program last time, where's that? It used a vanilla array to store the board data, that's all you need. You can write it to a file in 2 lines of code. Don't let things get more complicated than they are.

Share this post


Link to post
Share on other sites

Yes, you are right. It is impossible to store a game board in a database to save a game. The database is better and simpler way than a text file if we store: nicknames, passwords, records and so on. I will use a text file too to save a game board. But I need to create two buttons: "Save Game" and "Load Game". The simplest way to do it in C# is using WinForms or WPF. But I do not know what is the simplest way in C++. For example, you can create buttons using textures or you can just use key board buttons: "S" and "L". Yes, I think using "S" and "L" keys on the key board is the simplest way to initiate the save and load processes in a text file.

Share this post


Link to post
Share on other sites
11 minutes ago, phil67rpg said:

so I should not use a list?

It is confused me. Do you want to keep game board data in the list?

Edited by 8Observer8

Share this post


Link to post
Share on other sites
4 hours ago, phil67rpg said:

I thought it would meet my needs 

What needs are those? You said you want to store the game board, a simple char array is perfectly suitable for that. You're not even going to use all the bits.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!