January 2020
Intermediate to advanced
532 pages
13h 31m
English
There are actually two different syntaxes that we can use to define a function:
If the function is simple enough—for example, if it just has a single instruction—then it is usually more preferable to write the function in a single line. This style of function definition is very common for scientific computing projects, as many functions simply mimic the corresponding mathematical formulae.
For our game, we can just write four functions for moving the game pieces around the board by modifying the coordinates of the widget: ...
Read now
Unlock full access