Skip to main content

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.

2 votes
1 answer
61 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 ...
Robin Andrews's user avatar
4 votes
0 answers
71 views

Scheme interpreter in QBASIC

I wrote an interpreter for Scheme which includes stop and copy garbage collection. ...
Dean Menezes's user avatar
2 votes
0 answers
69 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 ...
muckypops's user avatar
3 votes
2 answers
134 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 ...
Maxell 's user avatar
5 votes
1 answer
674 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 ...
phillbush's user avatar
  • 864
13 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 ...
JohnnyApplesauce's user avatar
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. ...
speccylover's user avatar
2 votes
0 answers
37 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 ...
The T's user avatar
  • 451
2 votes
0 answers
79 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 ...
Patrick Coots's user avatar
5 votes
1 answer
165 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: ...
Edster's user avatar
  • 191
24 votes
2 answers
305 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 ...
Mathieu Guindon's user avatar
19 votes
2 answers
674 views

FizzBuzz in Commodore Basic

...
Mark's user avatar
  • 481
1 vote
1 answer
167 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 ...
ReaLNero's user avatar
4 votes
0 answers
231 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 ...
M0rgenstern's user avatar