Simple Python Project for Beginner-01
Project- Dice rolling simulator
লুডু খেলেন নাই এমন মানুষের সংখ্যা নেই বললেই চলে।লুডুতে আমরা যে ডাইস টা ফেলি সেটা ঘুরে ফিরে ১-৬ এর ভিতরে কোন একটা সংখ্যা উঠে।ইদানীং Ludo Star game টিও অনেকে খেলছে।তো এই গেমে ডাইসে ক্লিক করলে ১-৬ একটি সংখ্যা দৃশ্যমান হয়।তো এই কাজটা আসলে কিভাবে হচ্ছে সেই জিনিসটা নিয়েই আজ আমরা কাজ করব।
Source code:
import random
while True:
number = random.randint(1,6)
print('The number of the dice is:'+str(number))
print('Would u like to dice again??')
print('If you want to dice again press 1 then enter.Press 0 to exit.')
again = input()
if(int(again) == 1):
continue
else:
break
while True:
number = random.randint(1,6)
print('The number of the dice is:'+str(number))
print('Would u like to dice again??')
print('If you want to dice again press 1 then enter.Press 0 to exit.')
again = input()
if(int(again) == 1):
continue
else:
break
কোন মন্তব্য নেই