Professional Documents
Culture Documents
1. In troduction of P roject
2. Requirments of project
3. ER Digram
s. Coading
6. Output
7. Module
8. Conclusion
9. Future Scope
11 Reference
INTRODUCTION
One of the sin11>lest t vo player gan1es is "Gue!is 1he nu111bcr'". Tite first J'>l a)'Cr
1hinks of a secret nuntber in sonte kno\vn range \Vhile the second J>layer attcn1pts to
guess the nun1bcr. A Iler each guess, the first 1>layer a11s,vcrs either "liigher..,"Lo\
vcr"or ··correct!"depending on \vhcther the secret nu111bcr is higher, lo\vcr or equal
to the guess. In this project.you \Viii
build a simple intcrJctive progr::un in Python \\lherc the con1pu1cr \\•ill take tJ1c role of
the first
player while you ploy us the second player.
You \viii in1crac1'vith )Our prognu11using an i11pu 1 field :and several bu ttons. l;or this
project.
\VC'viii ignore 1hc canvas and print the c.on1pu1cr's res1>0nscs in the console.Bui lding an
ini1ial version of your 1>roject that prints infon1lation in the console is a developnlent
strategy that you should use in I nter projects as'''ell. Focusing on getting the logic of
1hc progran1 correct before trying 10 nu1ke i1 display 1he infon11a1ion in son1c "nice"\
Vay on lhe can,1as usually saves lots of 1in1c since debugging logic errors in graphicnl
output can be tricky.
l> lf 1he guessis incorre<:1. 1hen 1he firs1player tells 1he second player whether
1he guess
'vas 100 hig.h or coo lo,v.
};;- The second player's score equals 1he n1111ber of guesses he n1ade.
> The players then reverse their roles and repeat the game.
> The ''inner is the player \vho gets 1he correct nns\ver \\lith the fe\\lest guesses.
REOUIRMENTS
1. Projec1Ti lle :
2. Technology :
"Python"
I
Please ente(
h gher number -· Plt ase
enter l
ower
! •
Guess was
(jght
c:J
•
I
•
1
c::J
DATA FLOW DIGRAM
import random
11.1mber-random
randrange(0,100)
!)JessCheck:Wong·
· "Welcome to Number
QuessCheclr--=Wong• ?
Yes
print("Th1s 1s
Exctptio.n not a va11d
inttger Please try
again")
Yes IJo
ptinl{"This 1s lcw.-
er than ac-
rualnumber
Please <:1gain")
Yes
prirt{"Th s 1s higher
prlnt(is i5 the correct
thanacrual
number") number.
Please a arn") uessCheck="correcr
COADING
OUTPUT
MODULE
rvty guessing gnn1c ''orkcd correct ly as ii lbllo·.vcd n1osL of the object ives.IL told you
if your guess \Vas too high or too lo' ' and if your guess'vas right it told you that also.It
had a lin1it bct,vccn 1-07 so that it \vasn·, too hard for people 10 g·ucss. As \veil as this
the linal
con1pletcd guessing game didn'1coruc up'''ith error 1ncssagcs as it rnn through the
no''chon
c-a ach ti1nc n nu1nbcr \VOS entered \vhich sho,vs 1hn1 it \VOS correct. It'vas only n
basic version and \vasn 't expanded but it \vorked fine.
• Create a guessing gan1e that told you if the nun1bcr you J>UI in \vas too high or
too lo\v and then congratulated you '1hcn the nun1bcr \vas correct
• To use Crocodile Clips corn'C. tly and lean> obout the differe111 things
(edit boxes. inputs) you use.
• To n1oke sure your guessing game \vas correct ly \vorking through the \\ ho1c1
thing.
);;- Flex i bi l i ty - You can 1>ut ns n1uch tin1e into the business as you'd like. I
f you
l ike the \VOrk an<I ha\•c son c initial cx1>cricncc, you can start sn1alland
n1anagc
Oil 3SpeClS or thC bosinCSS On your O\Vn.
, Abi lity to start your business from home - It's not necessary to
have o physical s1orcfront or office space to get your business sinned. You
can do everything from the con1fon of )<>ur O\Vn hon1c. at least in the
beginning!
).. Little Startup costs required - The cost to smrt a number guessing game
business costs signi ficantly less n1oncy 1.han n1ost businesses. ranging
anY'vhcrc from 12 to I 1,659.
,. Scal able - \Vith businesses and processes changing doily, Lhcn: \Viii
nl,vays be dcn1nnd ror nc'v tC:atutes.proclucts nnd services for your
busi11ess. Addhionrtlly. 1here nre sever.ii di llerent business n1odcls and
pricing tiers you can in11>len1ent that \Yill allo'v you to reach all typesof
CllSton1ers.
;;. Unl i mited i ncome potential - With stoning a number guessing game
business there is no cap as 10 how 1nuch ineon1c you can rnakc. 1hc
stronger your business skills und 1hc n1ore cncrgy/1i1nc you pui io10 your
career. the
111orc you'll rnakc.
;.. You get to do something yo·J cruly love - With srnning a number
guessing gan1e business, you get to put your energy into son1cthing you
are truly passionate about! You'll find you rself devoting as n1uch tin1c and
energy as 1><>ssiblc into the business to nu:i kc it successful.
;.. Yo11 get to inspire others - Your busincs. is one 1ha1cncoumges and
inspires others.\vhich in itsel f. can be very fulfilling.
• \V3school.co1n
• Pru101@JITK
• You1\1bc
Code \Yi th harry