multi game

46
MULTI-GAMES A PROJECT REPORT Submitted by ASWINI.S (90409134008) BHARATHI.P (90409134013) In partial fulfillment for the award of the degree Of BACHELOR OF TECHNOLOGY

Upload: deepak

Post on 22-Jul-2016

13 views

Category:

Documents


1 download

DESCRIPTION

Gaming mini project

TRANSCRIPT

Page 1: Multi Game

MULTI-GAMES

A PROJECT REPORT

Submitted by

ASWINI.S (90409134008)

BHARATHI.P (90409134013)

In partial fulfillment for the award of the degree

Of

BACHELOR OF TECHNOLOGY

In

INFORMATION TECHNOLOGY

K. L. N COLLEGE OF ENGINEERING, SIVAGANGAI

ANNA UNIVERSITY :: CHENNAI 600 025

OCTOBER 2012

Page 2: Multi Game

BONAFIDE CERTIFICATE

Certified that this project report “MULTI-GAMES” is the bonafide work of

“S.ASWINI & P.BHARATHI” who carried out the project work under my

supervision.

SIGNATURE SIGNATURE

(Dr. N. Balaji, HOD/IT) (Mr. L.R.J. Karthik, AP1)

M.E (CSE), Ph.D(INFN & COMM. ENGG) B.Tech (IT) M.E(CSE)

HEAD OF THE DEPARTMENT SUPERVISOR

IT Department IT Department

KLNCE KLNCE

Sivagangai Sivagangai

Page 3: Multi Game

ACKNOWLEDGEMENT

I express my sincere thanks to my college chairman, Mr. K.N.K.

Ganesh for providing us with adequate infrastructure and a congenial

academic environment. I wish to express my sincere thanks to Mr. A.V.

Ramprasad, principal of KLN College of Engineering for his patronage.

My heartfelt thanks to Dr. N. Balaji, Head of Department, Information

Technology for his useful suggestions and constant encouragement.

I am also thankful to my guide Mr. L.R.J. Karthik, Asst. Professor

1, Department of Information Technology) whose timely guidance and

persistent encouragement helped me in completing the project successfully

and making it a wonderful learning experience. I convey my sincere thanks

to all the teaching and non-teaching staff of my college for their support and

cooperation during the project. Finally I thank my parents and colleagues

who have helped me in the successful completion of this project work.

ASWINI.S (90409134008)

BHARATHI.P (90409134013)

Page 4: Multi Game

TABLE OF CONTENTS

CHAPTER NO TITLE PAGE NO

ABSTRACT 6

LIST OF FIGURES 7

LIST OF SYMBOLS 7

1. INTRODUCTION

1.1 Problem statement 8

1.2 Project Objective 8

1.3 Scope of the project 8

1.3.1 Existing system 8

1.3.2 Proposed system 8

1.4 Software life cycle model 9

1.4.1 Reason for choosing this model 9

1.5 Project plan 10

2. SYSTEM ANALYSIS 10

2.1 Requirement analysis 10

2.1.1 Functional requirements 10

2.1.2 Non functional requirements 11

2.1.3 Hardware requirements 11

2.1.4 Software requirements 11

Page 5: Multi Game

2.2 Module specification 11

2.2.1 Registration 12

2.2.2 Login 12

2.2.3 Select Games 12

2.2.4 Play 12

3. SYSTEM DESIGN 13

3.1 Use case diagram 13

3.2 Class diagram 14

3.3 Activity diagram 15

3.4 Sequence diagram 20

3.5 Collaboration diagram 21

4. CODING 22

5. TESTING 28

6. SCREENSHOTS 29

7. CONCLUSION 35

8. FUTURE ENHANCEMENT 35

9. APPENDIX 36

9.1 ABOUT THE SOFTWARE 36

9.1.1 PHP 36

9.1.2 MYSQL 36

9.1.3 APACHE TOMCAT SERVER: 37

9.2BIBILIOGRAPHY: 37

Page 6: Multi Game

ABSTRACT

This Multi-games project implements an efficient technique and GUI

to play a multi games online. Our implementation of games is for single

user. This project provides a facility of login, register new user, select a

new game, play the game with some constraints. The features of an

online multi games is to provide user friendly environment, to store the

status and history of the game. The addition features is that sending

invitation, sending score to user mail id, timer. The future enhancement is

to provide chat facility, blog, adding some more games giving offer to

user’s who win the game etc. Here the project consists of games like

puzzle, quiz, and negative image. The users have to find the answer

within the time limit.

Page 7: Multi Game

LIST OF FIGURES

FIGURE NO FIGURE NAME

Fig 3.1 Use Case Diagrams

Fig 3.2 Class Diagram

Fig 3.3 Activity Diagram

Fig 3.4 Sequence Diagram

LIST OF SYMBOLS

S.NO SYMBOL NAME SYMBOLS

1) Use case

2) Actor

3) Process

4) Dependencies

5) Decision

6) Stop

7) Unidirectional

Page 8: Multi Game

1. INTRODUCTION

1.1 PROBLEM STATEMENT:

