Is there anyone who knew this algorithm already and help me? i thought this algorithm is more popular.
Type: Posts; User: captain_turkiye
Is there anyone who knew this algorithm already and help me? i thought this algorithm is more popular.
i try to use minimax in this link:
Extra Credit Algorithm Walkthroughs
i initialize move and value with -99 and they print -99. should functions(min and max) returns state or int?
I do nothing out of these functions. 0's are initial values. in main i only do this:
State temp_state = new State();
temp_state.state=board;
x=AlphaBetaSearch(temp_state);
i think i should return just state, now i lose moves. and i guess i call evalution function in wrong place.
i changed my code in this way, now state value and move are print 0.
public...
i changed my code a little. i think i should return state's. and add println in 3. for in max and min
public static int AlphaBetaSearch(State state){
state.value =...
when i write this in begining of min function(same in max):
if(depth>-1)
System.out.println("depth min: "+depth);
and write this in alpha-beta before return
i try to write connect four game with ai. my alpha-beta function should return move(column number) but it always returns 0. also there is another problem, when i remove comments in if states(in min...
could i write this way?
account[] acc= new account[10];
public void createaccount(int a){
Scanner input = new Scanner(System.in);
how can i use array list. can i write this?
ArrayList acc = new ArrayList();
acc.add(name);
acc.add(id);
acc.add(balance);
i want write program for add new account, deposit money, withdraw money, transfer between accounts and display interest.
public void createaccount(){
Scanner input = new...