O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Branching Statements: Decisions, Decisions

Decision-making is the first step to adding logic to your program and demonstrates the simplest form of intelligence. Small bugs like beetles have very simple decision-based intelligence of the sort that I am going to describe to you here. But taken to the next level, even a small rodent like a mouse has an exponentially more complex intelligence in the form of a brain comprised of a network of interconnected neuron cells—which is what computer scientists call a neural network. If you examine a neural network up close, it is made up of millions or billions of small decision-making neuron cells that perform conditional logic of this form:

IF condition is true THEN do one thing OTHERWISE do another thing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required