Posts

Showing posts with the label game

Housie/Tambola using Python with Tickets in PDF file

Image
 #HOUSIE IN PYTHON!   #if you have'nt installed fpdf from cmd  then do open cmd>type #pip install fpdf >enter  from random import * from fpdf import FPDF def ImportantOne(x):      xxx=False      while xxx!=True:          tkt=[]          for i in range(3):              lis=[]              u=10              l=1              for j in range(9):                   no=randint(l,u)                   lis.append(no)                   u+=10                   l+=10               tkt.append(lis)      ...

Rock, Paper Scissor Game in Python .... 100% Working Code

Image
  print('='*50) print("Welcome to ROCK PAPER SCISSOR GAME!!!") print('='*50) print("You have to input in the following way : ") print("0===>Rock") print("1===>Paper") print("2===>Scissor") n=int(input("Enter No. of Rounds : ")) rps=["Rock","Paper","Scissor"] from random import * cs=hs=0 s=0 while n!=0:     s+=1     print("Welcome to ROUND NO.#",s)     j=randint(0,2)     ci=j     n=n-1     print("0===>Rock")     print("1===>Paper")     print("2===>Scissor")     x=int(input("Enter Your Choice (0,1,2) : "))     if x==0 and ci==0:         print("I did : ",rps[ci])         print("U did : ",rps[x])         print("It's a tie...COME AGAIN")         print("Scores @ the end of this round are...")         print("Me | Human")         print(cs,"  ",hs) ...

100% Working C++ Tambola/Housie Code with 90 Unique Numbers

Image
#include<iostream> #include<iomanip> #include<time.h> #include<stdlib.h> #include<windows.h> using namespace std; int static tktno=1; void housiedesign() { cout<<"Welcome to Royale...\n"; cout<<setw(30)<<"               HH    HH    OOOOO     UU     UU   SSSSS   II  EEEEEEE \n"; cout<<setw(30)<<"               HH    HH   OO    OO   UU     UU  SS       II  EE      \n"; cout<<setw(30)<<"               HHHHHHHH  OO      OO  UU     UU   SSSSS   II  EEEEEEE \n"; cout<<setw(30)<<"               HH  ...