Psuedo-Code
Psuedo-Code is a great way for the programmer to organize their thoughts while they are trying to construct the Algorithm 's of the program. An Algorithm is simply the way or step by step approach that the program goes about getting a job done. It is the method to get from the beginning to the end. When a programmer is tapping away it can be awesome to organize their thoughts first. Psuedo-Code is a great way to do that on the screen. The programmer can then write code or turn the Psuedo-Code directly into actual code that will hopefully run correctly
The scenario for the video...
We are going to build some Psuedo-Code for a video game.
In this scenario we are build some code for our local happy fat Italian plumber.
He is running around his 2d platforming word and jumps up and bonks his head on to a special block above him.
What is produced by the block is totally depending on his current condition in the game.
If he is Short when he bonks his head onto the clock, the block will produce a mushroom that makes him grow, If he is is already tall then and nothing else then the block produces an egg with that produces his favorite dinosaur side kick that enjoys licking everybody, if he is tall and already is riding his favorite dinosaur sidekick the block will produce a fireball flower, if he is tall and already has the fire ball power then the block will produce an extra life mushroom...
In this scenario we are build some code for our local happy fat Italian plumber.
He is running around his 2d platforming word and jumps up and bonks his head on to a special block above him.
What is produced by the block is totally depending on his current condition in the game.
If he is Short when he bonks his head onto the clock, the block will produce a mushroom that makes him grow, If he is is already tall then and nothing else then the block produces an egg with that produces his favorite dinosaur side kick that enjoys licking everybody, if he is tall and already is riding his favorite dinosaur sidekick the block will produce a fireball flower, if he is tall and already has the fire ball power then the block will produce an extra life mushroom...
Pre-Assignment Videos
The Assignment
We are going to build Psuedo-Code for a Video game.
In this game our character has hampered upon a local merchant in a village and is given seeds to grow. These seeds can produce many different things if grown in the correct environment.
The variables are as follows;
Does the character have a Red seed or Blue; If the character has a Red seed and it is planted in a hot environment (over 75 degrees) and in dry soil it will grow a weed, if the seed is in a hot environment but in wet soil it will grown Purple flower, if the seed is planted into a cool soil (less than 75 degrees) and the soil is dry it will grow a cactus, if the seed is planted in a cool environment with wet soil it will grow a yellow flower; if the seed is Blue and it is in a cool environment (60 degree or less) and the soil is wet it will grow a Purple flower, If the seed is is in a cool environment and the soil is dry it will grow a blue flower, If the soil is hot (80 degrees or more) and the soil is wet it will grow the Star Flower, If the seed is hot and the soil is dry it will grow a cactus with white blossums, If the seed is planted in a moderate environment (61-79 degrees) and the soil is wet it will grow a Gold flower, If the seed is planted in a moderate environment and the seed is dry it will become a weed.
In this game our character has hampered upon a local merchant in a village and is given seeds to grow. These seeds can produce many different things if grown in the correct environment.
The variables are as follows;
Does the character have a Red seed or Blue; If the character has a Red seed and it is planted in a hot environment (over 75 degrees) and in dry soil it will grow a weed, if the seed is in a hot environment but in wet soil it will grown Purple flower, if the seed is planted into a cool soil (less than 75 degrees) and the soil is dry it will grow a cactus, if the seed is planted in a cool environment with wet soil it will grow a yellow flower; if the seed is Blue and it is in a cool environment (60 degree or less) and the soil is wet it will grow a Purple flower, If the seed is is in a cool environment and the soil is dry it will grow a blue flower, If the soil is hot (80 degrees or more) and the soil is wet it will grow the Star Flower, If the seed is hot and the soil is dry it will grow a cactus with white blossums, If the seed is planted in a moderate environment (61-79 degrees) and the soil is wet it will grow a Gold flower, If the seed is planted in a moderate environment and the seed is dry it will become a weed.
Tarea en español
La Tarea
Vamos a construir pseudocódigo para un videojuego
En este juego, nuestro personaje se ha topado con un mercader local en un pueblo y le dan semillas para cultivar. Estas semillas pueden producir muchas cosas diferentes si se cultivan en el ambiente correcto. Las variables son las siguientes: ¿El personaje tiene una semilla roja o azul? Si el personaje tiene una semilla roja y se planta en un ambiente caluroso (más de 75 grados) y en suelo seco, crecerá una mala hierba; si la semilla está en un ambiente caluroso pero en suelo húmedo, crecerá una flor morada; si la semilla se planta en suelo fresco (menos de 75 grados) y el suelo está seco, crecerá un cactus; si la semilla se planta en un ambiente fresco con suelo húmedo, crecerá una flor amarilla. Si la semilla es azul y está en un ambiente fresco (60 grados o menos) y el suelo está húmedo, crecerá una flor morada; si la semilla está en un ambiente fresco y el suelo está seco, crecerá una flor azul; si el suelo es caliente (80 grados o más) y está húmedo, crecerá la Flor Estrella.Si la semilla está caliente y el suelo está seco, crecerá un cactus con flores blancas. Si la semilla se planta en un ambiente moderado (16-26 grados) y el suelo está húmedo, crecerá una flor dorada. Si la semilla se planta en un ambiente moderado y la semilla está seca, se convertirá en una mala hierba.