logo
Module 0 - Simple Cairo Scripting to build pyramids

0% Completed

Overview: Welcome to Cairo Mummies! You will learn the Cairo programming language by learning the ins and outs of building pyramids, tombs and mummies. In module one we will be building our first simple Cairo script to help begin understanding pyramids. This will start with just the basics: we will create a main function, write some simple helper functions and deal with assertions. You will also become familiar with the concept of a field element (felt), the primitive type of Cairo. What you will implement: For this section you will write two simple functions, one that will calculate the optimal number of area units to build the base of a pyramid, and another that will check if the base of a pyramid is being built correctly. Topics covered: Inputs, Outputs, functions, felts, main function, conditionals. Note: You can either skips the step by step lessons and solve the whole module or go step by step starting at Lesson 1. See you on the other side of your first script.




What you'll learn

Simple Cairo Scripting to build pyramids

Writing your Main Function

5 min
Start!

Simple Cairo Scripting to build pyramids

Creating Assertions

5 min

Simple Cairo Scripting to build pyramids

Function Parameters and Return Values

5-10 min

Simple Cairo Scripting to build pyramids

Writing Function Logic and Conditionals

5-10 min
Simple Cairo Scripting to build pyramids

Solve the Module Without Help

30 min

Twitter