Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Task Completed #543

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified .DS_Store
Binary file not shown.
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.vscode/*
.vscode/settings.json
.vscode/tasks.json
.vscode/launch.json
.vscode/extensions.json
.vscode/*.code-snippets
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/
Expand Down
70 changes: 0 additions & 70 deletions Competitive Programming/Practice/README.md

This file was deleted.

58 changes: 0 additions & 58 deletions Competitive Programming/README.md

This file was deleted.

61 changes: 0 additions & 61 deletions Python/README.md

This file was deleted.

31 changes: 31 additions & 0 deletions Python/task/Aniket Pradhan/Pythongame.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import random
print("\nLUDO WORLD TM")
p1=input("\nEnter name of the first player:")
p2=input("\nEnter name of second player:")
w=int(input("\nEnter the winning point(score):"))
print("\n...")
score1=0
score2=0
while score1<w and score2<w:
input("\n\n::PLAYER_1::\nPress Enter to roll dice...")
y=score1
score1+=random.randint(1,6)
print("Number on the dice:", score1-y)
if score1>w:
score1=y
print("Player_1 score: ", score1)
if score1==w:
break
input("\n\n::PLAYER_2::\nPress Enter to roll dice...")
z=score2
score2+=random.randint(1,6)
print("Number on the dice:", score2-z)
if score2>w:
score2=z
print("Player_2 score: ", score2)
if score2==w:
break
if score1==w:
print("\nCONGRATULATIONS! Winner:", p1)
if score2==w:
print("\nCONGRATULATIONS! Winner:", p2)
Binary file added Python/task/Aniket Pradhan/Screenshot (18).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Python/task/Aniket Pradhan/Screenshot (19).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading