Jump to content

Check out our Community Blogs


Member Since 19 Jan 2012
Offline Last Active Sep 21 2015 05:22 PM

Posts I've Made

In Topic: What kind of music are you listening while coding?

10 January 2015 - 05:17 PM

Electronic Genres such as: Dubstep (Not a whole lot), Hardstyle, Nightcore (If I'm feeling it), Trance, Psycadelic Trance, Hard House, House, Smooth House, EDM, etc. I find slow Hip Hop not too shabby also.

In Topic: Java Tutorial: TicTacToe (Revised)

10 December 2014 - 07:24 PM

hello. I am very new here. will you please explain AI class. In crying need

First, it goes through each "win" scenario for itself, to see if any moves this turn will secure it a win. If so, it claims that piece, and moves on.

Otherwise, it then checks if the other player will be able to get a win next move, and secures their win before they can claim it.

If there is no dire need for immediate action, it just takes a random tile (if it's the first move), or picks a random move that will make it possible for the next move after this one to provide it with a win.

In Topic: Game - A simple Pong

18 June 2014 - 02:12 PM

no compilation errors at all but when i try to compile Main.java, it has the errors. i tried re-copying and pasting Main countless times, but it didn't work

Well then what you want to do is go through and find the bug.

When the compiler throws an error, it gives you the number of the line where it occurs, and which class it occurred in:


Main.java:13: error: cannot find symbol

private PanelBall panel = null; // This is the panel of the game class


symbol: class PanelBall

location: class Main


So line 13 has the error, which you already know. But this is just an example. I don't know why this error would happen if everything is valid, so check any other errors that aren't related to line 13 of main, and try and fix them.

In Topic: Game - A simple Pong

18 June 2014 - 11:15 AM

yes, i have a PanelBall.java 6KB, a PanelBall.class 4 KB, and a Main.java 3KB

Are you getting compilation errors for PanelBall at all? Not references of it, but errors within it?

In Topic: Game - A simple Pong

15 June 2014 - 07:29 PM

do you know how to fix it?

Have you written a "PanelBall" class?

Another problem could be that there was a problem compiling the PanelBall class, and so it doesn't recognize it as a valid class.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download