text-based game

Page 1 of 1

8 Replies - 5677 Views - Last Post: 21 April 2010 - 02:24 PM Rate Topic: -----

#1 vi0rulez  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 14-February 07

text-based game

Posted 14 February 2007 - 02:58 PM

Could anyone please provide me
the url or directly the source code of any simple java text-based game?
thanks
Is This A Good Question/Topic? 0
  • +

Replies To: text-based game

#2 William_Wilson  Icon User is offline

  • lost in compilation
  • member icon

Reputation: 205
  • View blog
  • Posts: 4,807
  • Joined: 23-December 05

Re: text-based game

Posted 14 February 2007 - 03:02 PM

that is very vague to say the least, try being more specific, also this is a site for programming help, not direct solutions, to teach you to code better.
Was This Post Helpful? 0
  • +
  • -

#3 vi0rulez  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 14-February 07

Re: text-based game

Posted 14 February 2007 - 03:09 PM

im not asking for a solution, my request might sounded a bit general, but general is also the answer im seeking; im just trying to understand how text-based java games work thus the request for ANY game's source code.
cheers
Was This Post Helpful? 0
  • +
  • -

#4 William_Wilson  Icon User is offline

  • lost in compilation
  • member icon

Reputation: 205
  • View blog
  • Posts: 4,807
  • Joined: 23-December 05

Re: text-based game

Posted 15 February 2007 - 06:11 AM

a good text based game doesn't really exist, but i see what your after.
Basically it's a 4 step process:
printf - to print some data for the user to read / make decisions on
scanner - get data / answer in from user
algorithm - determine what to do
printf - display answer

and repeat, lol
It is a difficult task to find java games which are text based, they are not a very popular thing. I have a midterm in a few hours, but i'll go through my hoards of saved code and see if i can find something you can use, even if it's not exactly a game :)
Was This Post Helpful? 0
  • +
  • -

#5 vi0rulez  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 14-February 07

Re: text-based game

Posted 15 February 2007 - 02:31 PM

heh good luck in ur exam, i'd be grateful for the code if u have any
Was This Post Helpful? 0
  • +
  • -

#6 DillonSalsman  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 13
  • View blog
  • Posts: 144
  • Joined: 30-October 07

Re: text-based game

Posted 08 April 2008 - 09:21 AM

So while I doubt the original poster will ever look at this.
I recently got into making my own text based game.
I found this and it was quite helpful.
http://www.javacoffe...ture/index.html
Gave me tons of ideas : )
But then again so did Zork....
http://www.infocom-i.../downloads.html

Not one programmer should have never played Zork.
Even if you were born 10 years after its creation, it is still amazing : )
Was This Post Helpful? 0
  • +
  • -

#7 th3 mant1s  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 36
  • Joined: 05-March 08

Re: text-based game

Posted 08 April 2008 - 04:55 PM

View Postvi0rulez, on 14 Feb, 2007 - 02:58 PM, said:

Could anyone please provide me
the url or directly the source code of any simple java text-based game?
thanks



What kind of texted based game are you thinking of?

mant1s
Was This Post Helpful? 0
  • +
  • -

#8 Guest_javanewbie*


Reputation:

Re: text-based game

Posted 21 April 2010 - 06:54 AM

View Postth3 mant1s, on 08 April 2008 - 03:55 PM, said:

View Postvi0rulez, on 14 Feb, 2007 - 02:58 PM, said:

Could anyone please provide me
the url or directly the source code of any simple java text-based game?
thanks



What kind of texted based game are you thinking of?

mant1s


:helpsmilie:
i have the same problem. i need a text-based checkers game in java. but if you have any other text-based java game, that would be of great help.
thanks.. :chinese:
Was This Post Helpful? 0

#9 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2870
  • View blog
  • Posts: 11,021
  • Joined: 15-July 08

Re: text-based game

Posted 21 April 2010 - 02:24 PM

We don't give out code here. If you need help with code YOU wrote we'd be more than happy to help you if you start your own topic, not necroing old ones.

Closed.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1