v43-tier1-team-09

Chingu Voyage 43 - Tier 1 - Mad Libs Word Game

Table of contents

Overview

The project

A collaborative attempt at creating a Mad Libs Word Game as part of the Chingu Voyage program, following the Agile Methodology to build a web app that utilizes a Model View Controller (MVC) pattern. The game consists of one player prompting a list of words to substitute for blanks in a story before reading aloud.

Users should be able to:

Project Setup

The first step we took as a team was to create the required files for our project and ways to connect them. To organize, we did a simple Google search that led us to stories of different genres and scenarios, also with placeholders that would be used as input for adjectives, nouns, or a person’s name. In our file, these placeholders were delimited by double brackets in camelcase (ie. ).

Therefore, the second step after organizing all these stories in a single CSV file separated by categories, size, and placeholders, was to convert the CSV to a JSON file. Once open, we use a for loop to go over each JSON object of the file. The first loop identified all the placeholder variables in a given scenario. Those variables are stored in the var*list array. In the second loop, each variable is split into a list of words *(ie. “aTypeOfBuilding” becomes [“a”,”Type”,”Of”,”Building”])_ and then converted into a string variable _(ie. the list[“a”,”Type”,”Of”,”Building”] becomes the string “A type of building”)_. Those variables are then stored in the description_array.

Finally, both lists are zipped into a Python dictionary, converted, and added to their corresponding Scenario object. The resulting Scenario object is stored in a final array. The final array is saved in the stories.json file, and then we can use it as a component for replacing in the DOM.

Screenshot

General Instructions

Built with

Getting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

@babel/core
@babel/plugin-syntax-import-assertions
babel-loader
concurrently
css-loader
node-sass
sass-loader
serve
style-loader
webpack
webpack-cli

Installing

Our application is using npm for package management. To install all the necessary package follow these steps:

  1. Install dependencies
npm install
  1. Then launch the server
npm run dev
  1. The page will render in a new window.

Deployment

To deploy the package, enter the command:

npm run build

Authors

See also the list of contributors who participated in this project.

Acknowledgments

Contact Us

Please report any 🐛bug🐛 or provide us feedback 🤗