This program is a work-in-progress with basic functionality as a farming game that allows the user to water a plant and get a point each time the plant is harvested. The plant must be watered at least once every thirty seconds to keep it alive. The program was created using JavaScript in a WebPack environment, with particular emphasis on the Red-Green-Refactor testing and development process.
- CSS
- HTML
- JavaScript
- jQuery
- Node
- WebPack
- Brave
- Git Bash
- Google Chrome
- Microsoft Windows 10
- Visual Studio Code
- Download a web browser, such as Apple Safari, Brave, Google Chrome, Microsoft Edge, Mozilla Firefox, or Yandex.
- Navigate to https://github.com/taylorsomers/pizza-farm.
- Click the green "Clone or download" button at the right of the screen.
- Select "Download ZIP."
- Use a file extractor or unzip program (such as PeaZip, Unzipper, WinZip, Zipware, or 7-ZIP) to extract the ZIP files onto your computer.
- Open the directory containing the extracted files.
- Open your computer's terminal and navigate to the directory bearing the name of the program and containing the top level subdirectories and files.
- Enter the command "$ npm install" in the terminal and press "Enter".
- Enter the command "$ npm run build" in the terminal and press "Enter".
- Enter the command "$ npm run start" in the terminal and press "Enter".
- The program should open and run with its user interface accessible in your default web browser.
Program Behavior | Example Behavior | Example Output |
---|---|---|
Program will generate a crop that will grow over time if the user waters it. | "const tomato = new Tomato(); tomato;" | "Tomato {waterLevel: 30}" |
Crop will die if the user does not water it for 30 seconds. | "(@T=31s)" | "GAME OVER" |
After two minutes, the user may harvest the crop to get a point. | "(@T=121s) Click 'Harvest'" | "Points: 1" |
Once the user has acquired two points, the user wins. | "Points > 2" | "Alert: You Win!" |
If the user does not harvest their crop within thirty seconds of its becoming ready to harvest, the crop will wither and the user will starve. |
- No known bugs at this time, apart from the program being incomplete. If any are discovered, please feel free to reach out and let me know. If you would like to contribute any fixes or improvements, please do!
- Taylor Somers
- Beverly Potts
This website is licensed under the GNU General Public License GPLv3. (C) 2020 Taylor Somers. All rights reserved.