Questions tagged [basic-lang]
BASIC (an acronym for Beginner's All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages whose design philosophy emphasizes ease of use.
14 questions
2
votes
1
answer
65
views
Conversion of ZX81 BASIC Game to Pygame
I got the idea for this code from an article on converting ZX81 BASIC to Pygame. Although some code was provided in the article, I implemented this myself.
I'm pretty dubious about the approach of ...
5
votes
0
answers
77
views
Scheme interpreter in QBASIC
I wrote an interpreter for Scheme which includes stop and copy garbage collection.
...
5
votes
2
answers
133
views
Simple CLI File Encryption
This program is designed to work on the command line by piping stdin to stdout and encrypting or decrypting the input using a symmetric key.
Any suggestions for improvement would be greatly ...
3
votes
2
answers
137
views
A very basic Black Jack program, which just lets you play one round without any balance or betting
I just wanted to make a fun project for practise and as far as I know the program runs just fine without any flaws, but I would like to add an option to it, if a round ends to ask the user if he wants ...
5
votes
1
answer
688
views
Simple BASIC to Simpletron Machine Language compiler in C
I implemented a compiler that compiles a dialect of BASIC known as SimpleBASIC into Simpletron Machine Language to be run by the Simpletron simulator.
I wrote the manual for the SimpleBASIC compiler ...
14
votes
3
answers
2k
views
Python reimplementation of Lost In Space by Tim Hartnell
In a university library, there was copy of "Making The Most Of Your ZX 81" by Tim Hartnell. I flipped to an interesting page from the index and found this program in BASIC, and thought it interesting ...
2
votes
0
answers
44
views
RC4 in Sinclair BASIC; Working around one-indexed arrays
This is a program written in Sinclair BASIC (48 BASIC) for the Sinclair ZX Spectrum. It uses a hardcoded key (null right now) as seen in the bottom and outputs a stream of integers generated with RC4. ...
2
votes
0
answers
40
views
Finding the numerically listed string to the center algorthim
The algorithm takes input for a string's length for L, and the number of strings altogether for X. The hamming distance is for input D. Input Z calculates the exact amount of all possible characters ...
2
votes
0
answers
82
views
The Lost Forest: The Beginning (text based choose your own adventure)
I'm currently making a text based choose your own adventure game with possible RPG elements.
I'm somewhat new at programming. My father is very good ad QB64, but isn't always able to help me with my ...
5
votes
1
answer
166
views
Monty Hall in BBC BASIC and Python
How would I be able to improve the speed of this Monty Hall program?
Interestingly, the same code written using BBC BASIC for Windows completes the task in half the time of the Python code.
Python:
...
24
votes
2
answers
306
views
Commodore-FizzBuzz
I felt nostalgic recently, and decided to install a Commodore-64 emulator. C-64 BASIC 2.0 is the first language I ever programmed in... some 20 years ago (yes, C-64 was already well beyond deprecated ...
19
votes
2
answers
678
views
1
vote
1
answer
169
views
Calculating kills and deaths in a game
I'm trying to make a program that calculates your k/d ratio (kill/death, which is used in FPS games to make people believe that it's skill), how many kills you need without dying once to reach a ...
4
votes
0
answers
233
views
Collision system in Pong-like game
I am writing a game like Pong. Therefore I am using an entity system approach, so I use a Component-based design.
The hardest part until now was to write the collision system. As I just began with ...