سؤال

I've never had a blog, and would like to start one, but before I do, there's one question that I can't find the solution to. How do I incorporate a program into a blog? In other words, I have written a command line hangman game in Java. How do I make the game playable on the blog? Thanks for the help!

هل كانت مفيدة؟

المحلول

How do I make the game playable on the blog?

Embedded in the web page? Applet - expect paint: much pain.

Free floating, launched from a link in the blog? Java Web Start - less pain, though still a steep learning curve, as you'll probably end up tossing the current code and writing it fresh.

نصائح أخرى

You have a bunch of options:

  • provide the sourcecode + binary so that anyone can download and run by themselves
  • implement your Java code so that it can run in a Java Applet
  • or re-implement it in JavaScript / HTML so that it can just run in browser
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top