Challenge from Mrs. Reddig

Warwick High School, Lititz, PA

Mrs. Nancy Reddig's Website

View the Pong code I helped the students develop.

You need to compile the .java files and place the resulting class files in a folder called "Java Classes" that is in the same directory as the TrivialApplet.html file. The ball bounces off the walls but not the paddle.

Challenge to your students: get the ball to bounce off the paddle

ball.java

paddle.java

trivialapplet.java

Source code for TrivialApplet.html

<title>TrivialApplet</title>
<hr>
<applet codebase="Java Classes" code="TrivialApplet.class" width=500 height=400>
</applet>
<hr>
<a href="TrivialApplet.java">The source.</a>

HINT after one of my students really found this one a challenge:
The html code probably is what was causing issues for your student awhile back. The codebase should be "JavaClasses" and all compile class files should go in that file. Basically on some machines the space will cause issues.