I’m sorry but this not an easy change with just a small snippet.
The way reviews are built currently is by allowing only registered users to vote to avoid duplicate votes.
In order to allow guests to vote another logic must be made maybe using IP,cookies,etc to avoid duplicates. (Even though this is not very safe because these methods can be fooled).
If you are interested for something custom you can send us an email for a quote.