Blog de Berto

Práctica Febrero EDI 2006/2007

por el día Sep.18, 2007, bajo Informática

Gollum :D

Bueno, aunque ya casi pasadas las vacaciones, no prometo, pero sí­ que espero poder actualizar más el blog, además después de que he estado unos dos dí­as totalmente a full para actualizar el wordpress a la última versión, trapasar la base de datos de mi antiguo host al nuevo, etc.

Pues primero voy a postear un poquito de programación. Este año en EDI ( Estructura de Datos y de la Informacón) la práctica obligatoria que nos mandaron hacer para Febrero consistí­a en programar en freepascal un juego sobre Frodo.El juego consistí­a en lo siguiente :

Tenemos un tablero, de como máximo 500×500 ( 500 filas x 500 columnas ) en el cual se moverí­a nuestro amigo Frodo. En cada casilla debí­amos almacenar dos datos, el movimiento que tendrí­a que hacer Frodo y el objeto que hay. Por ejemplo si Frodo encontraba un pan en la casilla, sumarí­a 2 puntos de vida, y si en la casilla pone que se dirija hacia el norte, estando en la casilla [2,2] irí­a a la casilla [2,1]. Además de esto, debemos controlar la vida de Frodo, el estado de Frodo ( si está mareado o normal ) y alguna cosilla más que viene en la espcificación, aquí­ no me quiero enrollar mucho.

En definitiva, el usuario finalmente lo que hace es, ejecuta el programa y le pide la extensión del tablero, la vida inicial de Frodo, y le pide introducir los datos que debe haber en cada casilla, objeto y dirección, y una vez introducido todo, el programa muestra finalmente si Frodo ha muerto (ya sea a manos de un orco, o porque se le acabó la vida) o si ha cogido el anillo, y todo esto lo almacena en un log.

La especificación la podéis descargar de aquí­ y el programa ya hecho de aquí­.

En el siguiente post sobre programación, subiré mi práctica de junio, que me pareció bastante más interesante que esta :).

20 Comentarios para esta entrada:
  1. квартира в новостройке

    Thanx for the effort, keep up the good work Great work, I am going to start a small Blog Engine course work using your site I hope you enjoy blogging with the popular BlogEngine.net.Thethoughts you express are really awesome. Hope you will right some more posts.

  2. speakerdeck.com

    I am in fact thankful to the owner of this web page who has shared this enormous paragraph at at this place.

  3. site here

    Hi this is somewhat of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with
    HTML. I’m starting a blog soon but have no coding experience so I wanted to get advice from someone with
    experience. Any help would be enormously appreciated!

  4. private methods in javascript

    this is very informative and intersting for those who are interested in blogging field.

  5. Discover More

    I’m impressed, I must say. Rarely do I encounter a blog that’s
    both educative and amusing, and let me tell you, you have hit the nail on the head.
    The issue is something not enough people are speaking intelligently about.
    I am very happy that I found this in my search
    for something regarding this.

  6. Website

    There is certainly a lot to find out about this issue. I like all
    the points you’ve made.

  7. other

    If you want to get a good deal from this paragraph then you have to apply such techniques to your won website.

  8. Paid SEO Website

    Thanks for sharing your thoughts about Worst Link. Regards

  9. find

    Hi to every one, it’s really a pleasant for me to go to see this site, it consists
    of valuable Information.

  10. view it now

    Thanks for a marvelous posting! I really enjoyed reading it, you may be a
    great author.I will always bookmark your blog and may come back very soon.
    I want to encourage you continue your great work, have a nice evening!

  11. hersheys cocoa powder

    hi!,I really like your writing very so much! proportion we
    communicate extra approximately your article on AOL?
    I need an expert on this space to solve my problem. May be
    that’s you! Having a look forward to see you.

  12. view it now

    Right here is the perfect website for everyone who hopes to find out about this topic.
    You realize so much its almost hard to argue with you (not that I
    really will need to…HaHa). You certainly
    put a fresh spin on a topic which has been written about for decades.

    Great stuff, just wonderful!

  13. miki saWaguchi

    This post will help the internet visitors for creating new blog or even a blog from start to end.

  14. 베트남 카지노

    Very shortly this web page will be famous amid all blogging and site-building users, due to it’s pleasant articles or
    reviews

  15. Hiban Podcast

    One thing I have actually noticed is always that there are plenty of common myths regarding the banking companies intentions when talking about foreclosures. One fantasy in particular would be the fact the bank wishes to have your house. The lending company wants your hard earned cash, not your property. They want the bucks they gave you having interest. Preventing the bank will draw some sort of foreclosed final result. Thanks for your post.

  16. fincasbonavista.com

    I do not even know how I ended up right here, however I believed this post
    was once great. I don’t know who you are however certainly you’re going to a famous blogger
    if you aren’t already 😉 Cheers!

  17. Deloris Ped

    Greetings! Very helpfulVery useful advice within thisin this particular articlepost! It is theIt’s the little changes that makewhich will makethat producethat will make the biggestthe largestthe greatestthe most importantthe most significant changes. Thanks a lotThanksMany thanks for sharing!

  18. chiropractor peoria il

    Thank you for the post that you’ve posted on your website. I just wanted to stop by and reply back to say hello and to offer our family chiropractic services if anyone in United States need help fixing their injury inflicted pain.

  19. harga mobil mixer beton

    Im actually investing in a gentle lead, i want to try that before a prong :
    )

Leave a Reply

Buscas algo?

Usa el formulario de búsqueda:

No encuentras lo que buscas? Deja un comentario en un post o contacta conmigo vía email.