zzz6519003 / blog

My blog about coding
4 stars 1 forks source link

Learn.Functional.Programming.with.Elixir #119

Open zzz6519003 opened 5 years ago

zzz6519003 commented 5 years ago

Structs are extensions of mapping structures.

zzz6519003 commented 5 years ago

Control Flow with Functions

zzz6519003 commented 5 years ago

Expanding Control with Guard Clauses

zzz6519003 commented 5 years ago

• In RPGs, players have points to spend on their character attributes. Create a function that returns the total number of points players have spent on their characters. The function will receive a map containing the strength, dexterity, and intelligence values. Each point in strength should be multi- plied by two, and dexterity and intelligence should be multiplied by three.