Jump to content

help with javascript


n00berS

Recommended Posts

Java and Javascript are completely different languages. Contray to popular belife, they have nothing to do with each other, other than a similar name. Nothing.  Although sun now own both.  Javascript is not a scripting version of Java like one would expect due to the name. Its not like VB and VBscript. They are different languages in their own right.

This is the code for tic tac toe in java:

http://rintintin.colorado.edu/~epperson/Java/TicTacToe.java

Its using awt for the GUI

And here it is in java script:

http://javascript.internet.com/games/tic-tac-toe.html

Link to comment
Share on other sites

Java and Javascript are completely different languages. Contray to popular belife, they have nothing to do with each other, other than a similar name. Nothing.  Although sun now own both.  Javascript is not a scripting version of Java like one would expect due to the name. Its not like VB and VBscript. They are different languages in their own right.

This is the code for tic tac toe in java:

http://rintintin.colorado.edu/~epperson/Java/TicTacToe.java

Its using awt for the GUI

And here it is in java script:

http://javascript.internet.com/games/tic-tac-toe.html

In the JavaScript one you always win if you go first, and tie if the computer goes first.  Pretty poor AI :/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...