1 / 3

Control 3

Control 3. Crear un juego que cumpla las siguientes reglas. Deben jugar dos “ Players ”. El juego se puede jugar N (1…Varias) veces. Cada jugador escribe un número entre 0 y 9. El jugador con el número mayor gana un punto. El jugador con el número menor no gana punto.

moanna
Télécharger la présentation

Control 3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Control 3 • Crear un juego que cumpla las siguientes reglas. • Deben jugar dos “Players”. • El juego se puede jugar N (1…Varias) veces. • Cada jugador escribe un número entre 0 y 9. • El jugador con el número mayor gana un punto. • El jugador con el número menor no gana punto. • Si ambos jugadores ponen el mismo número, los dos pierden un punto. • Al finalizar los N juegos, ver los puntajes de los jugadores.

  2. Tarea sobre control 3 • Además de las reglas anteriores incluir: • Cada jugador tiene N*5 Vidas. • Cada vez que un jugador usa un número entre 0 y 9 se descuenta esa cantidad de sus vidas. • Ningún jugador puede jugar un número mayor a sus vidas, si lo hace, se vuelve a preguntar. ** • Cada jugador puede ver cuantas vidas le quedan antes de elegir un número. • El jugador con más puntaje al finalizar los juegos, gana.

  3. Tips • Función que transforma una variable de tipo “Integer” a una cadena de caractéres “String”. • CStr ( variable )

More Related