This tag apparently is used as a synonym for "minimax", which seems more appropriate and is better maintained; I would suggest introduction of a tag synonym.
Questions tagged [minmax]
272 questions
0
votes
0 answers
How to get minimax algorithm to return the correct move?
I see that this has been asked before but I'm still stuck. I've used a wrapper class as suggested in another answer but the move gets over ridden every time the algorithm finds a "better" node even if it is not a move that max makes but rather min.
…

mmera
- 327
- 5
- 17
0
votes
2 answers
Minimax without a tree
Minimax is often illustrated with a tree,but I know that it can be implemented without the tree !However,I can not figure out how to do it without the tree!Can you clarify it for me?

Andre Liberty
- 707
- 1
- 9
- 17
0
votes
1 answer
Minimax algorithm in 4x4 TicTacToe board
I'm working in artificial intelligence project to develop a TicTacToe 4X4 using Minimax algorithm
I have this existing program that run Minimax algorithm in 3x3 TicTacToe board.
I want to extend it to 4x4 TicTacToe
but I couldn't any idea how I…

Maher
- 1
- 1
- 3
0
votes
5 answers
why is my count increasing when entering 0, it should exit the loop
I been working on this all night but couldn't make anything out it. I want my code to sum all the numbers the user enter, count how many times the user enters the number. then calculate the average.
and then find the max and min, easy right. well…

JavaCoder
- 33
- 1
- 8
0
votes
1 answer
Using .minmax to return values only when min is in lower index position of an array
Is there a way to only return the min/max values of an array where the min is in a lower index position than the max?
For instance, let's say we have:
array = [10, 12, 5, 3, 20, 1, 9]
If we did .minmax on this array we would get the…

scobo
- 197
- 1
- 11
0
votes
1 answer
MinMax Algorithm for Tic Tac Toe
I'm trying to do the MinMax for the tic tac toe (Always computer win) but I can't get it to work.
All the successors simply return 0 (draw) as score and so the computer always chooses to move in the natural direction of the matrix.
PS: Matrix…

Pedro Barros
- 183
- 1
- 11
0
votes
1 answer
std::minmax initializer_list argument
Maybe this question is a little bit theoretic, but I wonder what are the the design incentives behind defining std::minmax like this
template
pair minmax (initializer_list il);
Which means ,IMO, the passed object, li will be…

Shmil The Cat
- 4,548
- 2
- 28
- 37
0
votes
1 answer
MinMax with Alpha-Beta Pruning
How can MinMax with Alpha-Beta Pruning be applied to the game Stratego? Can you simulate how it works. Thank you!

user2711767
- 1
- 4
0
votes
2 answers
Simplify MiniMax algorithm for Tic Tac Toe
I have a Tic Tac Toe game which works perfectly, but is there a way that I could alter the MiniMax algorithm that I have. So it's simpler in a way or even shorted.
def maximized_move(self,gameinstance):
''' Find maximized move'''
…
0
votes
1 answer
Minmax Algorithm for tic-tac-toe game in Objective-C
I am writing a minmax algorithm as the artificial intelligence for a tic-tac-toe game, I followed the similar instruction here, but the algorithm seems not intelligent enough, even though I tried to search deeper in the tree, can anyone help to…

photosynthesis
- 2,632
- 7
- 29
- 45
0
votes
1 answer
Best AI approach for Game Draught (Chekers)
Currently I am implementing a draught online game server in Eralang.(a mobile game). I am having a problem about the AI approach. (whether it will minmax approach ,genetic algorithm or any other). Also having a problem in defining a proper heuristic…

tiroshanm
- 123
- 3
- 13
0
votes
1 answer
How to linearize a minmax constraint
Currently I have this linear programming model:
Max X
such that:
Max_a(Min_b(F(a,b,X))) <= some constant
*Max_a meaning to maximize the following equation by just changing a, and the same applies to Min_b
Now, the problem becomes how to linearize…

user3013013
- 25
- 1
- 4
0
votes
2 answers
We got 2D array, arr (n)(n). e pick any index, and the task is to count min and max value of a surrounding elements
We got 2D array, arr[n][n]. We pick any index, and the task is to count min and max value of a surrounding elements (at least 3 if it is in the corner, and 8 if it is somewhere in the middle). Don't ask you guys to solve it for me, but give an…

Kolos
- 381
- 1
- 5
- 15
0
votes
4 answers
Minmax numbers array
This program gets 5 numbers only from the user then
Store them in an array. Get the min, max, and the average of the numbers inputted. Here's the code I made:
#include
#include
int main()
{
int num[5];
int min, max=0;
int…

Barry
- 59
- 1
- 5
0
votes
2 answers
Chess task - King,Rook Vs King
I want to do a C program to find the minimum no. of moves needed to check mate in a king and rook Vs king,I am supposed to use mini max algorithm.A lot of search haven't led me to any thing fruitful.It would be of great help if some one give some…

Sreekanth Karumanaghat
- 3,383
- 6
- 44
- 72