To develop an application for the user to play multi-games online. The

system is online applications that consist of three games which can be

played using proper login provided and within the time given.

1.2 PROJECT OBJECTIVE

The objective of this system is to develop multi-games with User Interface.

It consist of three games which is Puzzle, Quiz and Negative Image. The

timer is set and the score will be displayed for quiz.

1.3 SCOPE OF THE PROJECT

Our project has a big scope to do. It deals with the features such as score

board, sending email invitation, timer, hints etc.

1.3.1 EXISTING SYSTEM

Previous projects of the same kind deals with the concept of playing multi

games online but with no time limit. Due to this reason the user can take any

amount of time to finish the game, so that every user can win the game. This

is the main drawback in the existing system

1.3.2 PROPOSED SYSTEM

The project deals with concept of playing games with time limit, inviting

friends to play game, sending score to user mail. The future enhancement is

to add chat facility, creating blogs.

Page 9: Multi Game

1.4 SOFTWARE LIFE CYCLE MODEL

Incremental model is an evolution of waterfall model. The product is

designed, implemented, integrated and tested as a series of

incremental builds. It is a popular model software evolution used

many commercial software companies and system vendor.

Incremental software development model may be applicable to

projects where:

Software Requirements are well defined, but realization may be

delayed.

1.4.1 REASON FOR CHOOSING THIS MODEL

More flexible-less costly to change scope and requirements

Easy to test and debug during smaller iteration

Easy to manage risk because risky pieces are identified and handled

during its iteration

Page 10: Multi Game

1.5 PROJECT PLAN

2. SYSTEM ANALYSIS

2.1 REQUIREMENT ANALYSIS

2.1.1 FUNCTIONAL REQUIREMENTS

Registration

Login

Select games

Play

Page 11: Multi Game

2.1.2 NON FUNCTIONAL REQUIREMENTS

Hardware Requirements

Processor : Pentium® Dual Core CPU (3.0 GHZ)

Ram : 1 GB

Hardware capacity : 15 GB

Input devices : Keyboard, mouse

Software Requirements

Operating System – Ubuntu or MS Windows

Front End –HTML, JavaScript.

Server Side scripting language: PHP

Back End – MYSQL

2.2 MODULE SPECIFICATION

IN OUR PROJECT THERE ARE FOUR MODULES:

1. REGISTRATION

2. LOGIN

3. SELECT GAMES

4. PLAY

Page 12: Multi Game

1. REGISTRATION:

It performs the action of user registration by entering name, password,

and email-id and if it already exists one it will ask user to give another

username

2. LOGIN:

User can login with username and password entered during registration.

If the user forgets the password, the password will be sent to the mail.

3. SELECT GAMES:

The user can play their own choice of games by selecting them. Here the

choice is puzzle, quiz, and negative image.

4. PLAY

Perform the action of playing the game. Before start playing the user must

logged in, select the game.

Page 13: Multi Game

3. SYSTEM DESIGN

3.1 USECASE DIAGRAM

Page 14: Multi Game

3.2 CLASS DIAGRAM

Page 15: Multi Game

3.3 ACTIVITY DIAGRAM

LOGIN:

REGISTRATION:

Page 16: Multi Game

INVITE FRIENDS:

PLAY:

Page 17: Multi Game

SELECT GAME:

PUZZLE:

Page 18: Multi Game

QUIZ:

NEGATIVE IMAGE:

Page 19: Multi Game

SCORE CARD:

Page 20: Multi Game

3.4 SEQUENCE DIAGRAM

Page 21: Multi Game

3.5 COLLABORATION DIAGRAM

Page 22: Multi Game

4. CODINGS

DESIGN FOR REGISTRATION FORM:

<html>

<head>

<style type="text/css">

body {color:white;size-10}</style>

</head>

</html>

<html>

<body style="background-color:Black;">

<center>

<div id="" style="width:1500px">

<div id="header" style="background-color:#800000;"></div>

<h1 style="font-family:;color:white;">TEST YOUR BRAIN!!! </H1>

<br>

<br>

</center>

<center>

<img

src="https://lh5.ggpht.com/q1b0q96_PVGZH3fSKgO2ZDVFgNcxfXszKjH

O8XpVbaPp0BmGnCOL2EuzKTFHIvi6AA=w705" height=400px

width=950px>

Page 23: Multi Game

</center>

<form action="new.php" method=post>

<strong>Username:<input type="text" name="Username"/>

<br>

<br>

Password: <input type="password" name="Pasword"/>

<br>

<br>

<input type="submit" value="Log-In"/>

</form>

<br>

<br>

<p><b><i> New User User</b></p>

<form action="register.php" method=post>

<input type="submit" value="Sign-Up"/>

</form>

</html>

REGISTERATION CODING:

<html>

<head>

<style type="text/css">

Page 24: Multi Game

body {color:white;size-10}

label{

width:150px;

float:left;

}

</style>

</head>

</html>

<html>

<body style="background-color:black;">

<script type="text/javascript">

function checkForm(form)

