
Install coder for C#, a beginner-friendly development environment, download the installer, follow the setup, and launch coder from the start menu or desktop before switching to Visual Studio or Eclipse.
Write your first program by typing forward and 150, then add a second instruction to move left 90 degrees and run with F5. Fix semicolon errors and learn command syntax.
Explore what a program is in C# as a precise sequence of instructions. Learn function calls, operators, and control structures, plus how to interpret error messages and exact syntax.
Create your own functions in C# by grouping eight drawing steps into a single draw square function using void, comments, arguments, and curly braces, then call it with no arguments.
Discover that functions like forward come from libraries you add to programs. Learn to add references in the build menu and use learn dot sketch dot dl for book’s functions.
Learn to build a Pong game by drawing a circle and a rectangle with circle and rect functions, understand the top-left coordinate system, and control background, fill, and stroke settings.
Draw shapes in C# with point, line, and stroke to render points, lines, ellipses, and rectangles, control colors 0–255, and ellipse mode or rect mode for center or corner interpretation.
draw a smiley using circle and line functions to render a 100x100 face at 50,50 with a mouth 30 to 70 and eyes 40,40; implement left and right eye functions.
Learn how variables store information and how data types determine allowable values, then use x and y coordinates to draw a circle and a square in C#.
Explore numbers in C#, defining int and double variables, using the assignment operator, and performing arithmetic—add, subtract, multiply, and divide—plus handling decimals and type conversion.
Learn about C# data types char, string, and bool, including using single and double quotes, creating variables like letter and first name, and displaying text with coordinates, size, and font.
Explore boolean logic and comparison operators in C#, using width and height to compare values, and apply and, or, and not with parentheses to control expressions.
Learn to use predefined variables like width, height, mouse x, and mouse y, and implement a draw function tied to timer to update painting area 60 times with circles.
Extend the pong game by making the racket follow the mouse y position and move toward the edge, using dynamic x, width, and height variables in the draw function.
Define variables for the ball: x, y, and speed to control its position and motion. Move the ball by adding speed to x and y each frame using circle.
Draw the left wall on the canvas by calculating the vertical center (height/2) and setting x to half the wall width; print values to understand the code.
Use the if else conditional to run code based on a logical expression, and in draw function move a 50-unit circle at y=100, resetting to -25 when it reaches width.
Apply logical connectives to combine conditions in if statements using and or operator, such as checking that the mouse y is within the window height.
Learn how to respond to keyboard input in C# by using key pressed and keycode variables to move a circle with the cursor keys, including up and down arrows.
Learn to make the pong ball bounce by checking borders and inverting speedy, using separate speedx and speedy for direction, and applying top and bottom bounces (right border next).
Develop pong game logic so the ball rebounds only when it hits the racket area in the range around the mouse center. Use a hit racket boolean to simplify collisions.
Add gimmicks to the pong game: shrink the ball and increase speed on hits, reveal a new bar after misses, and steadily reduce wicket height while boosting horizontal ball speed.
Learn how loops control repetition in programming, using a polygon with 30 corners, a logical condition, and a termination condition to repeat instructions.
Learn how to use the while loop in C#, avoid infinite loops by proper termination with a counter and break, and draw shapes and lines with random gray shades.
Explore how the for loop works in C#—init, condition, and increment, variable scope, and nesting to draw ten-pixel squares with x and y coordinates.
Render a 3d ball in Pong by drawing concentric circles with decreasing size and increasing gray scale, starting at size 50 with inner white, in C#.
Refactor the pong game by extracting the ball drawing into a separate function called draw ball and learn to pass a size parameter, starting with 50.
Understand what a programming paradigm is and how imperative, structured, and procedural styles use sequences, loops, conditionals, and functions to create programs, highlighting readability and maintenance risks.
Explore object oriented programming by modeling real objects with data and methods, using classes to create instances like Pong ball and paddle, each with its own position and speed.
Learn how to define a C# class as a blueprint, store the smiley's position as data, and implement show and move methods to draw and update its position.
Use the new operator to create an instance from a class by declaring a class-type variable, then call public methods like show and move with dot notation.
Create and manipulate a canvas class instance to draw ellipses with fill and transparency, rotate petals to form a flower, and trigger drawing on mouse clicks for object-oriented pong.
Turn the ball into a class with move, draw, and start methods in C#, implement random initial position, update coordinates by speed, bounce at the top and bottom edges, and provide getX and getY.
Turn the racket into a class that stores width, height, and x position, and add move, draw, and hit ball methods to detect collisions in the Pong game.
Extend the ball class by adding another ball, instantiate it, and call draw and move to manage balls; modify draw to display an image with a path and x,y coordinates.
Apply the most important programming styles, write simple programs in Codeforces, and prepare to switch to Visual Studio for deeper concepts, with examples from Coder dot HDL and Flappy Bird.
If you have never written a line of code before, then this is the right place for you to start. You will learn the basics of programming so that you can judge whether programming is something for you or not.
Do you know this? You want to learn something practical, but first you have to learn a lot of theory. This is different here: you will start writing your first program already in the second lesson. The essential components of a programming language will be explained and, above all, practiced without going into too much detail.
As programming language you will use C# (pronounced: "see sharp"), because it is very easy to learn and there are good tools for beginners. As a programming tool you will use the {Coder for C#}, which is very good for getting started.
Besides the most important topics around the programming language C# such as
Variables and operators
Conditional statements
Repeating statements (loops)
Objects (classes)
you will write many simple programs in the exercises. Besides graphical programs (driving a car, drawing a smiley, painting) you will program the game Pong as a continuous exercise. The game was developed in 1972 by the Atari company as a game console. As a vintage game it is very popular again today. The player hits the ball with a bat against a wall in single-game mode.
To keep track of the game, a cheat sheet is available for download, where you can look up the most important instructions.
To attend this course, you need a computer with the Windows operating system and should be able to use Windows.