Documentation
¶
Overview ¶
Add a new command: "id". So the users can query the games by id.
1. Before the loop, index the games by id (use a map).
- Add the "id" command. When a user types: id 2 It should print only the game with id: 2.
3. Handle the errors:
id wrong id id HEY wrong id id 10 sorry. i don't have the game id 1 #1: "god of war" (action adventure) $50 id 2 #2: "x-com 2" (strategy) $40
Click to show internal directories.
Click to hide internal directories.