![]() ![]() Just check scores after 5 rounds, and roll a third if need be. # - if p1score = p2score roll 1 die and see who wins - Same as doubles. ![]() Check if dice1 = dice2 and if yes then roll a third dice - DONE # - if roll = double roll + 1 die and add roll to score - Simple if statement. # Bug Update 19/11/18: Rewrote Login System. Print("User access granted! Game will now begin") PassWord = input("Now please enter your password: ") UserName = input("Please enter your username: ") I need some help figuring out how to loop this program and any suggestions on how to improve and optimise the code would be greatly appreciated! :) - Jayode18 import random The program can not go past the login system. I'm struggling to understand while loops, whenever I try to implement a while loop. The basis for the code is there, the program is working as intended, however my brief asks that the program run 5 times over for five separate rounds. I'm a new developer and this is my most extensive project yet. ![]() I'm currently working on my OCR GCSE Program. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |