In this paper, we demonstrate the use of design patterns to develop games for mobile devices on the J2ME platform. We believe that the proposed idea will help J2ME game developers to write better re-usable code faster. We consider a single player Sudoku board game which is based on the model-view-controller architecture. The view is configured with a Game Controller Choice pattern so that different controllers can be selected. The view and the model implement the Game State Observer pattern. The Canvas drawing logic is created using the Drawing Template pattern, which ensures reusability of the board size computation as well as provides a means for the programmer to implement game specific drawing functionalities. A generic undo method is provided using the Game Memento pattern. Setting of the current display is achieved through the Change Screen pattern. We note that the use of patterns in the Sudoku game makes it possible to cater for changes without breaking up the overall architecture of the game. By considering a downgraded version of the standard Soduko game, we show that patterns allow modifications to be made without opening up too many classes. We also show how the proposed design of the Sudoku game facilitates the design of other games.
This report has been prepared under the guidance and sponsorship of the CAMAC Software Working Group of the U. S. AEC NIM Committee. It contains descriptions of six FORTRANcompatible subroutines recommended for use with CAMAC systems. These subroutines permit the most general operations on a CAMAC system to be specified in a high-level programming language. Two of the subroutines implement the fundamental CAMAC functions; three of them implement the three uses of the Q response defined in TID-25875; the remaining subroutine provides a flexible alternative for CAMAC addressing.
This report describes the LAMPF Microprogrammed Branch Driver (MBD) from a programmer's point of view and describes a set of macroinstructions, implemented in the PDP-11 MACRO assembler, suitable for writing programs for it.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.
customersupport@researchsolutions.com
10624 S. Eastern Ave., Ste. A-614
Henderson, NV 89052, USA
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Copyright © 2024 scite LLC. All rights reserved.
Made with 💙 for researchers
Part of the Research Solutions Family.