| This paper implemented a tabletop game Werewolf on smart mobile device.For tabletop game, comparing online game and console game, it is very popular andgood for socialization, but more complicated on starting, also it’s difficult to utilizefragmented time. Big companies trend to develop them, fix their rules, make them online,wrap and sell them. And finally, they are completely changed.Here this design is to mostly keep the game the same, and bring network or techniquetools to assist the game starting. Specifically, this paper is about to solve problems whenplaying Werewolf, there is no cards on hand, or no judge available. Unlike those mobile gamederived from the tabletops, this design is original, it just assists the playing. This designemphasizes clear logic, simple UI, makes a good game experience of face-to-face tabletopgame.This design based on favorite mobile OS-Android. Per framework, it adapted the MVC,logic functions and visual functions are constructed as independent modules, control functionis based on message loop mechanism. They are designed for high-cohesion and low coupling,available for extension and testing. This game supports multiple devices connection overLAN network. Per network, specific module is developed for communication over LAN. It’sreliable and extensible as the sender and receiver use their own threads and messages basedqueue, and all messages are hierarchical serializable objects. And the reliable TCP socket isthe backend guarantee. The UI of this design is based on Android UI API, focusing on usability and simplicity.It adapts a favorite menu design, side sliding menu, and a unique message frame slidinginterface, which are able to display messages, and keep players immersed.During developing, project management is practiced, like the Agile iterativedevelopment, like version control with GIT and automatic integration testing with JUnitframework. All above show that, this design is clear, robust, testable and extensible, and final,the product can fulfill the assistant functions for Werewolf. |