oh my god guys thanks for your help but i found out what was wrong, i was meant to be using the || to say OR rather than using AND to achieve what i wanted, feel like a goose now hahaha
Type: Posts; User: bmxershane
oh my god guys thanks for your help but i found out what was wrong, i was meant to be using the || to say OR rather than using AND to achieve what i wanted, feel like a goose now hahaha
sorry guys, itemsCollected() is boolean and player.getPosition() is an int. The problem im having is that if the players position(player.getPosition()) does equal the exit position...
I have the following code for entering loops:
public void play()
{
System.out.println(toString());
while(player.getPosition() != exit.getPosition() && itemsCollected() ==...