|
Hi, I'm making a game of Connect Four in Java with Alpha Beta pruning, but I'm having major problems with getting the actual move with the best value (my algorithm computes the value for the best move, but I don't know how to get it to return the move itself). I guess storing the states somewhere and comparing the scores would help, but I'm not allowed to use Vector or any other non-basic data structure classes of Java. Is there any way to implement a Vector-like dynamic array using only the basic arrays and such?
EDIT. I managed to get around this particular obstacle with different approach. Thanks for answers. |