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

  Java applet to find how much federal tax we need to pay

Write a java applet to determine how much federal tax we need to pay assuming the tax rate is 12%.  Ask the taxable income.

  Concept of web based information system

Design and implement a simple and small email server using the concept of web based information system

  Create a testing java program

Please create a testing Java program to use this RandomSeq class to create a random DNA sequence and then print it out in a formatted fashion with a specified length for each line.

  Implement bounded partial queue using signaling mechanism

Can you explain the reason? You can run the experiments on ecen5033.colorado.edu. Submit the code as well as experimental results - Implement both these schemes in Java. Each of the methods foo() and bar() just sleeps for 20 milliseconds.

  Calculate the premium and multiply the value of the object

Implement all the four Java classes described with the correct inheritance of abstract classes. Calculate the premium and multiply the value of the object being insured by the corresponding RATE. See the RATE tables above.

  Modify the homestead furniture store application

Design an application for the homestead furniture store that gets sales transaction data including an account number customer name and purchase price.

  Build distributed applications using technologies

Build distributed applications using technologies like Unix and Java sockets, SUN RPC, Java RMI, and message-passing tools such as PVM and MPI and

  Write a program that plays a word game with the user

Write a program that plays a word game with the user. The program should ask the user to enter the following.

  Replace the submit button

Replace the submit button (type="submit")with a regular button (type="button").  Once the buttonis clicked, display the user inputs in an HTML table below the form, if validations are successful

  Write code that prompts the user to enter a string

Write code that prompts the user to enter a string containing ONLY a series of digits, then complete all of the following operations:

  Topics: user interface, input validation, computer security

Topics: user interface, input validation, computer security, i/o processing, storage & retrievalAssignment: Write a program that will simulate a basic registration/login process for a standard application or website.Menu ItemsCreate a profileAsk the ..

  Program that counts the number of occurrences of lowercase

Write a program that counts the number of occurrences of lowercase and uppercase vowels in entered lines of text. Use a two-dimensional array to store the vowel counts. The array's first column holds the counts for the lowercase vowels, and the secon..

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