Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
5 Java Applet Games
01-25-2010, 11:31 AM (This post was last modified: 01-25-2010 11:56 AM by codecaine.)
Post: #1
5 Java Applet Games
Here are 5 java applet games I made:
Card Bet
Mad Libs
Rock Paper Scissors
Secret Phrase
Tic Tac Toe

For binary and source code click here or play them on my website click here
Visit this user's website Find all posts by this user
Quote this message in a reply
01-25-2010, 08:11 PM
Post: #2
RE: 5 Java Applet Games
Great applets. Can you make a tut about applets. I made one small about Java swing, but i have never used it on applets.
Games are good, that Mad Libs is really funny !
Tic Tac Toe is standard, i don't know which algorithm have you used ???
Great job !

"I dont know with what weapons World War 3 will be fought with, but i know World War 4 will be fought with stones and sticks" - Albert Einstein
Visit this user's website Find all posts by this user
Quote this message in a reply
01-26-2010, 07:29 AM
Post: #3
RE: 5 Java Applet Games
For tic tac toe I just did random numbers for the computer it keeps trying until it finds a empty slot. Weak AI lol. If I get some time I can do a quick tutorial on applets. It is almost much the same as Desktop appz in java. I have the link to my source code for each game on that sourceforge link. I always comment my code.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-26-2010, 09:24 PM
Post: #4
RE: 5 Java Applet Games
(01-26-2010 07:29 AM)codecaine Wrote:  For tic tac toe I just did random numbers for the computer it keeps trying until it finds a empty slot. Weak AI lol. If I get some time I can do a quick tutorial on applets. It is almost much the same as Desktop appz in java. I have the link to my source code for each game on that sourceforge link. I always comment my code.

I'd really like to see some applet tutorials. Smile I've seen your applets. I assumed that Tic tac toe was "randoming". I had the same idea when I had my first matrix class. Smile
Find all posts by this user
Quote this message in a reply
01-26-2010, 09:27 PM
Post: #5
RE: 5 Java Applet Games
(01-26-2010 07:29 AM)codecaine Wrote:  For tic tac toe I just did random numbers for the computer it keeps trying until it finds a empty slot. Weak AI lol. If I get some time I can do a quick tutorial on applets. It is almost much the same as Desktop appz in java. I have the link to my source code for each game on that sourceforge link. I always comment my code.
Well randomization can be an AI technique, but in this case it is better to use some smarter algorithm. You could define matrix 3x3 and 3 values X,O and empty, and make different positions of them for certain moves. Because you can have millions of combinations, you could just use rotation of matrix and check for certain situation and play a move.
Well this is my idea, but randomization is good too.
Very good after all !

"I dont know with what weapons World War 3 will be fought with, but i know World War 4 will be fought with stones and sticks" - Albert Einstein
Visit this user's website Find all posts by this user
Quote this message in a reply
01-26-2010, 09:35 PM
Post: #6
RE: 5 Java Applet Games
Yea, but with that type of algorithm you can predict what the computer will do. Smile
Visit this user's website Find all posts by this user
Quote this message in a reply
01-26-2010, 09:56 PM
Post: #7
RE: 5 Java Applet Games
(01-26-2010 09:35 PM)codecaine Wrote:  Yea, but with that type of algorithm you can predict what the computer will do. Smile
LOL Yeah, but programmer who made that game can, but others don't lol.

"I dont know with what weapons World War 3 will be fought with, but i know World War 4 will be fought with stones and sticks" - Albert Einstein
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: