Chasse au trésor
-
3 étapes
-
4 équipes
-
Chaque équipe comporte un Simplonien
-
Le trésor est séparé en 4
Raspberry Pi
Micro-ordinateur
- HDMI
- USB
- Ethernet
- MicroSD
- GPIO
- 700 Mhz
- 512 Mo
Ruby
cd led
irb
puts()
puts("Bonjour la Poste")
name = "Simplon"
puts("Bonjour " + name)
name = "la Poste"
puts("Bonjour " + name)
name.upcase()
Led.red()
load("led.rb")
Led.red()
Led.blue()
Led.pink()
Led.green()
Led.yellow()
Led.orange()
?
Bonjour
Hello
country = "France"
if country.include?("France")
puts("Bonjour")
end
country = "England"
if country.include?("France")
puts("Bonjour")
else
puts("Hello")
end
Bonjour
Hola
Hello
country = "Espagne"
if country.include?("France")
puts("Bonjour")
elsif country.include?("Espagne")
puts("hola")
elsif country.include?("England")
puts("Hello")
end
loop do
puts("J'aime le code")
end
products = ["courrier", "colis", "epargne"]
for product in products
puts(product)
end
Défi
ages = [14, 20, 10, 45]
ages = [14, 20, 10, 45]
for age in ages
end
ages = [14, 20, 10, 45]
for age in ages
if age > 17
Led.green()
else
Led.red()
end
end
cd led
ruby app.rb
Let's go
Merci
Chasse au trésor
By aghaniyassin
Chasse au trésor
- 1,158