Ok. check this to start reading on the topic:
Minimax Explained - AI Depot
Basically, to minimax works, you need a tree of moves in your game. The nodes of this tree represents current state of your game. So for any state, think that you have one node representation.
And you can generate new nodes under a node simply by generating legal moves in the game. So in chess for example, one pawn can move one step forward! Then as a one possible next node you will have the representation of the state where that pawn is moved one step forward.
So far, you learned how to generate a tree. Now you should learn evaluating a node. Basically you assign a number to each node while evaluating, this better the state the higher the evaluation should be!
As a player, you need to maximize the final score. To do that, you select max possible node in the following branch. And you assume that the other user selects the minimum! (So that he minimize your score). In this way, you generate nodes for both MAX's point of view and MIN's point of view and select your action (one of the valid next states!).
If you read that text and mine, i guess it will be more clear for you. Let me know if you have any further questions. By the way, if you dont get a reply soon, please PM me, because i might miss your answer.