Given the location of the tiles, calculate how the tiles and score will change for each move. Create the following function: AnalyzeScreenshot - Summary: Given the name of image, find which tiles are currently on the board - Inputs: filename (string) - Outputs: board (424 matrix) - Syntax: function board] = AnalyzeScreenshot(filename) - Example: board = AnalyzeScreenshot(filename) Part 2: Game Play The next step is develop code to move the tiles in either the up, down, left, or right direction. If a tile is empty, use 0 for that location otherwise use the tile's numeric value. You may not use any pre-built code to automatically solve the problem - If you are unsure if a new command is allowed, please ask! Part 1: Image Analysis Given various screenshots the 2048 game, identify which tiles are currently on the board! Represent the game board as a 2D matrix of numeric values each entry in the matrix corresponds to a tile in the game.You are mostly free to implement the solution in any way you like but there are a few rules: 1ĬOP2271 MATLAB Final Project: 2048 All code must be well commented Comments are the best way to explain your thought process to help with grading Create the required functions – Forgetting this step will result in point deductions The project is divided into 3 parts: Image Analysis (required), Game Play (required), and Extra Credit (optional). When two tiles with the same number touch, they merge into one! (b) Figure 1: Various stages of 2048 game. When two tiles with the same number touch, they merge into onel HOW TO PLAY: Use your arrow keys to move the tiles. Display Yes if the number is a prime number and No if the number is not a prime number. Write a program to determine if the given positive integer is a prime number or not. If done correctly, tiles can be combined to reach the number 2048! Try the following link to practice playing: 0 2048 3184 25964 2048 25964 Join the numbers and get to the 2048 titel New Game Join the numbers and get to the 2048 tile! New Game 2 16 8 2 2048 4 2 2 HOW TO PLAY: Use your arrow keys to move the tiles. (15 pts) Prime numbers are the numbers which are divisible only by 1 and the number itself. The game consists of a 4x4 grid of tiles with values from 2 - 2048 by powers of 2! To play the game, slide tiles in either the left, right, up, or down direction to combine tiles of the same number. UF students are bound by The Honor Pledge which states, We, the members of the University of Florida community, pledge to hold ourselves and our peers to the highest standards of honor and integrity by abiding by the Honor Code. Introduction This project builds on the concepts learned thus far to solve the 2048 puzzle game. Please remember that you can do this step last after getting all of your code working first! (The code that will use your functions will be provided to you). COP2271 MATLAB Final Project: 2048 Final Project: 2048 Key programming concepts: Combination of all class topics Approximate lines of code: 100 (+/-60 lines!) (does not include comments or white space) Using Functions: One focus of this project is using functions, which is covered in Module-14.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |