dis project proposal distributed-pacman. overview of project motivation and goals project...

22
DIS Project Proposal Distributed-PacMan

Upload: marianna-hart

Post on 18-Jan-2016

229 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

DIS Project Proposal

Distributed-PacMan

Page 2: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Overview of Project

Motivation and goals Project Participants Project timeline

Page 3: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Motivation and Goals

To create a happy world, interactively of one-line game

Safety (error free, stable environment) and liveness. (someone will eventually have fun in the game)

Page 4: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Project Participants

R92725017 施嘉峻 R92725025 詹淳凱 R92725027 黃俊誌

Page 5: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Project Timeline Brainstorming 11/2 ~ 11/8 System prototype design 11/9 ~

11/15 Proposal 11/17 Fine-tune system and modularize the

components 11/18 ~ 1129 Implementation 11/30 ~ 12/27 Integration & Testing 12/28 ~ 1/15 Demo 1/15 ~ 1/20

Page 6: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Technological Infrastructure

Description & diagram – including network, db, servers & clients

Rationale/justification

Page 7: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Description & Diagram

Login Server

Game Server

Client

Page 8: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Description & Diagram(Cont’d)

Phase 1 Each host connects to the Login

Server Join a group Wait for enough members to create

game No dynamic join when a game is created

Page 9: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Description & Diagram(Cont’d)

Phase 2 Elect a Game Server within the group Game Server

Wait for all other member set up connection

Start game Client

Connect to Game Server Wait for start game

Page 10: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

System Flow Chart登入

Request

傳送目前的資訊

選擇群組加入

Response

Request

將 Client 加入群組

群組中人數足夠

False

聯絡其他 Clients開始選 Leader

通知群組內所有 Clients

True

Notify

Client Login Server

Page 11: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Statues

Game Server:

Client:

Roundstart

Wait for connection

Roundend

QuitGame

Connect toGame Server

Roundstart

Roundend

QuitGame

All connection setupSend “start”

Receive “start”

Decide to quitSend “S_quit”

Decide to quitSend “C_quit”

LeaderElection

receive “S_quit”

Page 12: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Game Flow Chart(ghost part)

start chase

catch or be caught?

disappear for 10 seconds be caught

catch

yes no end & win

all points are eaten?

yes

end & lose

no any pacman remains?

Page 13: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Game Flow Chart(Pacman part)

start eat

be caught?

In prison

be caught

yes no end & lose

all points are eaten?

yes

end & win

no any pacman remains?

powerpoweredyes

no

rescueyes

no

Page 14: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Rationale/justification

Fault Tolerance - Client disconnect

(1) Game server checks every 10 second to see if there is any unusual disconnect

(2) Waits for 5 seconds and kicks out the disconnected host

Page 15: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Rationale/justification

- Game Server disconnect(1)Wait for reply for 5 sec(2)Ring-based algorithm for

leader election

Page 16: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Rationale/justification

Scalability- All participants are separated into groups with one group leader (game server), so computation is decentralized

Page 17: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Implementation Phase

System requirement Implementation Installation Testing

Page 18: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

System requirement

Environments- j2sdk1.4.2- Database => mySQL ( Login Server only)

Language- Java

Page 19: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Implementation Language – Java Some important APIs

- RMI- Swing- Net- IO

Application layer & Communication layer

Page 20: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Installation

Java jar file- java –jar pacman.jar

Page 21: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Testing

Fairness Fault tolerance Scalability

Page 22: DIS Project Proposal Distributed-PacMan. Overview of Project Motivation and goals Project Participants Project timeline

Job Distribution

Game Design – 詹淳凱 Application layer - 詹淳凱 , 施嘉峻 Communication layer – 施嘉峻 , 黃俊