Search:

Type: Posts; User: jakeburns

Page 1 of 2 1 2

Search: Search took 0.14 seconds.

  1. Replies
    1
    Views
    228

    Set up to play against computer

    Can't figure out how to be able to play against the computer where the moves are randomly placed; no strategy. Any advice would be helpful, thanks.



    import java.awt.GridLayout;
    import...
  2. Tic Tac Toe GUI (Need help to play against computer)

    So i have created a Tic Tac Toe GUI for my java class. I finished the project but I want to add a few more features. I want to add a one player option where you can play against the computer. Right...
  3. [SOLVED] Re: Where do I check to see if someone won? Tic Tac Toe

    Im guessing the value returned by getIcon because there is no icon set to the button until it is clicked. How do i fix this?
  4. [SOLVED] Re: Where do I check to see if someone won? Tic Tac Toe

    Your right.
    This is the code on the line that has the error:

    && button[1].getIcon().equals(player1X)
  5. [SOLVED] Re: Where do I check to see if someone won? Tic Tac Toe

    Line 59 is where I start my method with
    void checkForwinner(){
  6. Re: JAVA SWING CALCULATOR HELP, Set an Image as a background?

    Also I would consider setting your textfield so that the user cant edit it..
  7. [SOLVED] Re: Where do I check to see if someone won? Tic Tac Toe

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at TicTacToeGui.checkForWinner(TicTacToeGui.java:59)
    at TicTacToeGui.actionPerformed(TicTacToeGui.java:89)
    at...
  8. [SOLVED] Where do I check to see if someone won? Tic Tac Toe

    So I have the code written (not all of it but most) to check for a winner in tic tac toe. I do not know where I should call the checkForWinner() method because if i call it when an 'X' or 'O' hasn't...
  9. Replies
    6
    Views
    279

    Re: Tic Tac Toe GUI

    thats the problem.. i want it to happen in one click
  10. Replies
    6
    Views
    279

    Re: Tic Tac Toe GUI

    Everything gets jumbled like I showed you in the pic which is why I created the setAllButtons() method to reset everything back to its place which works; but only after two clicks.. I removed the...
  11. Replies
    6
    Views
    279

    Re: Tic Tac Toe GUI

    BEFORE:

    3508

    AFTER (THE CLICK):

    3509
  12. Replies
    6
    Views
    279

    Tic Tac Toe GUI

    First off I wanna say i know there is a more simple way to write the code but I writing it this way. Deal with it.
    Alright so I am in the process of creating a Tic Tac Toe game with a GUI using...
  13. [SOLVED] Re: Reusing an Entered List of Array Elements

    and then how would I put those variables into play?
  14. [SOLVED] Re: Reusing an Entered List of Array Elements

    Its a String array.
    If you ran my program or at least read it entirely it might help you a little...
  15. [SOLVED] Re: Reusing an Entered List of Array Elements

    The program is a grading program. The teacher enters the "key" which are the correct answers for the assignment, test, quiz, etc. then the students answers are entered and they are compared to get...
  16. [SOLVED] Re: Reusing an Entered List of Array Elements

    But how do I use a variable for when the amount of questions in the key will never be constant?
  17. [SOLVED] Reusing an Entered List of Array Elements

    If you see in the code below where I print "Would you like to use previous key" I need to be able to save the previous key answers to be used again.. not sure how to go about doing this..


    import...
  18. [SOLVED] Re: Comparing Elements in Array to find the Highest Int

    Thanks for the help! This is the code I wrote to do it....


    for (int index = 0; index <= timesRan; index++)
    {
    if (studentAverage[index] > highest)
    highest = studentAverage[index];...
  19. [SOLVED] Re: Comparing Elements in Array to find the Highest Int

    I don't know what i would have to do to compare multiple array elements against each other.
  20. [SOLVED] Re: Comparing Elements in Array to find the Highest Int

    I am trying to compare all the students averages to find who has the highest one and list the grades and the student's names from least to greatest. I need help with this.
  21. [SOLVED] Comparing Elements in Array to find the Highest Int

    So in this program, which is a grading program, I am trying to compare all the students averages to find who has the highest one and list the grades and the student's names from least to greatest....
  22. Replies
    9
    Views
    1,088

    Re: Grading System Program

    Thanks for the answer, but I'm not sure what you are saying. Could you explain a little more?
    thanks
  23. Replies
    9
    Views
    1,088

    Storing different strings in a loop

    Hello, I am trying to figure out how each time I run the program, in the loop it runs and ask the user for the student name to connect with the students score. But if each time the loop ran the...
  24. Replies
    9
    Views
    1,088

    Re: Grading System Program

    A little back ground on me.... Im 15 and just started learning java over the summer 4 months ago. Thanks for the advice.
  25. Replies
    9
    Views
    1,088

    Re: Grading System Program

    Lol. Its not finished I was just stuck on this one part. So thanks for the feedback but just bashing my design doesn't help me. Tell me how I could make it better.

    Thanks
Results 1 to 25 of 33
Page 1 of 2 1 2