Warning
This page is located in archive. Go to the latest version of this course pages. Go the latest version of this page.

03 Adversarial I

How to efficiently go towards a goal. How to search when someone is playing against us.

  1. Exercises.
  2. Recursive factorial implementation and analysis.
  3. Learning about Reversi.

Efficient Goal Reaching

How to to optimize the number of trials by throwing eggs from a building!

Exercise I / Solving together

Exercise II / Solving together

Gold coins! Mine! How to maximize rewards and scam your colleagues thanks to “game theory”, “democracy”, and weight lifting!

Fibonacci Sequence

Program the recursive calculation of the Fibonacci sequence: $f(n) = f(n-1) + f(n-2)$.

Analyze the number of function calls and plunge depths.

Tree call:

Demo code:

Reversi: 2nd assigment

  • Download and get familiar with reversi (see here).
  • Launch the game.
  • Create your own player.
courses/be5b33kui/labs/weekly/week_03.txt · Last modified: 2023/03/06 10:46 by gamafili