Just one sec...
Hey there! Sign in to join this conversationNew here? Join for free

Hangman program BBC basic

Announcements Posted on
Results day: make sure you know what to expect before you get your grades. Here's how to be ready. 22-07-2016
    • Thread Starter
    Offline

    ReputationRep:
    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
    Offline

    ReputationRep:
    Edit: I may have been a bit hasty. See posts below
    Offline

    ReputationRep:
    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?
    Offline

    ReputationRep:
    (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
    Offline

    ReputationRep:
    (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.
    • Thread Starter
    Offline

    ReputationRep:
    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
    Offline

    ReputationRep:
    Out of interest, how did you test that? Some BBC Micro emulator or somethin'?
    Offline

    ReputationRep:
    (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.
    • Thread Starter
    Offline

    ReputationRep:
    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
    Offline

    ReputationRep:
    (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.
    • Thread Starter
    Offline

    ReputationRep:
    (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
    • Thread Starter
    Offline

    ReputationRep:
    (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

Reply

Submit reply

Register

Thanks for posting! You just need to create an account in order to submit the post
  1. this can't be left blank
    that username has been taken, please choose another Forgotten your password?
  2. this can't be left blank
    this email is already registered. Forgotten your password?
  3. this can't be left blank

    6 characters or longer with both numbers and letters is safer

  4. this can't be left empty
    your full birthday is required
  1. Oops, you need to agree to our Ts&Cs to register
  2. Slide to join now Processing…

Updated: May 7, 2012
TSR Support Team

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

Poll
Are you currently in a relationship?
Useful resources

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22

Registered Office: International House, Queens Road, Brighton, BN1 3XE

Quick reply
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.