It always depends on the specific position, but generally such an exchange is not good for the side giving up 2 minor pieces for the rook and pawn.
Exchange value
It had weakened blacks kingside quite a lot (so I thought) but still left me in control (I think) of the centre. Thought I’d stumbled into a decent move there. 🤷♂️
I’ll take what you say on board. ... no pun intended... 😉
I second what Strangemover said that in general it's unwise to exchange your bishop and knight for your opponent's rook and pawn. However, what you've described (making your opponent's king vulnerable) could potentially make this situation an exception. What I'm not understanding, though, is how this situation arose from the Ruy Lopez opening. The Ruy Lopez requires placing your bishop on b5, where it is not threatening the f7 square. I suppose if black plays 3...a6 (Morphy Defense), you could retreat your bishop to c4, but this is an uncommon move. Are you sure you're not talking about the Italian Game, which initially places the bishop on c4? I also don't understand how black's king is forced to g7. Did you mean f7 (after recapture)?
It sounds more like an italian game situation. Can be worth also factoring in that your opponent gets a half open f file for their queen or queenside rook and you may fall behind in development.
I was only trying to memorise first few moves, then trying out a few options to see where they led.
Once I’d done this I just played through one of them for fun (I’m still learning). 😁
I moved the bishop back from b5 to c4 when black castled. (I’d worked through the line of it being chased back by a6 earlier).
I might well have strayed into another opening without realising, but as I say this was just a bit of fun on my part after learning the first few moves 👍
I decided that Lopez is going to be my first opening that I get under my belt. 😁
I figured losing the bishop to get at that square was ok as that’s the square I kinda want it to attack early game if possible?
Or would I be foolish to lose two middle value pieces here if the opportunity arose in a game? I was still ok centrally, with a defended pawn on e4.
I understand development and central control is what I’m after at this stage, but want to make a start on an opening now.
So, I’m trying to learn the Ruy Lopez (first 5 or 6 moves, maybe 2 or 3 variants if I can) and came across this while practicing.
It worked, but probably relies too heavily on black being around my level and thus a wee bit rubbish to be fair. 🤣
Any advice would be appreciated.