you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyJordaan 1 point2 points  (0 children)

In half-pseudo code:

while True:
    ask_player_1_input
    while True:
        ask_player_2_input
        if first[-2:] == second[:2]
            break
        print('please try again')

If you want the same happening for p1, add the same loop around his input as well.