Search:

Type: Posts; User: newmanj8

Search: Search took 0.17 seconds.

  1. Replies
    7
    Views
    293

    Re: Need help converting from int to double

    For example, this code takes the numbers that are given, -12,-5,-20,-67 then I put them in order from -67 to -5, then when I test this the program goes through and checks to make sure the sorted...
  2. Replies
    7
    Views
    293

    Re: Need help converting from int to double

    If I have the int array and want to have decimals be seen and come back as a decimal how can I write a method that will notice decimals?
  3. Replies
    7
    Views
    293

    Re: Need help converting from int to double

    I would but Im not allowed to change the class for the project so i can't change the array, is there a way I can cast double into the method I tried it this way but got errors..




    int[]...
  4. Replies
    7
    Views
    293

    Need help converting from int to double

    I know you have to cast in double but I don't know how to put it I tried everything... so i think, the program sorts numbers from an arraylist and then checks to see if your right in the int[] sorted...
  5. Replies
    5
    Views
    278

    Re: Need a win aspect in connect four game

    {
    if (checkWin() == true) {
    gameOn = false;
    PFont font = loadFont("IskoolaPota-48.vlw");
    textFont(font, 80);
    if (winner == 4) {
    shadowtext("Red Wins!", width/4,...
  6. Replies
    5
    Views
    278

    Re: Need a win aspect in connect four game

    The code sets up a connect four board with a mouse listener that when clicked highlights the empty spaces red or black you have to win four chips in a row vertically horizontally or diagonally. I use...
  7. Replies
    5
    Views
    278

    Need a win aspect in connect four game

    I want to have the game stop when you connect four and have the screen say what color one and the click to reset. This is what I have so far.



    <color yellow = color (255, 217, 0);
    color red =...
  8. Replies
    7
    Views
    218

    Re: Connect Four Game need help pleaseee!!

    The code is all one class, which makes up the game which is fully functional, I just wanted help with putting movement in and rather then clicking on the board and having the chip appear I wanted...
  9. Replies
    7
    Views
    218

    Re: Connect Four Game need help pleaseee!!

    The program that I am using is called Processing which is a little different then your standard java coding with eclipse.
  10. Replies
    7
    Views
    218

    Re: Connect Four Game need help pleaseee!!

    int count = 0;
    int rows = 6;
    int cols = 7;
    int winner = 0;
    CircleButton[][] grid = new CircleButton[cols][rows];
    int[][] gridChecker = new int[cols][rows];
    boolean locked = false;
    boolean...
  11. Replies
    7
    Views
    218

    Connect Four Game need help pleaseee!!

    I have to make a processing game, I got my game to fully work but I want to add some motion into it I want to have the chips when clicked to start on the top of the board and drop down to the bottom....
  12. Replies
    3
    Views
    217

    New 2 Java Programming Forum

    Im a 22 year old IT student having diffficulty with Java coding.
Results 1 to 12 of 12