Search code examples
javascripthtmlprogramming-languages

What would be the best way to program a board game controlled by one person?


My dad wants me to program a board game. This board game will be used in a classroom setting, where the teacher will control the board game for the class. So, if a student gets a question right, the teacher presses one of the buttons and the board game advances.

The game state must also be savable as a file that the teacher can save on a USB drive.

To me, the backend sounds beyond simple, including storing the data in a file. In my opinion, I don't need a database for something this simple.

However, I'm more concerned about the front end, and which programming language to use in general. From what I've discerned from the computers he needs it to run on, they are all running Windows 7. I do have all of the graphics required. It will basically be the pieces moving from one square to the next in a linear fashion, with each piece having its own path.

Now, I was considering doing it in HTML5/JS, but I am worried that the computers do not support it. My dad is looking into it, including if they could install Chrome on the computers. I believe this would be ideal, as he also expressed interest in an iPad version, which would just work as a web page then.

But if these computers could not support HTML5/JS, or you more experience people tell me that HTML5/JS would be a terrible choice, what would you recommend for this project?

Thank you very much for your help.


Solution

  • Considering your requirements for graphics, you don't even need HTML5 advanced features, and everything that browsers were supporting for decade already with CSS2/HTML4 will do just fine. Simplify state saving to just outputing serialized dump for user to copy or generating data: URL for download or even prompt'ing serealized save data and you'll have code that will work on pretty much anything that have a browser.