Can the pawn take the rook in this position? I have a question regarding the way that pawns are allowed to attack. Sorry I’m a beginner, but me and my friend are playing and I don’t want to make this move if I’m not allowed to. I have a picture of how it is. I’m clear he’s white, am I allowed to attack his Rook?
Pawns are a pretty complex piece. They can make the following types of moves:

Move one square forward, if that square is not occupied by any other piece.
Move two square forward on their first move, if neither of those squares is occupied by any other piece
Capture a piece diagonally in front of it
Capture an enemy pawn &quot;en passant&quot;.
When they get to the 8th rank, they can &quot;promote&quot; to a Queen, Rook, Knight or Bishop

So, in the position you're showing, your pawn can capture either the enemy rook or the knight, but not the pawn right in front of it.