Skip to content
Game 5 Unit 52 of 128 1 hr learning time

Advanced AI - Look-Ahead

Simple minimax with one-move look-ahead for stronger hard AI.

41% of Ink War

Look-ahead makes the AI think about consequences of moves.

Run It

pasmonext --sna inkwar.asm inkwar.sna

Unit 52 Screenshot

Version shows “PHASE 4 V0.4”.

AI Feature

AreaDescription
EvaluationScore each position
Look-aheadConsider responses
SelectionPick best outcome

The Complete Code

What You’ve Learnt

  • Minimax basics - Evaluating game trees
  • Position scoring - Heuristic evaluation
  • Look-ahead - Anticipating opponent moves

What’s Next

Unit 53 balances AI difficulty.

What Changed

Unit 51 → Unit 52