Profvis

Verimli R Kodu Yazma

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

Verimli R Kodu Yazma

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)
Verimli R Kodu Yazma

Verimli R Kodu Yazma

Verimli R Kodu Yazma

Monopoly profvis

How would you optimize this code?

Verimli R Kodu Yazma

Let's practice!

Verimli R Kodu Yazma

Preparing Video For Download...