This content originally appeared on DEV Community and was authored by Dade321
Hello there.
I have written a simple python terminal game for a computer science course portfolio project. A game is about buying and selling weapons you stock up on merchandise and attempt to sell it to customers.
The games code revolve around for classes
(Store
, Supplier
, Customer
and Market
) which interact with one another throughout a game by a main while loop.
The gameplay follows this path:
- A short intro sequence in which you name your store and stock up on merchandise.
- You open up store for a day and try to sell your stock( 3 customers per day).
- Each customer has his own randomized preferences and will state them.
- You can attempt to sell a chosen weapon. The success of sale depends on customers preference and the price you set
- After you close shop you restock and wait for another day.
Here is a link to GitHub repository:
Dade321
/
CS101-Terminal-game-Gun-shop
Portfolio project for codecademy's computer science course.
This content originally appeared on DEV Community and was authored by Dade321

Dade321 | Sciencx (2023-02-23T20:16:57+00:00) Codecademy CS101. Python terminal game. A gun shop.. Retrieved from https://www.scien.cx/2023/02/23/codecademy-cs101-python-terminal-game-a-gun-shop/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.