How do I fix the error "void value expression"?
You need an elsif
to let ruby know where the conditions change. Here is the correct code:
if str == "xxx" puts "X Wins!" return true elsif str == "ooo" puts "O Wins!" return trueend
You also need to end your if blocks.