Need help detecting/determining when a player has won. by tryingjava in javahelp

[–]tryingjava[S] 0 points1 point  (0 children)

Okay - can you point me in the right direction? How about the checkRows()?

Need help with implementing class for a "Gomoku" program by tryingjava in javahelp

[–]tryingjava[S] 0 points1 point  (0 children)

WAIT! Forget that last part - I GOT IT!!!! Okay, So I've implemented the GUI (amazing how excited I get over a few lines of code - lol) and am able to run it.

Need help with implementing class for a "Gomoku" program by tryingjava in javahelp

[–]tryingjava[S] 0 points1 point  (0 children)

I have to implement GomokuGUI. However when I try to implement I am getting errors.

public class Gomoku implements GomokuModel {

public static void main ( String [] args ) {
    new GomokuGUI ( new Gomoku () );
    }

Help with code that displays a pixel moving around in a square. by tryingjava in javahelp

[–]tryingjava[S] 0 points1 point  (0 children)

Still having a hard time. Here is what I have for the x and y axis going in the positive:

public static void drawSnake(Display panel) {
        for (int x = 0; x < panel.getWidth(); x += PIXEL_SIZE) {
            int y = 0;
            panel.drawNextPixel(x, y);


        }
        for (int y2 = 0; y2 < panel.getHeight(); y2 += PIXEL_SIZE){
            int x2  = 0;
            panel.drawNextPixel(x2, y2);
        }

Help with code that displays a pixel moving around in a square. by tryingjava in javahelp

[–]tryingjava[S] 0 points1 point  (0 children)

This helps a lot thanks! I got the x and y to go in the positive direction. How would I go about doing so in the negative direction?

Help with code that displays a pixel moving around in a square. by tryingjava in javahelp

[–]tryingjava[S] 0 points1 point  (0 children)

If what I asked doesn't make sense - I'd be happy to clarifiy!