In this app, users will create and read public and private messages via terminal input.
Create a series of prompts for users to create and reply to messages in a twitter/message board hybrid.
#########################################
## Birdyboard~~~~~ ##
#########################################
1. New User Account
2. Select User
3. View Chirps
4. Public Chirp
5. Private Chirp
6. Exit
>
Enter full name
>
Enter screen name
>
Which user is chriping?
1. Tweedleedee
2. BiffBoffin
...
>
Chirps are separated into public and private chirps. Only the two users involved in a private chirp can see it in their Private Chirps section.
<< Private Chirps >>
1. BiffBoffin: Hey, you up for ping...
2. Lara_keet: Any idea what Jeff wa...
3. BiffBoffin: Hah, you got wrecked...
<< Public Chirps >>
4. Tweedleedee: Anybody know a good...
5. Fuzzy: Do NOT try the mega ultra...
6. Velton32: You guys have got to s...
...
9. Main Menu
>
Selecting an individual chirp takes you to that chirp's comment thread.
Tweedleedee: Anybody know a good Thai restaraunt in the area?
Fuzzy: Smiling Elephant is really good
BiffBoffin: The pad krapow is amazing!
...
1. Reply
2. Back
>
Users can chirp publicly or they can start a private chirp with another user.
Enter chirp text
>
Chirp at
1. BiffBoffin
2. Lara_keet
...
9. Cancel
>
Enter chirp text
>
- A full test suite with full coverage of all methods
- User data will be stored in a text file and should contain at minimum
- A user ID number
- Screen name
- Full name
- Chirps will be stored in a text file and should contain at minimum
- A chirp ID number
- Who authored the chirp
- Is this a public or private chirp
- Who the chirp is to (if applicable)
- The text content of the chirp
Serialize the user and chirp data before storage & deserialize on read.
- Tests first!
- You can use
input()
andprint()
to show prompts and read user input. - You know how to use
open()
,readline()
andwrite()
to maniuplate data in text files. - You've worked with CSV files for data storage.
- You can write conditional logic with
if
Start with the basics
- Show the main menu and read the user's choice with an
input()
. - Based on the user's choice,
print()
their choice, i.e. "You chose to make a new chirp." - Create the logic for each of the conditions to recieve further user input & display other menus.
- Once all user input is received, perform the appropriate file action (reading from or writing to the chirps file), and direct the user back to the appropriate menu.