Can someone please tell me how to implement MINIMAX ALGORITHM in JAVA | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can someone please tell me how to implement MINIMAX ALGORITHM in JAVA

i want to make an advance version of tic tac toe by using this algo

20th Jul 2021, 3:53 PM
ASHUTOSH CHAUDHARY
ASHUTOSH CHAUDHARY - avatar
4 Answers
+ 1
Minimax is a simple algorithm that tells you which move to play in a game. ... Take a game where you and your opponent take alternate turns. Each time you take a turn you choose the best possible move (max) Each time your opponent takes a turn, the worst move for you is chosen (min), as it benefits your opponent the most. Source from Google.
20th Jul 2021, 4:58 PM
Matias
Matias - avatar
+ 1
Thnks for responding to my query bt I know what Minimax is I just don't know how to Implement it
20th Jul 2021, 5:03 PM
ASHUTOSH CHAUDHARY
ASHUTOSH CHAUDHARY - avatar
+ 1
Thanks bro for this this helps me a lot 😊
20th Jul 2021, 5:18 PM
ASHUTOSH CHAUDHARY
ASHUTOSH CHAUDHARY - avatar