Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: P-Robots

  1. #1
    Komet
    Guest

    P-Robots

    Hi folks, thanks to the fabulous FPC I have brought back to life the old
    programming game P-Robots, which consists in a battle among some robots whose behaviour is written in Pascal.
    I am boring to play by myself with it, so does anybody here would spent a bit of your brain in this way? I know
    there's no of trace of haunting graphic but sometimes it may be unnecessary... The stuff can be downloaded at
    http://digilander.libero.it/borsa77/probots.html
    to click on the link <pacchetto P-Robots> and even the site is in italian
    documentation is in english.
    Anyway all the comments about the code will be appreciate.

  2. #2

    P-Robots

    You mean it will work under FPC?I will give it a try and report back!
    BTW why dont translate the site?

  3. #3
    Komet
    Guest

    P-Robots

    You mean it will work under FPC?
    Yes, either for Dos and Linux.
    I will give it a try and report back!
    Right, I provide a Ballantine's bottle for a bug Look at whatsnew.txt in
    doc directory for a list of improvements.
    BTW why dont translate the site?
    Because it's only an introduction for italian users and therefore it says nothing that documentation makes.

  4. #4

    P-Robots

    Quote Originally Posted by Komet
    You mean it will work under FPC?
    Yes, either for Dos and Linux.
    FreeBSD works too, will try linux/ppc tonight

  5. #5
    Komet
    Guest

    P-Robots

    FreeBSD works too, will try linux/ppc tonight
    Actually I am curious about others ambients, I think you need to change in the code the precompiler directives IF LINUX in IF UNIX.

  6. #6

    P-Robots

    Quote Originally Posted by Komet
    FreeBSD works too, will try linux/ppc tonight
    Actually I am curious about others ambients, I think you need to change in the code the precompiler directives IF LINUX in IF UNIX.
    Well, both those two occurances seem flawed anyway.

    The first:

    In this day and age, any textfile routine should accept all 3 forms of lineendings, on any platform. If the proper normal Pascal constructs (readln) had been used, this would have worked.

    The second: There are even two mistakes in the second ifdef linux:

    - {$ifdef linux or stdtxt} is equivalent to ifdef linux (everything after the second space is ignored)

    - linedrawings are not dependant on OS, but on terminal. This is not as easily fixable though.

  7. #7
    Komet
    Guest

    P-Robots

    In this day and age, any textfile routine should accept all 3 forms of lineendings, on any platform. If the proper normal Pascal constructs (readln) had been used, this would have worked.
    The original routine also had a line buffer and works with one character at once, so the readln was unnecessary. Futhermore the modified routine takes care of the 3 forms, but the singles #10 and #13 without distintion.
    There are even two mistakes in the second ifdef linux:
    - {$ifdef linux or stdtxt} is equivalent to ifdef linux (everything after the second space is ignored)
    Oh! You have gained whisky.
    - linedrawings are not dependant on OS, but on terminal. This is not as easily fixable though
    As bugged terminal is in Linux.. I love to shot towards fly with a big gun. :evil:

  8. #8
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    P-Robots

    Hi Komet, I must say nice project you have brewing here, any luckof some screenshots? Maybe you can post them in the Projects forum to get more attention?

    Also, why not register as a member of PGD? All you require to do it activate via email and it's done.


    Welcome to PGD and I hope to see you visit the site often.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  9. #9

    P-Robots

    Hi Komet, I must say nice project you have brewing here, any luckof some screenshots?
    Thank you for trumpets. I do not have a grabber and for such PRob text style is not worthwhile.
    Also, why not register as a member of PGD? All you require to do it activate via email and it's done.
    Thank you for red carpet. I am here

  10. #10

    P-Robots

    Quote Originally Posted by Komet
    Thank you for red carpet. I am here
    Sssssh, you're not supposed to say that out loud!
    Before we know it, all the new people want a red carpet. Making it all dirty with their muddy shoes, wearing it out they do. Can't have that! Oh no, it has to stay nice and clean. Yes, yes clean it must stay... :fuzzy: ahh my head,... I think I need to lay down for a while.... get some red..eh rest.... Yes I think that's best for now...

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •