Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.12 KB

File metadata and controls

29 lines (19 loc) · 1.12 KB

Pokemon PC

Tyeon Ford

Built for CSMC 240: Software Systems Program format & poke.h by Dr. M Charity & Dr. Ballash

A simulation of a Pokemon PC.

  • Allows trainers(users) to send Pokemon from their party to their PC, and vice versa.
  • Also allows them to see the data of Pokemon currently in their party.

Commands

  1. Show PC - Shows all the Pokemon currently in the PC
  2. Show Party - Shows all the Pokemon currently in the party
  3. Show Pokemon - Shows all the data for a specific (by index) Pokemon in the party
  4. Send Pokemon to PC - Sends a Pokemon (given by index) from the party to the PC
  5. Send Pokemon to Party - Sends a Pokemon (given by index) from the PC to the party
  6. Exit - Exits the Pokemon PC (given to you already)

Edge Cases

The code is still functional and does not allow the user to input a value but instead returns a different message on 3 occasions:

  1. If the party is empty (Show Pokemon, Show party, Send Pokemon to PC)

  2. If the PC is empty (Show PC, Send Pokemon to Party)

  3. If there is an invalid index given -- e.g. out of bounds (any option, including the menu)