Hi there ! Today I will share some tips to make a simple stone paper scissor game in python. The game will be a Human vs Computer game. Import the random module by the following: random import Why?" So that computer will generate its own choice. 💡 Place a infinite while loop (You don’t have to run program again and again.) : while True State the rules of the game. print( ) # Rules of the game """Enter your choice : a. Press '1' to select 'Stone'. b. Press '2' to select 'Paper'. c. Press '3' to select 'Scissor'.\n""" Take the input from the user according to the rules mention above. user_choice = int(input( )) "Enter YOUR choice: " Code the condition when user gives input out of the range. user_choice > user_choice < : user_choice = int(input( )) while 3 or 1 "Enter valid input: " Assign numbers to the user’s choice. user_choice == : choice_name = user_choice == : choice_name = : choice_name = if 1 'Stone' elif 2 'Paper' else 'Scissor' Let the computer select its choice and then assign numbers to the computer’s choice. computer_choice = random.randint( , ) computer_choice == : computer_choicehoice_name = computer_choice == : computer_choicehoice_name = : computer_choicehoice_name = 1 3 # Assigning numbers to the computer's choices if 1 'Stone' elif 2 'Paper' else 'Scissor' Write the main logic of the game. ((user_choice == computer_choice == ) (user_choice == computer_choice == )): print( , end = ) result = ((user_choice == computer_choice == ) (user_choice == computer_choice == )): print( , end = ) result = : print( , end = ) result = if 1 and 2 or 2 and 1 "Paper wins !!! \n" "" "Paper" elif 1 and 3 or 3 and 1 "Stone wins !!! \n" "" "Stone" else "Scissor wins !!!\n" "" "Scissor" Declare the result. result == choice_name: print( ) : print( ) if "\nYOU WIN !!!\n" else "\nCOMPUTER WINS !!!\n" Ask a replay question and also code the condition to break the infinite while loop. print( ) ans = input() ans == ans == : "Do you want to play again? (y/n)" if 'n' or 'N' break 🎉 That’s it! Isn’t it easy? Now you have your own game to play! You can also refer my GitHub repo . How was the article ? Feedbacks are warmly welcomed. Previously published at https://medium.com/@theavidcoder/make-your-own-game-in-python-ec0b83f08d35