Spel(l) - Liacs
Spel(l) - Liacs
Spel(l) - Liacs
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
AI—<strong>Spel</strong>(l)en Minimax — algoritme<br />
function MaxWaarde(toestand)<br />
if eindtoestand then return Utility(toestand)<br />
waarde ← −∞<br />
for s in Opvolgers(toestand) do<br />
waarde ← max(waarde,MinWaarde(s))<br />
return waarde<br />
function MinWaarde(toestand)<br />
if eindtoestand then return Utility(toestand)<br />
waarde ← +∞<br />
for s in Opvolgers(toestand) do<br />
waarde ← min(waarde,MaxWaarde(s))<br />
return waarde<br />
15