Learn Crystal in One Video

Crystal TutorialCrystal is one of the most exciting new languages to come out in some time, so I decided to teach the core language in one video. Crystal is as easy to use as Ruby, but has the speed of C. In this one video I’ll cover Data Types, Strings, Arrays, Map, Looping, Conditionals, Math, Hashes, Tuples, Procs, Functions, Enums, Symbols, Classes, Inheritance, Modules, Polymorphism, Structs, Exceptions, File IO and More.

A cheat follows the video below to help you learn. Continue reading Learn Crystal in One Video

Arduino 10 : Arduino Pong 2

Arduino ProgrammingAs we continue making Pong with an Arduino, I now create the code to make the ball handle collision detection, movement and way much more. We are building Pong on a constrained piece of hardware using raw binary bits and clever algorithms. Like before I’ll live code everything with very little preparation so that you can see my thinking process. All of the heavily commented code follows below. Continue reading Arduino 10 : Arduino Pong 2

Arduino 9 Arduino Pong

Arduino ProgrammingSomeone requested that I make the game Pong on a 16 x 2 LCD panel and so I start doing that in this tutorial. I’m going to live code everything with no preparation ahead of time, so that you can see how I solve this problem.

I focus this time on drawing on the LCD panel, moving the paddles and processing user input along with much more. All of the code and a transcript are found below. Continue reading Arduino 9 Arduino Pong

Arduino 8 Conway’s Game of Life

Arduino ProgrammingI tried to cover a ton in this tutorial. I’ll show how to use LCD Panels with Arduino. I then live code Conway’s Game of Life using an Arduino and a LCD Panel. Along the way we’ll create custom characters, convert from binary to base 10, generate random arrays, copy arrays and a whole lot more. I hope these functions will be useful in numerous personal projects you may have.

All of the code and a transcript follows the video below. Continue reading Arduino 8 Conway’s Game of Life