Workshop › Tic-tac-toe › Step 27 of 33
The random computer is easy to beat. We teach it rules, the way a beginner thinks. The first one: the center is the strongest cell, so take it when it is free.
```js
return cells[4] === '' ? 4 : random
```In computerMove, change return random as shown.
Skills: Functions
← The computer answers Rule two: win when you can →