Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Beepers and Looping

  • 16-10-2004 05:35PM
    #1
    Closed Accounts Posts: 175 ✭✭


    Hi all, im currently doing some expermenting with my new found java skills!yippie! anyway i am just wondering if its possible to change the colour of the beeper in robot word ive tried and few things to get it to do this but i have had no luck...any ideas?

    also is it possbile to get my robot world to automatically start going through its commands again and again as in loop the program?

    thanks in advance :D


Comments

  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    :rolleyes: Care to tell us what you've tried? We might be able to help you solve a mistake you've made...
    is it possible

    Most likely, again what have you tried to get it to do this?

    EDIT: It also helps if you tell us what you might be talking about. Java has nothing like this by default, so I assume its this you're refering to?


  • Registered Users, Registered Users 2 Posts: 4,287 ✭✭✭NotMe


    I assume you're doing CA in DCU. You'd probably be better off using the CA forums because most people here won't have a clue what Robot World is.

    To loop the program just put all of the commands inside a while loop eg


    // create world/robots/beepers here
    while(true)
    {
    // movement/etc. commands here

    }


  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    Ah, so posting homework questions... tut, tut, tut...


  • Closed Accounts Posts: 175 ✭✭napalm@night


    lol thankfully it aint homework this time more of a nerdy intrest(at least thats my story and im stickn to it;) )thanks for the help :D


Advertisement