Author Topic: Word search and choose  (Read 6145 times)

0 Members and 1 Guest are viewing this topic.

Offline bikemadness

  • Amiga 1200
  • ****
  • Posts: 322
  • Karma: 25
  • Hard players don't go home.
    • View Profile
Word search and choose
« on: January 08, 2009 »
At times, I wish I was more proficient at YaBasic.
I have ideas I can't translate into the simplest of languages.
But the relief is better when I do get a problem out.
It took me ages to get this:

Code: [Select]
restore wrd
read maxnum
dim wrd$(maxnum)
for a=1 to maxnum
read wrd$(a)
next a
row=1
open window 640,512
repeat
setdrawbuf vm
vm=1-vm
setdispbuf vm
clear window
for a=1 to maxnum
for b=1 to len(wrd$(a))
if mid$(wrd$(a),b-1,a)>=mid$(wrd$(a),b,1) goto next_word
next b
row=row+1
if row>33 then
col=col+50
row=1
endif
text col,row*15,wrd$(a)
label next_word
next a
until (1=0)

label wrd
data rem enter lots of words here

This is designed to search and list the words where the letters are in alphabetical order and used once.
It's the sort of thing I think about and write programs for.
I needed a short list of words for another program I'm writing.
I thought, what bunch of words could I use?

Oh, By the way, Happy new year!
Have a Yahappy day.
I don't know what is wrong with the world - but I know how to fix it.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17422
  • Karma: 499
  • evil/good
    • View Profile
    • My Homepage
Re: Word search and choose
« Reply #1 on: January 08, 2009 »
Had you thought of using a different language to do this type of thing?
I don't really think PS2 Yabasic is very well suited to writing applications like this.
You need something with file handling, you'll probably be surprised at how easy it would be to switch to another language.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline bikemadness

  • Amiga 1200
  • ****
  • Posts: 322
  • Karma: 25
  • Hard players don't go home.
    • View Profile
Re: Word search and choose
« Reply #2 on: January 08, 2009 »
I once saw a diagram charting the changes and deaths of computer languages from the early beginnings to the late eighties.
There were literally hundreds! I could barely get my head around it.
There was one thing that has stuck in my mind. A woman progammer from the fifties suggested there be just one language.
Today, it's worse than ever. I've looked at a couple - just setting them up was a mission.
Yabasic is like a calculator. I want to pick it up, turn it on and use it.
One thing though. I understand using Jim's emulator to run yabasic programs.
But how do zipped up programs run? I've a feeling I know the answer, but I can't comprehend it.
Could you/anyone suggest a language, because I can't choose.
There are people who can't comprehend computer language at all.
Then there's you guys.
Then there's people like me. There's very few of me.
Have a Yahappy day.
I don't know what is wrong with the world - but I know how to fix it.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17422
  • Karma: 499
  • evil/good
    • View Profile
    • My Homepage
Re: Word search and choose
« Reply #3 on: January 08, 2009 »
What you seem to want is something that runs straight out of the box which doesn't have a complicated set up.

For that reason C++ is probably out, Devc is easy to set up but you still need to download and set up the platform sdk to do anything good.

You like Basic, if you want something for free then you could do a lot worse than Freebasic or Emergence basic, or even Blitz.

All of those languages have versions available that let you just extract the editor and compiler from an installer.

Purebasic is similar to Freebasic but needs to be paid for.

It really all depends what you'd like to do, any of the above would do the job for you and all of them come with online help and examples.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17422
  • Karma: 499
  • evil/good
    • View Profile
    • My Homepage
Re: Word search and choose
« Reply #4 on: January 08, 2009 »
Ps. To run a zipped program, you'd unzip it (right click on the zip file and then "extract") you'd then load the extracted file into PS2 Yabasic.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline bikemadness

  • Amiga 1200
  • ****
  • Posts: 322
  • Karma: 25
  • Hard players don't go home.
    • View Profile
Re: Word search and choose
« Reply #5 on: January 08, 2009 »
Sorry, didn't elaborate. Zipped up programs of other languages, like the ones in the comps. What do they use?
Have a Yahappy day.
I don't know what is wrong with the world - but I know how to fix it.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17422
  • Karma: 499
  • evil/good
    • View Profile
    • My Homepage
Re: Word search and choose
« Reply #6 on: January 08, 2009 »
Oh I see.

Well you need to have winzip or winrar installed on your computer http://www.winrar-full.info/uk/

Most computers already have this installed on them.
After you download the file, you'll see it's icon.

Click on the icon with the right mouse button and then click the;

extract to whatever/

option.
This will extract the archive to that directory.

When you visit that directory, usually you will find an exe file inside it, double clicking that exe file will launch the program.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline bikemadness

  • Amiga 1200
  • ****
  • Posts: 322
  • Karma: 25
  • Hard players don't go home.
    • View Profile
Re: Word search and choose
« Reply #7 on: January 09, 2009 »
FreeBasic. Is that the one with a big horse as its logo or displayed with it?
Have a Yahappy day.
I don't know what is wrong with the world - but I know how to fix it.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17422
  • Karma: 499
  • evil/good
    • View Profile
    • My Homepage
Re: Word search and choose
« Reply #8 on: January 09, 2009 »
Thats the one.

You can get it here;

http://fbide.freebasic.net/index.php?menuID=56

Very simple to install, although this is not the latest version I still reccommend you use this one at first because it will install quick and easy for you.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline bikemadness

  • Amiga 1200
  • ****
  • Posts: 322
  • Karma: 25
  • Hard players don't go home.
    • View Profile
Re: Word search and choose
« Reply #9 on: January 09, 2009 »
Thought so.

Managed to download a version some time ago. Open it. Drop a short program on it. Couldn't see how to make it run.

I'll try to see it through this time round.

And now for a final question. What is in winzip or winrar?
Have a Yahappy day.
I don't know what is wrong with the world - but I know how to fix it.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17422
  • Karma: 499
  • evil/good
    • View Profile
    • My Homepage
Re: Word search and choose
« Reply #10 on: January 09, 2009 »
And now for a final question. What is in winzip or winrar?

Winzip and winrar are the most common programs that are used to archive files.
They are used to compress files into a smaller file size, you need winrar or winzip to be able to extract them thereby returning them to thier original state.
Shockwave ^ Codigos
Challenge Trophies Won: