Mmm...I can't do that...Could you please explain me this loop "for (Board child : children){}"and if you need more details
(ArrayList<Board> children = new...
Type: Posts; User: wickerman
Mmm...I can't do that...Could you please explain me this loop "for (Board child : children){}"and if you need more details
(ArrayList<Board> children = new...
Hello guys...I added some some debug lines to gamePlayer class and i changed a little my evaluation method from board class...Here is the code :
import java.util.ArrayList;
import...
Thanks a lot...I will make some tests and if have progress i ll let u know !!!!!!!
Thanks again...!!!!!!!!!!!!!
I found the evaluation method on internet...So as i understood the the algorithm when the user plays 4 the computer should play 5 but the most times plays 7...
I m debugging the code by trying new...
i used to make quick tests by inserting two gamePlayers at my main method....
so main will be like that:
public class Main
{
public static void main(String[] args)
{
//We create...
[/COLOR]Here is the code again...i hope this time without lose the formatting... :/
/* A class describing a move in the board
* Every produced child corresponds to a move
* and we need...
Hmm...in a few words, u are trying lose from the pc Player...
From the runs i noticed that pc player rare tries to stop your connect 4 and also rare finishes the game when it has 3 in a row,winning...
Thanks for your immediate response and i m sorry for ignorance....English its not my native language so i couldnt express in few words that my algorithm runs but not properly...i will read the...
I edited this post because i didnt wrap the code and so it wasted a lot of room and it was annoying....the src code is to my nest post...ty