Write the game using writing functions, Computer Engineering

The year is 2199. For many generations, the robotic Cyleth have faithfully served humanity. However, under the direction of the computerized superintelligence Skyweb, they have turned on their masters. You are one of the last surviving humans, and your goal is to take out as many robots as you can before they finally get you. The robots move as fast as you do. Every time you take a step, all of the robots around you will take a step in your direction. If a robot catches you, you're done for.

The Cyleth have numbers on their side, but you've got a few advantages to help you survive. First and foremost, the robots are not very smart. The robots move directly towards you, regardless of what might be in their way. If two robots collide with each other, they will destroy each other and leave a smoldering pile of wreckage. This wreckage will also destroy any other robots that walk into it.

You also have a personal teleportation device. It's only a prototype, so it will transport you to a random location. It is guaranteed not to teleport directly into a robot or into wreckage, but it might put you next to robot. In its ordinary mode of operation, the using the teleporter will take the same amount of time as taking a step, i.e. you'll teleport, then the robots will all move. However, you can do a limited number of fast teleports, so that the robots don't have a chance to move before your next move. This makes teleportation much safer.

The last trick up your sleeve is your trusty sonic screwdriver. It just so happens that the sonic screwdriver emits RF interference at precisely the correct frequency to destroy any robots standing next to you. The sonic screwdriver is very fast acting, so the robots don't get to make a move after you use it. Your screwdriver has a limited power, so you can't use it all the time, but it can get you out of a tight spot.

Your status panel/control panel looks like this:

32_Write the game using writing functions.png

Clicking any of the nine buttons on the left move you one box in the specified direction, with "pass" making you stand still while the robots take a step. The "Teleport" button uses your teleporter in slow mode. The "Fast Teleport" button uses the teleporter in fast mode, but consumes one fast teleport. The "Sonic Screwdriver" button consumes a charge of the sonic screwdriver to destroy nearby robots.

The game begins on level 1, and you start with 3 sonic screwdriver charges and 5 fast teleports. When you destroy all the robots in a level, you move on to the next one, which earns you one extra sonic screwdriver charge, and three extra fast teleports. Level 1 has 5 robots, level 2 has 10, level 3 has 15, and in general, level n has 5n robots. The robots are initially at random positions.

The pictures below may help to clarify the rules of the game:

2465_Write the game using writing functions1.png

Posted Date: 2/22/2013 2:43:44 AM | Location : United States







Related Discussions:- Write the game using writing functions, Assignment Help, Ask Question on Write the game using writing functions, Get Answer, Expert's Help, Write the game using writing functions Discussions

Write discussion on Write the game using writing functions
Your posts are moderated
Related Questions
The six several application of stack in computer application is: 1.  Conversion of infix to postfix notation and vice versa. 2.  Evaluation of arithmetic expression. 3.

Virtual Memory is a way of extending a computer's memory by using a disk file to replicate add'l memory space. The OS remain track of these add'l memory addresses on the hard disk

Define Micro operation. The operations implemented on data stored in the registers are called Micro operation. A microperation is an elementary operation performed on the infor

Define speculative execution. Speculative execution means that instructions are implemented before the processor is particular that they are in the correct execution sequence.

What is a table pool? A table pool (or pool) is used to join several logical tables in the ABAP/4 Dictionary.  The definition of a pool having of at least two key fields and a

Processing elements (PEs)  : Every processing element consists of ALU, local memory and its registers  for storage of distributed data. This PEs has been interconnected via an inte

How can I open an MS Access database that has been converted to a current version? Ans) MS Access is not backwards compatible. A workaround to share tables among different versi

1. The Goal: Do you think that this is an operational methodology or a philosophy? Please explain. 2. How to apply Constraint Management to a Production Facility? How about to a

TARGET = "_self" "_self" puts the new document in the same window and frame as current document. "_self" works the same as if you hadn't used TARGET at all.

What are the different tones used in strowger telephony? Explain with the help of waveforms and the timings. Dial Tone: it is used to indicate that the exchange is ready to r