IIDD22162216/UMT/UMT Checkers Game - k_gh20/MIDlets/Project/presentation/Checkers Game.pdf  IIDD22162216/UMT/UMT

  • View
    219

  • Download
    0

Embed Size (px)

Text of IIDD22162216/UMT/UMT Checkers Game - k_gh20/MIDlets/Project/presentation/Checkers Game.pdf ...

  • Developing Mobile ApplicationsDeveloping Mobile Applications IDID22162216/UMT/UMT

    Checkers GameCheckers Game

    1

    Checkers GameCheckers Game

    By:By:

    Behzad Salim AroonyBehzad Salim Aroony

    Kambiz GhoorchianKambiz Ghoorchian

  • Outline � Checkers Game

    � Design and Implementation

    � Technical description

    Classes and Packages� Classes and Packages

    � Message passing and thread

    � Communication protocol

    � How to play

    � Conclusion

    2

  • Checkers Game � Checkers is the name of several

    different board games.

    � All of these games are similar.

    � In every kind of checkers, the � In every kind of checkers, the other player's pieces can be taken by being "jumped" over.

    3

  • Design and Implementation � Application is designed using:

    � J2ME

    � JTWI (Java Technology for wireless industry)

    � MIDP 2.0� MIDP 2.0

    � CLDC 1.0

    � Implementation IDE and Running Emulator

    � Eclipse 3.4.1

    � Sun Wireless toolkit 2.5.2

    4

  • Technical description � Classes and packages

    � CheckersMidlet.java � The main class of the application,

    � CheckersCanvas.java � The graphical part of the application � Uses The canvas as the container

    Uses graphics class in order to paint the states of the game� Uses graphics class in order to paint the states of the game

    � ColorType.java � An abstract class which is made to increase the generalization.

    � Communicator.java � A threaded class � Responsible for all the communications of the game

    � Main packages used in the application � javax.microedition.lcdui � javax.microedition.midlet � javax.microedition.io � javax.wireless.messaging

    5

  • Technical description � Message passing and threaded:

    � The application uses simple asynchronized SMS message passing as its communication Schema.

    � Communication part is threaded� Communication part is threaded

    � Will be run in parallel with the app

    � Sends the message

    � Waits for the other peer’s response

    6

  • Technical description � Communication Protocol

    � In order to pass the game states and decisions between peers we used a self instructed communication protocol. ex.protocol. ex.

    � “INVITE” => Invitation Message

    � “07” or “+5” => Turn And color selection

    � etc…

    7

  • How to play

    Press lunch for both applications.

    8

  • How to play

    Press yes to communicate.

    9

  • How to play

    Enter the target phone number

    10

  • How to play

    Approve the connection by pressing the invite button.

    11

  • How to play

    Also approve by the player

    12

  • How to play

    Color selection by the system based on the phone number

    13

  • How to play

    Color Approve

    14

  • How to play

    Color approve

    15

  • How to play

    There are three variables : 1. The turn 2. Number of circles 3. Color

    16

  • How to play

    Send message for play

    17

  • How to play

    Game in progress

    18

  • How to play

    Game in progress

    19

  • Conclusion � Beta version of the application is released

    � Tested on sun wireless toolkit

    � Fixed some bugs and still under test

    � Didn’t test on other devices yet� Didn’t test on other devices yet

    � Working on push method as further development

    20

  • Questions

    ??

    21