Steel Bat
  • Home
  • Profile
  • My Paintings
  • The Cavebats
  • Projects
  • Yabasic Progams
  • Model Railway
  • Forums
Yabasic

To be able to make use of any of the programs below your machine will need to have the Yabasic programming language installed, it is available from here -  

www.yabasic.de


Yabasic is similar enough to most 'standard' Basics to be easily mastered by anyone with Basic programming  experience but for the complete novice there are many Basic programming tuition manuals, either books or online articles.
It should be possible to resolve the few differences in syntax between YaBasic other Basics by studying the Yabasic manual
If any of my programs inspire your own ideas then great - but please don't regard any of my methods as neccessarily being the 'correct' way of doing things.   Although I have had some previous experience programming in Basic on Atari 8-bit and Amiga home computers, I am not in any way a qualified programmer.


Getting Started With Writing Your Own Programs
The first difficulty for the novice is that Yabasic doesn't have a built-in program-writing editor.
Fortunately Windows provides users with 'Notepad', a simple note writing app that will be quite adequate for writing and saving your Yabasic programs.
Press the Windows key > scroll down the programs/apps and look in > Windows Accessories for > Notepad
Open Notepad and into it type the following - 


clear screen
print "Hello World"
print 
print "This is a  sample program"
end


Now go up to the top left of Notepad and click on 'File' and select 'Save As'
In the Save-Window
 make sure the address line is pointing to the folder where you want to save your programs.
If one does not exist, you may need to create a new folder for your Yabasic programs in Documents.

In the lower part of the Save-Window,  in the File Name box, type        sampleprogram.yab    

Where it says 'Save As Type' use the drop-down to change from Text Documents (*.txt) to All Files

Click Save and the program should now be saved in your Yabasic folder with a colored icon.
From there the program can now be run either by double-clicking on the file 
or by right-clicking and selecting 'Execute'.

If you forget the .yab extender when saving you can't just change the filename -
 - you have to do the whole 'Save As' process again.


I don't have experience with using Linux
based systems but I would imagine there must similar note-writing programs to Notepad that would do the job instead.
 
 


To Use The Programs Here -
After clicking 'Download File' a page of code will appear.
Right click on the code and 'Select All' .
Copy and  Paste the code into Notepad.
This will then need to be 'Saved As' to your Yabasic folder with the filename having a .yab extender.
e.g.    fruitmachine.yab
Note - when saving, change file type from  Text Document (*.txt) to 'All Files'.

You will then be able to doubleclick on the filename in your Yabasic folder to run the program,
or right-click and use 'Send To' to create a desktop icon.

Fruit Machine

Picture
This program simulates a typical Fruit (slot) machine but without risking your hard-earned cash!
Complete with Hold and Nudge features




fruitmachine.yab
File Size: 27 kb
File Type: yab
Download File

Hi - Lo

Picture
A simple card game - if you think if the next card is higher or lower just input that option




hi_lo.yab
File Size: 16 kb
File Type: yab
Download File

Five Dice

Picture
Try and achieve the best sequence possible by either Rolling or Holding  the dice.






five_dice.yab
File Size: 10 kb
File Type: yab
Download File

Pontoon

Picture
Card game in the same vein as  Blackjack or Twentyones.




pontoon.yab
File Size: 18 kb
File Type: yab
Download File

Flying Saucers

Picture
Use your missiles to intercept and destroy the invading flying saucers!





flying_saucers.yab
File Size: 7 kb
File Type: yab
Download File

The Halloween Machine

Picture
  Another slot machine program
  This time with spooky
   halloween themed graphics
   and a trick-or-treat
   chance feature.

halloween_machine.yab
File Size: 34 kb
File Type: yab
Download File






©2008-2025 alan.steelbat
Powered by Create your own unique website with customizable templates.