Skip to content
Back to course

20.6 AI in Gaming

AI in gaming drives non-player character (NPC) behavior, procedural content generation (creating levels or maps automatically), dynamic difficulty adjustment, and superhuman game-playing agents trained with reinforcement learning. The aim is engaging, responsive experiences that adapt to the player.

DataModelPredictAdjustrepeat & improve
A reinforcement-learning agent improving by trial, reward, and feedback.

Think of a local puzzle game like the Kakuro app: an AI can adjust difficulty automatically — if you solve puzzles quickly it offers harder grids, and if you struggle it eases off — keeping the game challenging but not frustrating.

Scenario

Playtesters say your game is too easy for experts but too hard for beginners. Which AI approach helps most?

Check your understanding

1/4 · 40 XP

What is 'procedural content generation' in games?