Review the threading

Assignment Help JAVA Programming
Reference no: EM13842762

1. Threading

A considerable amount of time was spent trying to get threading to work properly. Initial designs included a thread called Turn, which would call a subsequent thread for performing communication actions with the LAMP server. Unable to get a working solution, the nested thread design was abandoned and the team focused on simply trying to get the Turn thread to work (it would have been easier yet to run the turn interactions in the main thread, however, this was seen to be extremely poor Android application design).
After considerable frustration, it was found that problems with wait() and notify() methods vanished by using "extends Thread" instead of "implements Runnable" for the Turn class.

2 Project Reevaluation

Despite considerable setbacks, the team generally stayed the course.
The decision to create an Android app, despite the lack of experience, made for a challenging project, but the difficulties encountered provided substantial learning opportunities. The large scope was initially intimidating, but after overcoming the many roadblocks, the team is satisfied that the project is of appropriate scope for the class.
The only notable decision the team chose not to pursue was the use of Bluetooth for Android communication. Though the use of Bluetooth was abandoned due to apparent time constraints, the use of a stable central database alleviated concerns about the host quitting, as the LAMP server provides consistent, accessible data. Additionally, PHP provided powerful tools that simplified coding in several cases.

3. Phase 1 Functionality

Functionality Description

A. Overall Application Description (end goal for the project)

The Card Czar Android application is a spin-off of the popular card game Apples to Apples (drawing some inspiration from the similar card game, Cards Against Humanity).
The Card Czar is an android application multiplayer card game that can deliver hours of fun. It allows a user to create a new game room and invite friends to play with them. For a game to begin there must be at least 3 players. Once a game is started each player is dealt at random a hand of response responses that will be used to respond to the random bait that is chosen for the round. A bait card (text) is chosen and the Card Baron (this is the dealer-either the winner from the last round, or host if it's the first round) then waits for players to submit responses to that bait. The Card Baron (dealer) then selects from one of the responses and the player who submitted the winning response gains 1 point and becomes the Card Baron for the next round. The first player to get to 5 points wins and is crowned the Card Czar.

B. Phase 1 Functionality
This section describes the functionality being delivered as of Phase1. All of the application's activity layout screens have been coded and are working, except for GameplayActivity, which only handles gameplay while a player is a dealer (Card Baron). Note that the other completed Activity Java classes have only the levelof functionality necessary for bare minimum operation.Additionally, the LAMP server has been created and deployed to an AWS instance. This server hosts the middleware, PHP files, which the application will call to interact with the database. The PHP files have not all been completed-not all of the non-dealer actions have been coded. The delivered code for phase 1 can be compiled and run through an emulator to begin showing basic gameplay functionality and interaction with the LAMP server.
The gameplay functionality is not complete yet so a full game cannot be played without using PHP tools that were designed for testing. Full functionality should be completed in the next phase of development.Additionally, security, such as setting up HTTPS communication with the LAMP server, has not yet been implemented in this phase of development. A breakdown of a sample game follows.

 

Reference no: EM13842762

Questions Cloud

Current multifactor productivity ratio : Alyssa's Custom Cakes currently sells 5 birthday, 2 wedding, and 3 specialty cakes each month for $45, $155, and $105 each, respectively. Alyssa's current multifactor productivity ratio is 1.25. assuming each cake costs the same to make, the average ..
What are the terms of the tender : How serious is the competition? Will this project be easy to win? Is there a reason to take on the project simply to deny the competition work? How many firms will bid; and what is the likelihood of winning?
What is the break-even quantity beyond : Spartan Castings must implement a manufacturing process that reduces the amount of particulates emitted into the atmosphere. Two processes have been identified that provide the same level of particulate reduction. What is the break-even quantity beyo..
What should be the process of the new item : A restaurant is condering adding fresh brook trout to its menu. Customers would have the choice of catching their own trout from a simulated mountain stream of simply asking the waiter to net the trout for them. Operating the steam would require $11,..
Review the threading : Threading. A considerable amount of time was spent trying to get threading to work properly. Initial designs included a thread called Turn, which would call a subsequent thread for performing communication actions with the LAMP server. Unable to..
Design a class to represent a bank account : Design a class to represent a bank account. Create a class Account that stores customer name, account number and type of account. From this derive the classes Curr-acct and Sav-acct to make them more specific to their requirements
Differences between cobit and the iso : In 500 words or less, explain the most important differences between COBIT and the ISO 27000 series in relation to information security
What did the new england colonies produce? : What did the New England Colonies produce?
Population experiences exponential growth : A bacterial population experiences exponential growth during a 4-day period. Assume that 200 colonies were present at the beginning of the 1st day, but by the beginning of the 3rd day, the population had grown to 335.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Explain at least three scenarios where he is wrong

Explain at least three scenarios where he is wrong, that is, where users other than a file's owner need some kind of allowed access privileges

  Video store application

Prepare an object-oriented program in Java for a video store application with the subsequent

  Write a program that establishes two savings accounts

Write a program that establishes two savings accounts with saver1 having account number 10002 with an initial balance of $2,000, and saver2 having account 10003 with an initial balance of $3,000

  Reads in up to 1000 non-negative integers

Write a program that reads in up to 1000 non-negative integers and displays distinct numbers (i.e., if a number appears multiple times, it is displayed only once). (Hint: Read each number and store it in an array if it is new. If the number is alread..

  Design and implement a small and simple email server

Design and implement a small and simple email server

  Java socket hello i need to this assignment done in net

hello i need to this assignment done in net beans . and i want comment in code .also screen shots of running program

  Create an application that uses a graphic interface

Create an application that uses a graphic interface to capture room assignment data for dormitory residents and writes that data to a random access output file.

  Create and implement class called date to store month

Create and Implement the class called Date which has data members to store month (as a number), day, year, and name of month.

  Function that finds the smallest item in an arraybag

Write me a function that finds the smallest item in an ArrayBag (by reference) and returns true if the arrayBag is not empty and false otherwise.

  Write a recursive method to produce a pattern

Write a recursive method to produce a pattern of n lines of asterisks.

  Most of the companies use virtualization to make test

write a 200- to 300-word short-answer response to the following many companies use virtualization to create test

  You have in your program an arraylist which contains

you have in your program an arraylist that contains employee salaries double type in arbitrary order. you need to

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd