-
Notifications
You must be signed in to change notification settings - Fork 44.1k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,6 @@ Before submitting a pull request, verify it meets all requirements in the [Contr | |
|
||
See the [Contributing Guidelines](https://github.com/donnemartin/system-design-primer/blob/master/CONTRIBUTING.md). Verify you've: | ||
|
||
* Tagged the [language maintainer](TRANSLATIONS.md) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
shaiksaddu
|
||
* Tagged the [language maintainer](https://github.com/donnemartin/system-design-primer/blob/master/TRANSLATIONS.md) | ||
This comment has been minimized.
Sorry, something went wrong. |
||
* Prefixed the title with a language code | ||
* Example: "ja: Fix ..." |
6 comments
on commit 53c0cf7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello there, You should add error finding code into your program and in this way you will get errors with names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import random
print("1,rock; 2,paper; 3,scissors")
while True:
ci=random.randint(1,3)
piN=int(input())
print (ci)
pwin=False
if piN==1 and ci==2: #in 1 and 2
pwin== False
print ("you choosed rock and.. computer choosed paper; \n you got coverd by paper")
print("you lost")
elif piN==2 and ci==1:
pwin== True
print ("you choosed paper and.. computer choosed rock; \n you coverd rock ")
print("you won")
elif piN==2 and ci == 3:
pwin == False
print ("you choosed paper and computer choosed scissiors; \n computer cut you down")
print("you lost")
elif piN==3 and ci==2:
pwin== True
print ("you choosed scissors and computer choosed paper; \n you tore down computer")
print ("you won")
elif piN==3 and ci== 1:
pwin==False
print ("you choosed scissors and computer choosed rock; \n you got crushed by rock")
print("you lost")
elif piN==1 and ci==3:
pwin==True
print ("you choosed and computer choosed ; \n you")
print("you won")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good programing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aziz Salimov