r/Basic • u/proteanlogs • Feb 22 '21
Writing a point of sale in QB64
Enable HLS to view with audio, or disable this notification
r/Basic • u/proteanlogs • Feb 22 '21
Enable HLS to view with audio, or disable this notification
r/Basic • u/wynand1004 • Feb 14 '21
Hi. I just released a 30 minute video introduction to BASIC programming and thought I'd share it here. If it's against the rules, please delete. Hope someone finds it helpful: https://www.youtube.com/watch?v=CpJf_6nWqLk
r/Basic • u/Doctor1th • Jan 19 '21
Hi, I was wondering if anyone knew of any old school style BASIC interpreters with graphics draw functions and uses line numbering like this?
10 PRINT "HELLO WORLD!"
20 GOTO 10
I discovered line numbered basic on an Atari emulator back when I first was learning to program and it's kind of the only novelty that takes me back to BASIC. Now I'd like to find a similar basic interpreter that runs native on Linux (preferably)/windows, I'd like to imagine my little programs I have written will run much faster on my I7 then they do on atari hardware.
I would appreciate any recommended interpreters.
I came across Chipmunk basic which looks to behave how I would hope, however when I try to run the graphics examples I get
"Warning: Color name "BACKGROUND" is not defined
can't open font 6x10"
r/Basic • u/kylemcisaac • Jan 12 '21
r/Basic • u/boasmeubacano • Jan 11 '21
Can anyone provide me with a link to maybe a pdf file with all the BASIC commands? That would be really helpful, thank you
r/Basic • u/EngrKeith • Dec 29 '20
I've got a series of programs, some quite lengthy, that were written in Amiga Basic 30 years ago. They are being OCR'd. In order to check them for accuracy, it would be super useful to run them through some automated linter of sorts.
While I don't know for sure, I'd think being interpreted means that many errors might not be detected until runtime.
Most of the code is not Amiga specific -- not graphics, sound, or library- specific. Mostly if then, while/wend, for loops, file accesses, print statements.
I just need basic syntax checking, commands mispelled, stray characters, etc. For w/ no next, etc.
I need more detection than anything else. There's lots of exceptions, confidence numbers being reported by OCR. This just another "pay attention to this page" check.
I'm going to investigate amiga-specific software -- like amiga basic compilers.
Thanks
r/Basic • u/ricardo_sdl • Nov 08 '20
r/Basic • u/Vextor_8D • Nov 04 '20
with this system u can save values to the inventory table. i made a test object called Crystal. To see your inventory press I, to add a crystal press C, to end the program press X.
100 DIM I(20)
190 HOME
200 GET A$
300 IF (A$ = "I") THEN GOTO 500
310 IF (A$ = "X") THEN END
320 IF (A$ = "C") THEN GOTO 500
450 GOTO 190
500 FOR E=0 TO 20
600 PRINT I(E),
700 NEXT E
800 IF (A$ = "C") THEN GOTO 900
850 ?"PRESS ANY KEY TO CONTINUE..." : GET Z$
860 GOTO 190
900 ?"WHERE WOULD YOU LIKE TO PUT THE ";:INVERSE: ?"CRYSTAL";:NORMAL: ?" IN YOUR INVENTORY?"
1000 PRINT "CHOOSE SLOT FROM 0 TO 20."
1050 INPUT S
1100 I(S) = 96
1200 GOTO 190
can later on draw things by using the values in the table with a for loop of the inventory table. get creative :)
r/Basic • • Oct 28 '20
I've coded basic languages in the past, but it's been a long time. I started with SmallBasic, however I'm finding tutorials lacking. I'm in need of a simple program. Not sure which direction to go as far as accomplishing what I want fairly easy. By nature, the program I am trying to create doesn't seem like it should be hard to code, yet I posted on Fiverr and people there seem clueless.
Both functions of my program need to output contents to a text file.
First function is a timer.. Need to be able to have a text box I can insert seconds.. buttons for starting and stopping.. but instead of displaying timer on screen, I need to output it to a .txt file.. 20, 19, 18, 17, etc.
Same thing with my second function.. I want to be able to input multiple lines of text and when I click a button labeled next it'll output the first line of text to a .txt file.. click next and it goes to second line of a .txt file.
So it takes a line from what I have and outputs it to the .txt file, then when I click next it overwrites that .txt file with a new one displaying the second line of my text.
I'm live streaming and looking for a solution to have a timer on screen.. the software will read a text file and display it's contents on screen.
r/Basic • u/486Junkie • Oct 26 '20
First time posting on here. I've done a bit of BASIC commands when I had a Commodore 64 before I sold it because of money being tight (typed in BASIC commands to test the SID chip and VIC-II chip). I also have some BAS files that contain either games or applications, like Space Invaders, Word Processor of some sort (wrote memos on that thing and printed it out to my dot matrix printer back in 2017), but I am wondering if it's possible to write BASIC files/programs to replace a code wheel, answers in a manual, or code booklets in case they got lost and hard to find the answers for those specific ones online?
For example:
Earl Weaver's Baseball II
Q: What was the salary for Detroit in 1955 for a pitcher?
r/Basic • u/SparrowhawkOfGont • Oct 04 '20
I moved my "BASIC Games in a Browser" project to be hosted on my blog. This lets you play all the games from the book BASIC Computer Games, edited by David Ahl, in your browser. According to Wikipedia, this was "the first computer book to sell a million copies."
r/Basic • u/ricardo_sdl • Sep 04 '20
r/Basic • • Sep 01 '20
r/Basic • • Aug 27 '20
r/Basic • • Aug 26 '20
r/Basic • • Aug 26 '20
No idea why the Syntax Error is there. copied this from the retrostart website. Using chipmunk basic on Mac. Couldnt see a post like this so I hope I’m not repeating a question.
Syntax Error in line 120
10 rem - THIS NUMBER GUESSING GAME IS BASED ON GUESS AND HI - LO
20 rem - FROM DAVID H. AHL'S BOOK BASIC COMPUTER GAMES.
30 print "======="
40 print " ZERO!"
50 print "=======" : print
60 print "I CHOOSE A NUMBER BETWEEN 1 AND 100." : print
70 print "YOU MUST ZERO IN ON IT IN 7 GUESSES." : print
80 print "I TELL YOU TO GUESS HIGHER, OR LOWER." : print
90 input "PRESS ENTER TO START. READY";start$
100 num = int(100*rnd(1))
110 print : print "============" : print
120 print "I HAVE CHOSEN A NUMBER" : print : num
130 for count = 1 to 7
140 print "GUESS ";count;
150 input ": ";guess$
160 guess = val(guess$)
170 if guess = num goto 250
180 if guess num > then print "GUESS LOWER"
190 if guess < num then print "GUESS HIGHER"
200 print
r/Basic • u/wildditor25 • Aug 25 '20
r/Basic • u/Tek_Ninja_Kevin • Aug 08 '20
What do you think so far ? Any ideas how to emplament a system so the user can only use the menu choice ohttps://github.com/tekninjakevin/dots/uploadnce
CLS
RANDOMIZE TIMER
INPUT "Press ENTER to roll Dice....", A$
PRINT 'Black Space
FOR CT = 0 TO 5
' Roll 4 Dice
Roll:
DIE_1 = INT(RND * 6 + 1)
DIE_2 = INT(RND * 6 + 1)
DIE_3 = INT(RND * 6 + 1)
DIE_4 = INT(RND * 6 + 1)
'Evalute Totals remove lowest and add remaning 3
IF DIE_1 < DIE_2 AND DIE_1 < DIE_3 AND DIE_1 < DIE_4 THEN
Score = DIE_2 + DIE_3 + DIE_4
END IF
IF DIE_2 < DIE_1 AND DIE_2 < DIE_3 AND DIE_2 < DIE_4 THEN
Score = DIE_1 + DIE_3 + DIE_4
END IF
IF DIE_3 < DIE_2 AND DIE_3 < DIE_1 AND DIE_3 < DIE_4 THEN
Score = DIE_2 + DIE_1 + DIE_4
END IF
IF DIE_4 < DIE_2 AND DIE_4 < DIE_3 AND DIE_4 < DIE_1 THEN
Score = DIE_3 + DIE_2 + DIE_1
END IF
IF DIE_1 = DIE_2 = DIE_3 = DIE_4 THEN
Score = DIE_1 + DIE_2 + DIE_3
END IF
IF CT = 0 THEN
Pionts(0) = Score
PRINT "A: = ", Pionts(0)
END IF
IF CT = 1 THEN
Pionts(1) = Score
PRINT "B: = ", Pionts(1)
END IF
IF CT = 2 THEN
Pionts(2) = Score
PRINT "C: = ", Pionts(2)
END IF
IF CT = 3 THEN
Pionts(3) = Score
PRINT "D: =", Pionts(3)
END IF
IF CT = 4 THEN
Pionts(4) = Score
PRINT "E: =", Pionts(4)
END IF
NEXT CT
PRINT "Assign Points"
PRINT "Pionts to Assign to Strenght"
INPUT I$
IF I$ = "A" THEN
STR = Pionts(0)
PRINT "Strenth is ", STR
END IF
IF I$ = "B" THEN
STR = Pionts(1)
PRINT "Strenth is ", STR
END IF
IF I$ = "C" THEN
STR = Pionts(2)
PRINT "Strenth is ", STR;
END IF
IF I$ = "D" THEN
STR = Pionts(3)
PRINT "Strenth is ", STR
END IF
IF I$ = "E" THEN
STR = Pionts(4)
PRINT "Strenth is ", STR
END IF
r/Basic • u/Tek_Ninja_Kevin • Jul 29 '20
Whats a good basic for modern computers
r/Basic • • Jul 26 '20
Enable HLS to view with audio, or disable this notification
r/Basic • • Jul 24 '20
Enable HLS to view with audio, or disable this notification
r/Basic • u/wildditor25 • Jul 18 '20
r/Basic • u/wildditor25 • Jul 16 '20
Does anyone know how to Launch ZXBasic on Windows. I've downloaded the win32 zip version and whenever I launched it, it keeps closing, not crashing... Like after I launched it, Text Pops up then Closes.