I made my own version of this game and I want to implement min-max alghoritm, please check my code.
Type: Posts; User: zagi
I made my own version of this game and I want to implement min-max alghoritm, please check my code.
Cornix, 2048 this is the simple game. Here is a link to orginal version: 2048
I made my 2048 game i java and i'm trying to add the best artifacial intelligence, but min-max don't work well. This...
Here is my code:
public static int minimax(int[][] board, int depth, boolean maximizingPlayer) {
if(depth==0 || (!w && !s && !a && !d))
return ocena(board); // evaluation method
int[] r...