# Search:

Type: Posts; User: wickerman

1. ## Thread: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

by wickerman
Replies
16
Views
1,111

### Re: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

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...
2. ## Thread: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

by wickerman
Replies
16
Views
1,111

### Re: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

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...
3. ## Thread: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

by wickerman
Replies
16
Views
1,111

### Re: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

Thanks a lot...I will make some tests and if have progress i ll let u know !!!!!!!
Thanks again...!!!!!!!!!!!!!
4. ## Thread: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

by wickerman
Replies
16
Views
1,111

### Re: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

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...
5. ## Thread: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

by wickerman
Replies
16
Views
1,111

### Re: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

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...
6. ## Thread: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

by wickerman
Replies
16
Views
1,111

### Re: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

[/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...
7. ## Thread: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

by wickerman
Replies
16
Views
1,111

### Re: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

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...
8. ## Thread: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

by wickerman
Replies
16
Views
1,111

### Re: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

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...
9. ## Thread: connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

by wickerman
Replies
16
Views
1,111

### connect 4 with minimax algorithm...Please help me..my algorithm is "stupid" and i dont konw why...

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
Results 1 to 9 of 9