Requirements Analysis According to the IEEE STD-830-1993, IEEE Recommended Practice for Software Requirements Specification0
1. Introduction 1.1. Purpose T7e #r#o"e of t7!" .o$ment !" to .e"$r!2e t7e "oftware req!rement" for a Hangman game a##1!$at!on0
1.2. History T7!" #ro8e$t .oe"nDt re#re"ent a "eqe1 of a fn$t!ona1 #ro8e$t0
1.. !cope T7e 7angman game !" a game a##1!$at!on w7o"e #r#o"e !" to 7a'e t7e #1a-er ge"" a wor. 2- f!n.!ng !t" 1etter" !n a $erta!n nm2er of mo'e"0 ItD" a##1!$at!on f!e1. !" game" w!t7 a 'er- "1!g7t e.$at!'e note a" t7!" game $an a1"o 7e1# -onger #1a-er" to 2etter t7e!r "#e11!ng of $ommon wor."0
1.". Definitions# Acronyms and Abbreviations T7!" "2"e$t!on "7o1. #ro'!.e t7e .ef!n!t!on" of a11 term"( a$ron-m"( an. a22re'!at!on" req!re. to #ro#er1!nter#ret t7e SRS0 T7!" !nformat!on ma- 2e #ro'!.e. 2- referen$e to one or more a##en.!$e" !n t7e SRS or 2- referen$e to ot7er .o$ment"0
1.%. !tructure T7e !ntro.$t!on of t7!" .o$ment .e"$r!2e" !t" #r#o"e( "$o#e an. 7!"tor- of t7e #ro8e$t0 T7e Genera1 /e"$r!t!on $7a#ter .e"$r!2e" t7e #ro.$t re"1t!ng from t7e #ro8e$t an. !t" "age"0 T7e S-"tem Req!rement" $7a#ter g!'e" more .eta!1" a2ot t7e !nterfa$e an. fn$t!ona1!t!e" of t7e f!na1 #ro.$t"( a" we11 a" t7e .!fferent .e"!gn $on"tra!nt" t7at "7o1. 2e re"#e$te.0 T7e A##en.!$e" $onta!n t7e U,L .!agram" t7at $om#1ement t7e "-"tem req!rement" $7a#ter0
5
SRS 2. &eneral description 2.1. Product Description T7e #ro.$t t7at w!11 re"1t from t7e #ro8e$t w!11 2e a game a##1!$at!on of t7e 7angman game0 It" #r#o"e w!11 2e to enterta!n t7e #1a-er w7!1e !m#ro'!ng 7!" "#e11!ng a2!1!t-0 ,a!ntenan$e 2- a..!ng new wor." to 2e ge""e. w!11 2e ea"- a" t7e .!$t!onar- of wor." w!11 2e $onta!ne. !n a "!m#1e f!1e0 T7e !nterfa$e "7o1. 7a'e few e#1!$!t 2tton" "o a" to 2e ea"!1- n.er"too. 2- t7e #1a-er0 T7!" wa- t7e #1a-er w!11 2e a21e to "tart en8o-!ng t7e game !mme.!ate1- w!t7ot 7a'!ng to mae effort" to n.er"tan. t7e wa- t7e game wor"0
2.2. Product 'unctions T7e #ro.$t $on"!"t" of a game a##1!$at!on to 2e rn on t7e #er"ona1 $om#ter of t7e "er0 T7!" gameD goa1 !" to mae t7e #1a-er ge"" a wor. 2- 7a'!ng 7!m #ro#o"e 1etter"0 In $a"e t7e #ro#o"e. 1etter .oe"nDt 2e1ong to t7e wor. a 7angman "tart" to 2e .rawn0 T7e game !" o'er w7en t7e #a-er f!n." t7e wor. or w7en t7e 7angman !" $om#1ete1- .rawn0 T7!" game .oe" not req!re t7e "er to 7a'e "#e$!a1 $re.ent!a1" or $om#t!ng "!11" to 2e "e.0
2.. (ser description T7!" game !" for an-one t7at wo1. 1!e to re1a0T7e #1a-er $an $7oo"e 2etween t7ree 1e'e1" of .!ff!$1t- to 7a'e t7e 2e"t e#er!en$e #o""!21e0 For eam#1e t7e ea"- .!ff!$1t- $o1. 2e "e. mo"t1- 2- $7!1.ren w7!1e t7e 7ar. mo.e w!11 2e "e. 2- a.1t" 1oo!ng for "ome $7a11enge0
2.". Constraints T7ewant a##1!$at!on !" a one #1a-er game0 We t7e a##1!$at!on to retrn t7e e#e$te. re"1t" !n or.er not to "#o!1 t7e fn of t7e #1a-er0
2.$. Assumptions and Dependencies T7e a##1!$at!on !" to 2e rn on #er"ona1 $om#ter"0 T7e f!1e" $onta!n!ng t7e .ata are !n t7e "ame .!re$tora" t7e ee$ta21e0 T7ere !" no nee. for etra "oftware to 2e !n"ta11e. to "e t7e a##1!$at!on0
3
SRS . !ystem Requirements .1. )*ternal Interface Requirements (ser interface T7e !nterfa$e of t7e a##1!$at!on !" n!qe( !t !" t7e "ame for e'er- "er0 Hard+are interfaces T7e #1a-er !ntera$t" w!t7 t7e a##1!$at!on "!ng t7e $1a""!$a1 !n#t an. ot#t .e'!$e" "$7 a" mo"e( e-2oar.( an. $om#ter "$reen0 !oft+are ,libraries or ot-er partspro/rams0 interfaces T7e a##1!$at!on "e" a'a for t7e $ommn!$at!on w!t7 t7e .ata f!1e"0 In t7!" wa- a 7!g7 #orta2!1!t- of t7e "-" a##1!$at!on tem !" a""re.( t7e on1- "oftware !nterfa$e nee.e. 2e!ng t7e one w!t7 V, 6a'a V!rta1 ,a$7!ne9 w7!$7 $an 2e ea"!1- !n"ta11e. on t7e $ommon o#erat!ng "-"tem" 6W!n.ow"( L!n( ,a$OS90
.2. 'unctional Requirements T7e "er $an !ntera$t w!t7 t7e a##1!$at!on t7rog7 t7e gra#7!$a1 !nterfa$e on t7e $om#ter0 T7e #1a-er "tart" a new game w7!1e $7oo"!ng 2etween t7ree .!ff!$1t- 1e'e1" % ea"-( norma1( 7ar.0 Ba"e. on t7e .!ff!$1t- "e1e$te. t7e a##1!$at!on "e1e$t" a wor. an. .!"#1a-" a nm2er of n.er"$ore" re#re"ent!ng ea$7 1etter of t7e wor. an. t7e nm2er of 7!nt" req!re. & A .e"$r!#t!on of t7e wor. an. a 1etter of t7e wor. for ea"& A 1etter 2e1ong!ng to t7e wor. for norma1 & No 7e1# for 7ar. T7e #1a-er $an t7en #ro#o"e a 1etter0 If t7e 1etter 2e1ong" to t7e wor.( t7e a##1!$at!on .!"#1a-" a11 of t7em !n #1a$e of t7e!r $orre"#on.!ng n.er"$ore0 If t7e 1ette r .oe"nDt 2e1ong to t7e wor. t7e a##1!$at!on .raw" a 2o.- #art of t7e 7angman0 T7e game f!n!"7e" w7en t7e 7angman !" f11- .rawn or w7en t7e #1a-er $orre$t1- ge""e" t7e wor.0 At a11#1a-er t!me" $an t7e a1rea.#ro#o"e. 1etter" are at .!"#1a-e.0 T7e "e1e$t an. "tart a new game an-t!me0 (se cases (se case !tart a ne+ /ame U"e $a"e .e"$r!#t!on % A #1a-er want" to "tart a new game0
)0
P1a-er Se1e$t .!ff!$1t- 1e'e1
A##1!$at!on *0
Se1e$t a wor. an. .!"#1a- n.er"$ore" >0 /!"#1a- t7e 7!nt" $orre"#on.!ng
(se case Proposin/ a c-aracter U"e $a"e .e"$r!#t!on % T7e #1a-er" #ro#o"e" a $7ara$ter ,a!n f1ow of e'ent" )0
P1a-er In#t a $7ara$ter
A##1!$at!on *0 >0
A1ternate f1ow of e'ent" A % /raw a #art of t7e 7angman A0) % Go to >0 (se case )ndin/ a /ame U"e $a"e .e"$r!#t!on % T7e #1a-er en." t7e game
SRS ,a!n f1ow of e'ent" P1a-er In#t f!na1 $7ara$ter
)0
A##1!$at!on *0
/!"#1a- t7e $om#1ete. wor.
3. /!"#1a- Congrat1at!on" w!n.ow 6A)9 50
Se1e$t new game 6A*9 30
Start new game
A1ternate f1ow of e'ent" A)% /!"#1a- $om#1ete. 7angman A)0) % /!"#1a- Lo"!ng w!n.ow A)0* % Go to 50 A* % E!t a##1!$at!on
.. Performance Requirements T7e a##1!$at!on "7o1. 2e a21e to #ar"e t7e .!$t!onar- of wor." !n 1e"" t7an * "e$on." !n or.er not to mae t7e #1a-er wa!t to m$70 A 1ong wa!t!ng t!me wo1. r!n 7!" fn0
.". Desi/n Constraints T7e .e"!gn of t7e a##1!$at!on "7o1. 1!m!t !t to t7e "e of a'a !n or.er to en"re t7e nee.e. #orta2!1!t-0 A1"o t7e a##1!$at!on "7o1. 2e .e"!gne. w!t7 an !nterfa$e w!t7 few 2tton" a$$om#an!e. w!t7 a .e"$r!#t!on w7en nee.e. !n or.er for non&e#er!en$e. "er" to 2e a21e to "e !t w!t7ot .!ff!$1t!e"0
.$. !oft+are !ystem Attributes Trust T7ere !" no $r!t!$a1 .ata "tore. w!t7!n t7e game0 No $r!t!$a1 !nformat!on w!11 2e 1o"t !n $a"e of "-"tem fa!1re0 Reliability T7e a##1!$at!on !" a21e to wor w7ene'er t7e #1a-er 1a$7e" !t0 !ecurity T7ere !" no $r!t!$a1 .ata "tore. w!t7!n t7e game t7atD" w7- no a$$ont or $re.ent!a1" are req!rere. to "e t7e game0 aintenance T7e ma!ntenan$e of t7e a##1!$at!on !" .e"!gne. to 2e ea"-0 New wor." $an 2e .!re$t1- a..e. at t7e en. of t7e .!$t!onar- f!1e a" 1ong a" t7e- re"#e$t t7e "ame wr!t!ng norm a" t7e a1rea.- e!"t!ng wor."0 Portability T7e #orta2!1!t- of t7e a##1!$at!on !" 7!g7 2e$a"e !t "e" a'a for !m#1ementat!on0 T7e a'a V!rta1 ,a$7!ne nee.e. for 8a'a $o.e to 2e rn $an 2e ea"!1- !n"ta11e. on t7e "a1 o#erat!ng "-"tem" w7!$7 are "##orte. 2- t7e "a1 $om#ter ar$7!te$tre"0 'ault tolerance T7e a##1!$at!on $7e$" for !n#t error" 2- t7e #1a-er0 In t7e $a"e of an error t7e #1a-er !" not!f!e. 2t t7e a##1!$at!on .oe"nDt $ra"7( !t fo11ow" t7e req!rement" nee.e. for a gra$ef1 .egra.at!on( ma!nta!n!ng t7e ot7er fn$t!ona1!t!e" of t7e a##1!$at!on0
A7. Conclusions re/ardin/ t-e activity T7!" #ro8e$t a11owe. " to 7a'e a 2etter n.er"tan.!ng a2ot t7e f!r"t" "te#" of a rea1 #ro8e$t 2g!'!ng " a "!m#1e an. $on$rete eam#1e0 T7rog7 t7!" #ro8e$t( we were a1"o a21e to 2etter or teamwor( w7!$7 !" an e""ent!a1 "!11 for an- eng!neer0