richpl / PyBasic

Simple interactive BASIC interpreter written in Python
GNU General Public License v3.0
165 stars 45 forks source link

Compatibility for Microsoft Basic and some display based functionality. #65

Closed abc-JYL closed 2 months ago

abc-JYL commented 5 months ago

I like this project and I find a github repo: https://github.com/coding-horror/basic-computer-games But I can't get most of the game work some can load but when executing produce a error. For display things maybe add CLS and E.T.C.

Or maybe give me some idea of any other BASIC interpreter the run those retro game.

abc-JYL commented 5 months ago

I have try this basic on Vice Commodore Emulator which work fine but when I type it in on PyBasic it stuck on the for loop (110) and the line 40

10 PRINT TAB(30);"SINE WAVE" 20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 30 PRINT: PRINT: PRINT: PRINT: PRINT 40 REMARKABLE PROGRAM BY DAVID AHL 50 B=0 100 REM START LONG LOOP 110 FOR T=0 TO 40 STEP .25 120 A=INT(26+25*SIN(T)) 130 PRINT TAB(A); 140 IF B=1 THEN 180 150 PRINT "CREATIVE" 160 B=1 170 GOTO 200 180 PRINT "COMPUTING" 190 B=0 200 NEXT T 999 END

palazzol commented 3 months ago

FYI, .25 is not parsed as a floating point number, but 0.25 works.

richpl commented 2 months ago

FYI, .25 is not parsed as a floating point number, but 0.25 works.

Thanks for pointing that out. I'm not actively supporting this any more and since the code fails gracefully I've simply updated the Readme to point out the need for a zero prefix