Thread: My Tower :D

  1. #1
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683

    My Tower :D

    Hi all,
    I have created this tower of hanoi game using BGI graphics.. Try it and give me your feed back..

    The aim of the game is to transfer all the discs from the pole one to pole 3 using the pole 2 for swaping purpose.. The rule is you cannot place a larger disc on a smaller one..

    The interface of the game is simple.. just type in the pole numbers in the option from pole and to pole.. to quit the game type 0 in both the options...


    The minimum number of moves required in 15 if played correctly...


    Bye

    note:- you need to extract both the files to make it run

  2. #2
    cereal killer dP munky's Avatar
    Join Date
    Nov 2002
    Posts
    655
    shhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hh

    .....BOOOOM!!!!





    crash!

    game came up, game locked up, game shut down???
    guns dont kill people, abortion clinics kill people.

  3. #3
    Registered User TravisS's Avatar
    Join Date
    Jun 2002
    Posts
    536
    I won the game in 17 moves. Go me.

  4. #4
    Registered User FearOfTheDark's Avatar
    Join Date
    Jan 2003
    Posts
    31

    Rock on!

    It's nor beautifull, but it's beautifull! :-)

    Love to creat and play these kinds of clever little games!
    -We're living in a illusion!
    -Ok, if that's what you think!

  5. #5
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Thanx.. Keep it comming and with recomendations.. And 17 moves is a bit too much.. the best is 15 moves...

  6. #6
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Why isn't this in the game forum?
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  7. #7
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Originally posted by Magos
    Why isn't this in the game forum?

    because this is not related to game programming... I just posted it here as a puzzle...for people to solve..

  8. #8
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Yay! 15!
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  9. #9
    In The Light
    Join Date
    Oct 2001
    Posts
    598
    howdy,
    19 for my first try, can we see the source code??

    M.R.
    I don't like you very much. Please post a lot less.
    Cheez
    *and then*
    No, I know you were joking. My point still stands.

  10. #10
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    sure why not.. I have atached the source.. but be warned.. my coding style is realt bad..

  11. #11
    In The Light
    Join Date
    Oct 2001
    Posts
    598
    howdy,
    COOL thanks a lot vasanth. i'm still learning this stuff so i like to see how others do it.

    M.R.
    I don't like you very much. Please post a lot less.
    Cheez
    *and then*
    No, I know you were joking. My point still stands.

  12. #12
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Originally posted by XSquared
    Yay! 15!
    me too! must be a canadian thing

  13. #13
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704
    I suck, 23. Of course, I've never played before.


    Very well done.
    c++->visualc++->directx->opengl->c++;
    (it should be realized my posts are all in a light hearted manner. And should not be taken offense to.)

  14. #14
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Thanx guys

  15. #15
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Originally posted by Perspective
    me too! must be a canadian thing
    Yeah. Us Canadians are the only smart ones here.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tower of Hanoi
    By dmkanz07 in forum C Programming
    Replies: 13
    Last Post: 03-29-2007, 12:37 PM
  2. How to connect a tower to a laptop
    By caroundw5h in forum Networking/Device Communication
    Replies: 7
    Last Post: 10-07-2004, 01:55 PM
  3. towers of hanoi problem
    By aik_21 in forum C Programming
    Replies: 1
    Last Post: 10-02-2004, 01:34 PM
  4. Tower of Hanoi
    By carrja99 in forum C++ Programming
    Replies: 2
    Last Post: 02-09-2003, 12:15 PM
  5. Full ATX Tower Case And Motherboard
    By (TNT) in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-04-2002, 04:06 PM