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 :).

30 Comentarios para esta entrada:
  1. forex forum

    Amazing blog! Do you have any suggestions for aspiring writers?
    I’m planning to start my own blog soon but I’m a
    little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so
    many choices out there that I’m completely overwhelmed ..
    Any recommendations? Thanks a lot!

  2. surgical masks

    Hello friends, nice post and good arguments
    commented here, I am genuinely enjoying by these.


    I consider something genuinely special in this website.

  4. Castlevania Season 1 dvd

    There is definately a great deal to know about this subject.
    I love all of the points you made.

  5. sex

    First of all I want to say awesome blog! I had a quick question in which I’d like to ask
    if you do not mind. I was interested to find out how you center yourself and
    clear your mind before writing. I have had a tough time clearing my
    mind in getting my thoughts out there. I truly do take pleasure in writing however
    it just seems like the first 10 to 15 minutes are wasted just trying
    to figure out how to begin. Any recommendations or
    hints? Thanks!

  6. tms specialist anaheim ca

    Had to read this 10 times to understand lol! Very complex but worth it!


    Can I simply say what a relief to uncover an individual who really
    knows what they are talking about on the internet. You actually understand how to bring an issue to
    light and make it important. More and more people need to check this out and understand this
    side of the story. I was surprised that you are not more popular given that you most certainly have the gift.

  8. Hellen Habeeb

    This articlepostpiece of writingparagraph will helpassist the internet userspeopleviewersvisitors for creatingbuilding upsetting up new blogweblogwebpagewebsiteweb site or even a blogweblog from start to end.

  9. jeniuspoker

    This post will assist the internet users for building up new blog or even a weblog from start to end.

  10. 온라인바카라사이트추천

    If you want to grow your familiarity just keep visiting this site
    and be updated with the hottest information posted here.


    you are in reality a good webmaster. The website loading
    speed is amazing. It sort of feels that you are doing any distinctive trick.

    Moreover, The contents are masterwork. you’ve done a wonderful process in this topic!

  12. teen porn

    If you want to obtain a good deal from this article then you have to apply these strategies to your won blog.


    นอกจากที่เราได้คุยกันเกี่ยวกับ mutator ไปก่อนหน้านี้แล้ว, Eloquent model
    ได้จัด 2 mutators สุดพิเศษมาให้ ซึ่งอนุญาตให้เราแก้ให้ข้อมูลได้.

  14. Augustine Srsen

    HelloGreetingsHey thereHeyGood dayHowdyHi thereHello thereHi! This is my first visit to your blog! We are a groupcollectionteam of volunteers and starting a new initiativeproject in a community in the same niche. Your blog provided us valuableusefulbeneficial information to work on. You have done a marvellousoutstandingextraordinarywonderful job!

  15. betting33

    London police haven’t used live facial recognition technology since the city was locked down in March, but that could change as restrictions on movement are eased.

  16. syy577

    “At present, we have not announced any specific plans for future deployments but will do so based on the need to deploy aimed at tackling violence and other serious offenses,” London’s Metropolitan Police said in a statement

  17. dok222

    “If anything, I see a greater demand,” Hare said, pointing to a post-pandemic world where both governments and citizens agree to higher levels of surveillance as a means of protecting public health.

  18. ccclub700

    a number of cases in late May and early June could be linked to “an infection control breach in the hotel quarantine program.”

  19. hgame82

    31 cases have been linked to Melbourne’s Stamford Plaza hotel, while other infections have been linked to the Rydges on Swanston hotel, which is also in the state capital.

  20. livre histoire personnalisé

    I believe what you wrote made a great deal
    of sense. But, think on this, suppose you wrote a catchier post title?
    I mean, I don’t wish to tell you how to run your website, but suppose you added something that grabbed a person’s attention? I mean Práctica Febrero EDI 2006/2007
    – Blog de Berto is kinda boring. You should glance at Yahoo’s front page and
    see how they create article titles to get viewers
    to open the links. You might add a related video or a related picture or two to get people interested about what you’ve written.
    In my opinion, it could make your posts a little bit more interesting.

  21. dongbachanoi

    i appreciate it, thanks

  22. home remedies

    Thanks for sharing your thoughts on alternative medicine everglades university.


  23. software de citas medicas en linea

    What’s up to all, the contents present at this site are really remarkable for
    people experience, well, keep up the good work fellows.

  24. thyroid-help

    This article is genuinely a pleasant one it assists new internet users, who are wishing for blogging.

  25. Togel Hongkong

    Greetings! Quick question that’s completely off topic.
    Do you know how to make your site mobile friendly? My weblog looks
    weird when browsing from my iphone4. I’m trying to find a template or plugin that might be
    able to correct this problem. If you have any suggestions,
    please share. With thanks!

  26. Anya

    This piece of writing will assist the internet people for building up new website or
    even a weblog from start to end.

  27. Sheila Jamon

    Hello, I want to subscribe for this website to obtain hottest updates, so where can i do it please help.|

  28. politique nouvelles

    I must thank you for the efforts you have put in writing
    this blog. I’m hoping to view the same high-grade content by
    you later on as well. In truth, your creative
    writing abilities has inspired me to get my own, personal website now 😉

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.