Skip to content

A simple, yet addictive turn-based game of buying and selling, in which users compete against scenarios to maximize their profits and pay off their bank loan.

License

Notifications You must be signed in to change notification settings

pnblake/farmers-market-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Farmer's Market: An addictive game of buying and selling

A simple, yet addictive turn-based game of buying and selling, in which users compete against scenarios to maximize their profits and pay off their bank loan.

I created this game as part of a Web Development course I took in the Winter/Spring of 2019.

Gameplay rules

Farmer's Market is a simple game of buying and selling.

The premise of the game is simple: You begin with $1000 loan to start your fruit and vegetable stand.

Every day, you are given a new scenario will cause produce prices to fluctuate. Your goal is to take advantage of swings in the market to earn a profit – buy low, sell high!

Each day you may make one transaction - buy, sell, or doing nothing (also considered a transaction).

But be on the look out, the bank comes knocking every 7 days and collects $25 from your cash on hand.

If you can survive till your loan is paid off, you win!

However, if you default on your debt - it's straight to debtor's prison! you lose!

Background

This app was my first project during a Software Engineering Immersive course at General Assembly in Washington, DC.

It uses HTML, CSS, and Javascript, and attempts to use SVG graphics as often as possible.

Getting Started

To play the game, feel free to visit the live site at: https://pnblake.com/farmers-market-game/

If you would like to tinker with the code, feel free to fork this repository and clone it.

Looking ahead

In the future, it'd be nice to completely refresh the UI, as well as add a "net worth" section with takes into account cash-on-hand and the value of fruit held in the inventory.

I'd also like to add a leaderboard (90s arcade style) for those finish the game.

And, it would be nice to tweak the loan amount so that gameplay is not nearly as long as it is right now.

I'd also like to considing making the sun "set" and "rise" with each newDay() function call, as a visual signal to the user that a new day has begun.

Contributing

I'm open to receiving pull-requests, and/or receiving issues. Thanks for helping out!

Authors

License

This project is licensed under the GNU GPL v3 - see the LICENSE.md file for details

Acknowledgments

A number of websites and apps were used to help make this project possible and as part of my learning process. They are listed below in no particular order.

About

A simple, yet addictive turn-based game of buying and selling, in which users compete against scenarios to maximize their profits and pay off their bank loan.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published