Counter MagicDescription:In this mini project we will give you a small Android App called “Counter magic” (APK file). You first install it on your mobile device, it works as a client, and can send variousHTTP requests and receive responses from the server to make app functions workproperly. Your work is to implement various server functions to correctly handle theserequests.Detailed Requirements:1, You are free to use any popular server-side programming languages. Preferred: PHP,Python or Javascript (Node.js).2, The purpose of the project is to implement actual server functions, so you can useother tools to establish the HTTP server (for example, Apache) if you need. A localHTTP server is enough, as on the client app you can choose to use any server address.3, Along with all source code, you also need to submit a Readme file (TXT, DOC or PDF).It includes anything you think is important for us to evaluate your work. One criticalpart of the Readme is telling us how to setup your server and test it with the client app.Functions you have to implement:1, User verification. When first start the client app, it needs a user account to login.Your server will need to properly respond the client’s login request (in JSON format) atthe url: /login, whether the username exists, whether the passwordis correct, or other situations;The response should also be a JCounter Magic作业代做、代写Python,Javascript编程作业、代做Java实验作业 代写R语言编程SON formatted string, in the following format:{ “result”: “Success”, “info”: {“user”: {“id”: “…”, name: “…”},“character”: {“gender”: ”…”, “class”: “…”} }}Or:{ “result”: “Failed”, “info”: “some descriptions about the reason”}The default user is:Username: SamPassword: 1234Character.gerder: MaleCharacter.class: Human2, Once login successfully, your server will have to perform a special task called“Counter Magic”, the goal is to counter the magic words of the evil wizard and defeathim (for example, when the evil wizard says “black”, you should say “white” to counterit). Please refer to the client menu to get the clue of what are the basic counter words.This time the client will use HTTP GET method to send evil wizard’s magic words at theurl: /counter, and your response should be in JSON format, as follows:{ “counter”: [“word1”, “word2”, “word3”], “number”: 3}Optional:1, create a simple database to store user information, including id, username,password, character_gender, character_class. Every time when youreceived the client login request, you will retrieve information from the database andsend back;2, defeat the evil wizard with full health;How to submit:Please zip all your source code, essential build files, and Readme file, name the zip fileas “Xyken_Server01_.zip”,转自:http://www.3daixie.com/contents/11/3444.html
讲解:Counter Magic、Python,Javascript、JavaR| Statistics、
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 孩子小小的,样子让人心疼。看到他想做事情,却遇到麻烦,我们会忍不住想要伸手帮忙。然而我们需要克制住这样的冲动,...