![]() ![]() ![]() You can also add Appletviewer's path to the PATH statement in your AUTOEXEC.BAT file and thus avoid having to type it in by hand every time you start your system and want to useĪnother applet that demonstrates some interesting facets of Java TicTacToe directory and simply typing APPLETVIEWER EXAMPLE1.htmL. For example, you'll be able to run TicTacToe by switching to the Your hard drive, you'll have to use a different path in the command.) After you type this command, MS-DOS will be able to find Appletviewer without your having to type the full path. (Of course, if you've installed the JDK somewhere else on If you want to avoid typing the full path name for Appletviewer every time you run it, type the command PATH=C:\JAVA\BIN at the MS-DOS prompt to add Appletviewer's directory to your path. Let's just say that you don't have to be a rocket scientistįigure 2.4 : Beating this ver-sion of TicTacToe doesn't require a degree in computer science. You'll quickly discover that the computer player is as dumb as To place an X, click the square you want. Now that you have the applet started, try a few games of TicTacToeĪgainst the computer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |