can you tell me a another way to check the winner with connected checkers and i make in the move method if your destination is the opponent decrement the number of checkers of the opponent
Type: Posts; User: walid
can you tell me a another way to check the winner with connected checkers and i make in the move method if your destination is the opponent decrement the number of checkers of the opponent
sorry how can i post my code formatting
and what code can i posted the testing or my code
no will be 4 squares but the game Board is constant 8*8 my problem with the recursion method can you check it . i made another boolean array to check if this piece is counted turn it into true. ??!!
No it supposed to check the 8 squares everywhere in 2D array not only in the middle
--- Update ---
??
in method isGameOver i made a loop on boolean array to catch the first piece count around region in 8 direction . can you tell me another idea to count the around region to count the connected...
Lines of Action is a two player strategy board game where each player aims to connect all his/her checkers
into one group. The board is a standard 88 chessboard. The game starts with each player...
i don't know how to use the debugging
there is an infinite loop i can't find it.
--- Update ---
loop has no end
--- Update ---
any one help plz
sorry it is an blue arrow appears when i run my tests using Junit
please any one help me with fixing an blue arrow appears while running my project tests
--- Update ---
can you help me Norm
can you check the test class ?
--- Update ---
h get the values from the user
how can i assign values to h?
the value null
null
null
......and so on 19 null value
--- Update ---
?
[
instance.setSkills(skills);
Champion target = new Champion("Annie", attributes, 500, 400);
instance.useSkill(target, 0, true);
assertEquals("Target should lose health as expected", 383,...
can u write it down to understand
in which class?
--- Update ---
?
i don't know
--- Update ---
please can you tell me what i have to do to fix it, sorry?
h is a hashmap with key(strings) and value(boolean)
--- Update ---
?
public void setBasic(boolean ba){
h.put("Basic", ba);
}
you mean the variable basic
There is no variable with a null value on line 30. check it plz
all the errors in test class
--- Update ---
java.lang.NullPointerException
at eg.edu.guc.lol.game.champions.Skill.setBasic(Skill.java:30)
at...
t
}
[/code]
}
public void setStunned(boolean stun){
stunning = stun;
}
public int getMaxMana() {
return maximumMana;
}
public int getCurrentHealth() {
return currentHealth1;
}