DEV Community

Dade321
Dade321

Posted on

Codecademy CS101. Python terminal game. A gun shop.

Image description

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, Customerand 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:

GitHub logo Dade321 / CS101-Terminal-game-Gun-shop

Portfolio project for codecademy's computer science course.

Top comments (0)