PyBasic icon indicating copy to clipboard operation
PyBasic copied to clipboard

Compatibility for Microsoft Basic and some display based functionality.

Open 4a594c opened this issue 1 year ago • 1 comments

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.

4a594c avatar Apr 05 '24 11:04 4a594c

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

4a594c avatar Apr 05 '24 11:04 4a594c

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

palazzol avatar Jun 13 '24 13:06 palazzol

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

richpl avatar Jul 01 '24 18:07 richpl