Hangman program BBC basic

From C++ to PHP, debugging to webhosting; help and discussion about writing your latest program to running your website. NOT for help when your PC won't work.

Announcements Posted on
TSR launches Learn Together! - Our new subscription to help improve your learning 16-05-2013
Sign in to Reply
  1. ogkush's Avatar
    • New Member
    • Posts: 13
    Hangman program BBC basic
    A program made in BBC Basic for a hangman program that has three lives and lets the user input words at the end of the program
    Last edited by ogkush; 08-05-2012 at 17:55.
  2. alex-hs's Avatar
    • Overlord in Training
    • Location: Nottingham
    • Posts: 3,088
    Re: Hangman program BBC basic
    Edit: I may have been a bit hasty. See posts below
    Last edited by alex-hs; 07-05-2012 at 10:50.
  3. RyanT's Avatar
    • TSR Demigod
    • Location: Viktoria
    • Posts: 6,072
    Re: Hangman program BBC basic
    That's interesting, I'll see if I can make one in c++

    (Original post by alex-hs)
    Brilliant. What do you want, a medal?
    What's with the attitude?
  4. davros's Avatar
    • Overlord in Training
    • Location: Skaro
    Re: Hangman program BBC basic
    (Original post by RyanT)
    What's with the attitude?
    Probably just wondering why on earth the OP would just dump a load of random code in this forum - and by the look of it, code that was written about 30 years ago
  5. alex-hs's Avatar
    • Overlord in Training
    • Location: Nottingham
    • Posts: 3,088
    Re: Hangman program BBC basic
    (Original post by davros)
    Probably just wondering why on earth the OP would just dump a load of random code in this forum - and by the look of it, code that was written about 30 years ago
    Pretty much this.

    User's first post; no accompanying text... smells like some weird spambot to me.
  6. ogkush's Avatar
    • New Member
    • Posts: 13
    Re: Hangman program BBC basic
    Would like to just clear this up, made this program and wanted my friend to see it and he asked me to put it on this site. Sorry for any inconvenience
  7. CJKay's Avatar
    • Overlord in Training
    • Location: England
    • Posts: 2,394
    Re: Hangman program BBC basic
    Out of interest, how did you test that? Some BBC Micro emulator or somethin'?
  8. mfaxford's Avatar
    • Overlord in Training
    • Location: Southampton
    • Posts: 2,113
    Re: Hangman program BBC basic
    (Original post by ogkush)
    Would like to just clear this up, made this program and wanted my friend to see it and he asked me to put it on this site. Sorry for any inconvenience
    It might have been good to put a comment with the code in your first post.

    There are also [ CODE ] and [ /CODE ] tags that can be used around the code which can help formatting.

    And wow, It's been a while since I've seen BBC Basic. Brilliant machines in the day, And still amongst the fastest booting machines around. I still have a BBC master around. I'm not sure how many of the game disks I've collected still work though.

    As for the code. There are probably a few things you could do to improve it. Maybe read the words from a disk file - that way it would be easy to add words. Things like the getting word lengths could be done in a for loop. Or just get the length for the chosen word. You might also be able to make use of subroutines for some of the tasks as well instead of all the goto's.
  9. ogkush's Avatar
    • New Member
    • Posts: 13
    Re: Hangman program BBC basic
    The version is used is here: http://www.bbcbasic.co.uk/bbcwin/download.html
    Its my first real program in BBC Basic so its still not as efficient as I would like, I'm still working on it
  10. alex-hs's Avatar
    • Overlord in Training
    • Location: Nottingham
    • Posts: 3,088
    Re: Hangman program BBC basic
    (Original post by ogkush)
    Would like to just clear this up, made this program and wanted my friend to see it and he asked me to put it on this site. Sorry for any inconvenience
    Ah, ok, apologies for being so blunt then. Though saying something to that effect in the original post would probably have been helpful

    I'd recommend pastebin.com if you just want to share code.
  11. ogkush's Avatar
    • New Member
    • Posts: 13
    Re: Hangman program BBC basic
    (Original post by alex-hs)
    Ah, ok, apologies for being so blunt then. Though saying something to that effect in the original post would probably have been helpful

    I'd recommend pastebin.com if you just want to share code.
    No offence taken, will probably use Pastebin next time, some of the feedback on here has been helpful though so its not all bad
  12. ogkush's Avatar
    • New Member
    • Posts: 13
    Re: Hangman program BBC basic
    (Original post by mfaxford)
    It might have been good to put a comment with the code in your first post.

    There are also [ CODE ] and [ /CODE ] tags that can be used around the code which can help formatting.

    And wow, It's been a while since I've seen BBC Basic. Brilliant machines in the day, And still amongst the fastest booting machines around. I still have a BBC master around. I'm not sure how many of the game disks I've collected still work though.

    As for the code. There are probably a few things you could do to improve it. Maybe read the words from a disk file - that way it would be easy to add words. Things like the getting word lengths could be done in a for loop. Or just get the length for the chosen word. You might also be able to make use of subroutines for some of the tasks as well instead of all the goto's.
    This is very helpful advice, Thanks!
    I'll try and incorporate this
Sign in to Reply
Share this discussion:  
Useful resources
Article updates
Moderators

We have a brilliant team of more than 60 volunteers looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

Reputation gems:
The Reputation gems seen here indicate how well reputed the user is, red gem indicate negative reputation and green indicates a good rep.
Post rating score:
These scores show if a post has been positively or negatively rated by our members.