WhatsApp-00963951432013 Admin
عدد المساهمات : 2429 نقاط : 302124 السٌّمعَة : 4 تاريخ التسجيل : 20/09/2008 العمر : 54 الموقع : www.aoua.123.st
| موضوع: AOU, Spring 1 2016, Course M299, TMA Technology: Level 2 M299 Mobile computing Arab Open University M299 ______________________________________________________________________________ Tutor-marked Assignment _______________________________________________ الثلاثاء مارس 29, 2016 5:56 pm | |
| AOU, Spring 1 2016, Course M299, TMA Technology: Level 2 M299 Mobile computing Arab Open University M299 ______________________________________________________________________________ Tutor-marked Assignment ______________________________________________________________________________ Contents Cut-off date May 09, 2016 M299, TMA Spring 2016 ______________________________________________________________________________ Total Marks: 100 Contents Question 1 (50 marks)……………………………………………………2 Question 2 (50 marks)……………………………………………………3 The content of this TMA has been adopted from the home works of the course CS 193A: Android App Development Winter 2015 at Stanford Engineering.1 Plagiarism Warning: As per AOU rules and regulations, all students are required to submit their own TMA work and avoid plagiarism. The AOU has implemented sophisticated techniques for plagiarism detection. You must provide all references in case you use and quote another person's work in your TMA. You will be penalized for any act of plagiarism as per the AOU's rules and regulations. Declaration of No Plagiarism by Student (to be signed and submitted by student with TMA work): I hereby declare that this submitted TMA work is a result of my own efforts and I have not plagiarized any other person's work. I have provided all references of information that I have used and quoted in my TMA work. Name of Student:……………………………….. Signature:…………………………………………... Date:…………………………………………………… 1 http://web.stanford.edu/class/cs193a/index.shtml AOU, Spring 2 2016, Course M299, TMA Questions 1 (50%) Assignment description The purpose of this question is to practice more advanced graphical layouts, as well as using more widgets/views in a graphical user interface. As with question 1, we'll suggest some ideas for programs you could write to practice layout. We will list several suggestions, but you only need to write one app to submit. If you have a different idea for a program you want to make that will still allow you to explore layout, please feel free to do something other than the suggestions provided. Suggestion: Write a basic game of tic-tac-toe, where two players take turns pressing buttons in a 3x3 grid to mark "X" or "O" characters on them respectively. If any player can place three of their letter in a row horizontally, vertically, or diagonally, that player wins the game. Setting up the buttons for the game is a good opportunity to practice using GridLayout. You'll probably want to set the buttons to have a large size so that they fill a large portion of the screen, as well as giving them a large font to make them easier to read and click. If you want a simpler implementation, you can write your code as though two human players were playing it on the same screen; the first tap is an X move, the second is an O move, and so on. If you want more challenge, you could have the computer play as the second player. A simple strategy would be to just randomly move on any open square, but a more complex computer player would try to "block" the human player if the human has any two-in-a-rows and is one move away from winning the game. Suggestion : Make Up Your Own If you don't like our suggested assignment ideas or prefer to do something unique of your own, please feel free to do so. Whether you do our suggestions or your own, we'd prefer to see an app that the following qualities: •! Your app should be set up as an Android Studio project, so it can easily be opened/run/graded by others. | |
|