How to combine program?? can someone help me with it

it depends on how many time the user can play how many turn ...

Read it again.