Profvis

Effizient R-Code schreiben

Colin Gillespie

Jumping Rivers & Newcastle University

Monopoly

  • 40 squares
    • 28 properties (22 streets + 4 stations + 2 utilities)
      • Players take turns moving by rolling dice
    • Buying properties
    • Charging other players
      • Sent to jail: three consecutive doubles in a single turn

Effizient R-Code schreiben

Monopoly Code

  • Around 100 lines of code
    • Simplified game
      • Reject the capitalist system: no money
      • No friends, only 1 player
    • simulate_monopoly(no_of_rolls)
Effizient R-Code schreiben

Effizient R-Code schreiben

Effizient R-Code schreiben

Monopoly profvis

How would you optimize this code?

Effizient R-Code schreiben

Let's practice!

Effizient R-Code schreiben

Preparing Video For Download...