I am trying to play the games on the vintage-basic page, from the title 101 Basic Games.
I have been copying and pasting from the .bas files to make sure the game works, because I always type so many errors. This game, however, isn't working from the paste. It gives the error "no such variable at 840", and sure enough, I can't find the variable Q defined before that line. I looked a little, but don't know what Q is up to, or where I should try to define it.
is anyone familiar with the game?? (it's mancala. I suppose I could imagine how a python mancala program would work that looks identical, but I'm not yet up for the task, being such a noob).
problem with game from "vintage basic"
Re: problem with game from "vintage basic"
What dialect of BASIC was this program originally written for? If it was for a Microsoft BASIC (or one of its descendants) then variables that have never previously been defined are assumed to be zero (in the case of a numeric variable) or an empty string (in the case of a string variable). So it may simply be a case of adding:
Code: Select all
Q = 0