O'Reilly logo

Mastering Rust by Vesa Kaihlavirta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

  1. Extend the arena game by showing more information about all the characters in the main GET /game page.
  2. The arena game loses all its state when the program is restarted. A typical technique for a web application is to store all the state in a relational database. Think of other ways. What would be the simplest way? Implement it.
  3. Implement a pause in the area game so that people cannot just spam the attack link.
  4. Make the game prettier: serve a static CSS and link it to the templates.
  5. Take a look at http://arewewebyet.org. Go through and review the current libraries.
  6. Try building the arena game on some of the more classic frameworks such as Iron or Nickel, or by using only Hyper and coding everything yourself.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required