24 Unfinished projects, continued

 

This chapter covers

  • Making a web server–based word-guessing game
  • Making a laser pointer for your cat
  • Making a directory and file navigator
  • Saying goodbye!

You’ve reached the very last chapter of the book. Congratulations! In this chapter, we will continue with three more unfinished projects so that you’ll have something to work on once you have finished reading the book. The first project in this chapter will be a simple guessing game, except that we’ll set up a web server to do it. The second project is a laser pointer that runs away when you try to touch it. And, finally, we will finish up with a GUI to navigate and view the files on your computer. Let’s get started!

24.1 Web server word-guessing game

The fourth unfinished project is a word-guessing game. A regular word-guessing game on the command line is extremely simple, and at this point, you could probably make one of those in your sleep. So, to make things more interesting, we are going to make a guessing game that takes place over a web server instead.

To make this, we will need to use one of Rust’s web frameworks. Rust has three main web frameworks as of 2023, although there are many more out there. Let’s quickly summarize the main three:

24.1.1 Setup and first code

24.1.2 Developing the code

24.1.3 Further development and cleanup

24.1.4 Over to you

24.2 Laser pointer

24.2.1 Setup and first code

24.2.2 Developing the code

24.2.3 Further development and cleanup

24.2.4 Over to you