Battleship Algorithm
An introduction to algorithms. You can use algorithms to solve most tasks, this video looks at the optimum algorithm for winning a game of battleships.
An introduction to algorithms. You can use algorithms to solve most tasks, this video looks at the optimum algorithm for winning a game of battleships.
This video is an interesting look at how animation in computer games work and how they can look good. It’s useful watching if you’re doing anything with PyGame or any other games program.
The problem with globals, and why you should use subroutines When you’re writing something like a binary converter it isn’t too bad, but the code can start to get messy, with whole chunks of the program being in loops and things like that making tweaks and debugging more tricky. When you start writing a program …. Read More
http://compute-it.toxicode.fr/ Compute It is a fun way of looking at algorithms. The right hand side of the page gives you the instructions that you must follow. Through this you’ll encounter: Sequence – instructions are followed in order. Iteration – repeat statements mean the lines inside the curly brackets will be done that many times. Selection …. Read More