# Help with minimax

**URL:** <https://forum.kirupa.com/t/help-with-minimax/317168>\
**Category:** Uncategorized\
**Created:** [December 12, 2010, 10:14pm UTC](https://forum.kirupa.com/t/help-with-minimax/317168 "2010-12-12T22:14:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geki](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@Geki](https://forum.kirupa.com/u/Geki)\
**Post date:** [December 12, 2010, 10:14pm UTC](https://forum.kirupa.com/t/help-with-minimax/317168/1 "2010-12-12T22:14:36Z")

</div>

I have a school task to make a gomoku AI with minimax algorithm.  
So far I have made a good enough evaluation function that actually wins my teachers file without minimax.

The function takes in a board (2d array) and player.

But I don’t understand how to make the minimax algorithm. Could someone explain it to me in pseodocode. I know the language well, I just don’t understand how to apply the algorithm.