{

if(form.NAME.value == "")

{

alert("Error: Username cannot be blank!");

form.NAME.focus();

return false;

}

Page 25: Multi Game

if(form.PASSWORD.value == "")

{

alert("Error: Password cannot be left blank");

form.PASSWORD.focus();

return false;

}

if(form.PASSWORD.value != form.CONFIRMPASSWORD.value)

{

alert("The password you have entered is not valid!");

form.PASSWORD.focus();

return false;

}

var x=document.forms["myForm"]["EMAILID"].value;

var atpos=x.indexOf("@");

var dotpos=x.lastIndexOf(".");

if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)

Page 26: Multi Game

{

alert("Not a valid e-mail address");

return false;

}

}

</script>

<img

src="https://lh5.ggpht.com/q1b0q96_PVGZH3fSKgO2ZDVFgNcxfXszKjH

O8XpVbaPp0BmGnCOL2EuzKTFHIvi6AA=w705" align="right"

height=600px width=700px>

<form name="myForm" action="newreg.php" method="post"

onsubmit="return checkForm(this);">

<div class="style">

<br>

<br>

<br>

<br>

<b>

Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n

bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp

;&nbsp;<input type="text" name="NAME">

<div class="clear">

Page 27: Multi Game

<br>

<dt>Password:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n

bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="password"

name="PASSWORD" value=""><div class="clear">

<br>

<dt>Confirm Password: <input type="password"

name="CONFIRMPASSWORD" value=""><div class="clear">

<br>

<dt>E-Mail

Id:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="EMAILID"

value=""><div class="clear"><br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n

bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input

type="submit" value="Submit">

</dt>

</form>

</html>

Page 28: Multi Game

5. TESTING

In computer programming, unit testing is a method by which

individual units of source code are tested to determine if they are fit for use.

A unit is the smallest testable part of an application. In procedural

programming a unit may be an individual function or procedure. Unit tests

are created by programmers or occasionally by white box testers.

Ideally, each test case is independent from the others: substitutes like

method stubs, mock objects, [1] fakes and test harnesses can be used to

assist testing a module in isolation. Unit tests are typically written and run

by software developers to ensure that code meets its design and behaves as

intended. Its implementation can vary from being very manual (pencil and

paper) to being formalized as part of build automation.

Page 29: Multi Game

6. SCREENSHOTS

Fig 1.HOME PAGE

Page 30: Multi Game

Fig2. Registration

Page 31: Multi Game

Fig 3.Choose game

Page 32: Multi Game

Fig4. Puzzle

Page 33: Multi Game

Fig5.Quiz

Page 34: Multi Game

Fig 6.Hidden Picture

Page 35: Multi Game

7. CONCLUSION

This provides user-friendly interface. The games such as Puzzle, Quiz

and Hidden-pictures provide flexible gaming theory. It adds the additional

features like timer send invitation, score board etc.

8. FUTURE ENCHANCEMENT

This Application can be easily implemented under various situations.

We can add new features and when we require. There is flexibility in all the

modules.

Extensibility:

This software is extendable in ways that its original developers may

not expect. The following principles enhance extensibility like hide data

structure and private operation.

Reusability:

It is possible as and when requires we can update it next version.

Reducing the amount of code also simplifies understanding which increases

the likelihood that the code is correct.

Understand ability:

A method is understandable if someone other than the creator of the

method can understand the code. We use the method, which small &

coherent helps to accomplish this.

9. APPENDIX

Page 36: Multi Game

9.1 ABOUT THE SOFTWARE

9.1.1 PHP

PHP, the Hypertext pre-processor is a widely used, general-purpose

scripting language that was originally designed for web development to

produce dynamic web pages. For this purpose, PHP code is embedded into

the HTML source document and interpreted by a web server with a PHP

processor module, which generates the web page document. It may also

function as a graphical application.PHP is available as a standalone

interpreter on most operating systems and computing platforms.

9.1.2 MYSQL

The MYSQL development project has made its source code available

under the term of the GNU General Public License, as well as under a

variety of proprietary agreements. MySQL was owned and sponsored by a

single for-profit firm, the Swedish company MySQL LAB, now owned by

Sun Microsystems, a subsidiary of Oracle Corporation.

Free –software projects that require a full-featured database management

system often use MySQL. Such projects include Word Press, phpBB3,

Drupal and other software built on the LAMP software stack. MySQL is also

used in many high-profiles, large-scale World Wide Web products including

Wikipedia, Google and Face book.

9.1.3 APACHE TOMCAT SERVER:

Apache Tomcat (or Jakarta Tomcat or simply Tomcat) is an open

source servlet container developed by the Apache Software Foundation

Page 37: Multi Game

(ASF).Tomcat implements the Java Servlet and the Java Server pages (JSP)

specifications from sun Microsystems and provides “pure Java” HTTP web

server environment for Java code to run.

Tomcat should not be confused with the Apache web server, which is a C

implementation of an HTTP web server; these two web servers are not

bundled together.

9.2BIBILIO

GRAPHY:

1. www.w3schools.com

2. www.wikipedia.com

3. Software Engineering by Roger S. Pressman