I'm trying to create a soccer prediction program for someone else on another forum. I've managed to do the easy bit, just slightly confused over what to do next.
Points are given out for every result you predict correctly, with bonus points on offer if you get the correct scoreline as well
  • 2 points are won for guessing the correct result, i.e. Home win, Away win, or Draw.
  • 3 extra points for guessing the correct scoreline

Those are the rules.

The preson will enter the predicted scorelines in one set of textboxes, and then enters the real scorelines in another set of text boxes.
Click me to see form


VB Code:
  1. Private Sub cmdcalculate_Click()
  2.  
  3. Dim totalpoints As Integer
  4.  
  5. If user1.Text = real1.Text And user2.Text = real2.Text Then
  6.     totalpoints = 5
  7. End If
  8.  
  9. lbloutput.Caption = totalpoints
  10.  
  11. End Sub

That works fine if they predict the first scoreline correctly, but I'm stuck on what code to use for the correct result.
Any help?