Giter VIP home page Giter VIP logo

birdyboard's Introduction

Birdyboard

Command Line Message Board

In this app, users will create and read public and private messages via terminal input.

Instructions

Create a series of prompts for users to create and reply to messages in a twitter/message board hybrid.

Main Menu

#########################################
##           Birdyboard~~~~~           ##
#########################################
1. New User Account
2. Select User
3. View Chirps
4. Public Chirp
5. Private Chirp
6. Exit
>

New User

Enter full name
>

Enter screen name
>

Select User

Which user is chriping?
1. Tweedleedee
2. BiffBoffin
...
>

View Chirps

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
>

New Chirp

Users can chirp publicly or they can start a private chirp with another user.

Public

Enter chirp text
>

Private

Chirp at
1. BiffBoffin
2. Lara_keet
...
9. Cancel
>

Enter chirp text
>

Requirements

  1. A full test suite with full coverage of all methods
  2. User data will be stored in a text file and should contain at minimum
  • A user ID number
  • Screen name
  • Full name
  1. 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

Challenge

Serialize the user and chirp data before storage & deserialize on read.

References

How to get started

  1. Tests first!
  2. You can use input() and print() to show prompts and read user input.
  3. You know how to use open(), readline() and write() to maniuplate data in text files.
  4. You've worked with CSV files for data storage.
  5. You can write conditional logic with if

Start with the basics

  1. Show the main menu and read the user's choice with an input().
  2. Based on the user's choice, print() their choice, i.e. "You chose to make a new chirp."
  3. Create the logic for each of the conditions to recieve further user input & display other menus.
  4. 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.

birdyboard's People

Contributors

corytohill avatar newevolution avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.