Search:

Type: Posts; User: Alucard2487

Search: Search took 0.46 seconds.

  1. Replies
    3
    Views
    780

    Re: Ants vs Zombies project help

    My understanding is that the attack method in every zombie type, gets an ant from an array. Then the ant is attack for the appropriate amount of damage that the zombie does. The elementAt(0) is...
  2. Replies
    3
    Views
    780

    Ants vs Zombies project help

    I have to make an Ants vs Zombies game for my class. Here is the link for further reference. http://www.csee.umbc.edu/courses/undergraduate/202/spring13/projects/project4/

    The problem I am having...
  3. Replies
    15
    Views
    386

    Re: ConnectFour

    My apologies:

    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
    at proj2.ConnectFour.checkVertical(ConnectFour.java:159)
    at...
  4. Replies
    15
    Views
    386

    Re: ConnectFour

    So....I hit another snag. I'm trying to come up with conditions on wining in all 3 directions. I know I need a separate method for each, but what I have isn't working. I'm getting an out of bounds...
  5. Replies
    15
    Views
    386

    Re: ConnectFour

    Yes. I have also managed to get a toString method to print out the board. All I need to do now is figuring out how to do the win conditions and properly displaying the players pieces on the board.
  6. Replies
    15
    Views
    386

    Re: ConnectFour

    So, I think I fixed the problem. I copied that for loop and put it in a setter method. That fixed the out of bounds problem. As, of now I'm working on a toString method to display the state of the...
  7. Replies
    15
    Views
    386

    Re: ConnectFour

    I get this error.
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
    at proj2.ConnectFour.<init>(ConnectFour.java:27)
    at proj2.Project2.main(Project2.java:36)

    I know I need...
  8. Replies
    15
    Views
    386

    Re: ConnectFour

    A T.A pointed out that I have a problem with my for loop in my turn method in the ConnectFour Class. I keep getting an out of bounds error and he thinks that this may be the case as I have no way of...
  9. Replies
    15
    Views
    386

    Re: ConnectFour

    My fault. The users are prompt to input their names and then they are asked to input the size of the board that they want to play on. However, the board must have at least 25 spaces. So you can have...
  10. Replies
    15
    Views
    386

    ConnectFour

    We have to make a ConnectFour game in java for a project. I think I have managed to code most of it properly (Let me know if this is wrong). I''m having trouble figuering out how to decide who wins....
  11. Replies
    4
    Views
    537

    Re: Coding Theory

    This advice makes the most sense out of everything I've read. I think my main problem is that I want to do everything at once. Building a skeleton of the classes and methods makes way more sense....
  12. Replies
    4
    Views
    537

    Re: Coding Theory

    Syntax and the standard features are not the problem. It's turning my ideas into code. For example: The ConnectFour object should be able to allow the current player to move, report on whether the...
  13. Replies
    4
    Views
    537

    Coding Theory

    Here's my problem: I know what it is I need to do for the project. I have no idea how to implement this using code. We have to create a Connect Four game and I know that I am going to need the...
  14. Replies
    1
    Views
    234

    Code problems

    I'm having a bit of trouble fixing some things in my program. I can't figure out how to get the menu to repeat itself after a selection has been made. If I lock the first register I cannot display...
Results 1 to 14 of 14