Category Archives: intermediate

BASIC Intermediates

Hey, time goes fast! We’re covering intermediate ground and moving fast! Here is another archivelike page but for the intermediate stuff

  • If-Then and Goto Commands

In This section, we got to introduce the last of our commands, the if then and goto. We showcased a small game in which you took risks to roll a 6 sided die and hopefully not get snake-eyed, or stand.

  • The Small (And Big)Tricks To BASIC

In this section, we saw tricks that CodePress used to create better programs, as well as graphical design. We also saw the Majalo command

  • Referrers and Boxes

In this section, we got to see trap boxes made with if then, goto, and end commands and how it differs from HTML programming.

Hey guys! If you’ve been riding the BASIC rail line, you know what’s next: The Advanced!

Experiencedsitemaker

Advertisements

Referrers and Boxes

OK, we’ve approached the end of learning new commands, now we’ll actually focus on creating great programs with them. In this post, we’ll cover using trapped boxes with the goto, end, and if-then commands. In this program, we have a trap box:

Continue reading Referrers and Boxes

The Small (And Big) Tricks to BASIC programming

Even though we learn the basics, there must be some little tricks to BASIC:

  • Using The “Majalo” Command To Switch Players

In a player game, you might want to switch between players. A simple 2-person game between player “0” and player “1” ┬áprobably is hard to program, but “Majalo”, or the remainder of the quotient, is here to help! You can freely copy this line to use Majalo to switch/alternate between two players:

(a+1)%2

The % sign should symbol the Majalo command. Even though it might seem confusing at first, This should clear it up: Continue reading The Small (And Big) Tricks to BASIC programming

If Then Statements And Goto Command

After compiling all those things that we just did, we finally get to the even juicier part: If then! After this post, you should be able to create simple yet useful programs for yourselves. Here is my simple program:

1 a=0

2 print “You have:”,a

3 print “Hit or stand?”

4 input g

5 if g==”y” then goto 8

6 print “You stand with:”,a Continue reading If Then Statements And Goto Command