Red moves first. Pieces sit where the lines cross. To take a piece, move onto it.
General: one step along a line. It must stay in its palace, the box with the X. Advisor: one step on a slant, inside the palace.
Elephant: two steps on a slant. It can't cross the river, or hop over a piece in its way. Horse: one step straight, then one on a slant. A piece right next to it in that direction blocks it.
Chariot: any distance along a line. Cannon: moves like a chariot. To take, it must jump over exactly one piece.
Soldier: one step forward. Once over the river, it can step sideways too. It never goes back.
The two generals may never face each other on one line with nothing between them. You win when the other side has no move left, in check or not.
If the same position comes up three times, it's a draw. But if one side gave check every move to make that happen, that side loses.