Code Monkey home page Code Monkey logo

trading-post's Introduction

Trading Post

An experiment in frontend programming with a functional language (Elm).

The aim is to make money by selling items to customers. It's not much of a game, but it functions without runtime errors and works well with screen-readers.

Try it out for yourself at: https://mark-chimes.github.io/trading-post/ (If the background doesn't load, try refreshing).

UI and Accessibility:

  • Blind-accessible (with screen-reader)
  • Supported on reasonable browsers
  • Runs on mobile
  • Dark-mode UI with grid layout
  • Background looks like wood
  • "Last Event" box so you know what just happened
  • "Story thus far" box so you know everything that's happened

Customers

  • Up to 26 different customers
  • Pick the customer to whom you want to speak
  • Sorted by affluence for your convenience
  • Kick out customers you don't like
  • Customers are described on entry
  • Different types of customers have preferences for different types of item
  • Game passes the Bechdel test, provided the player is female

Sales

  • Sell swords, axes, trail mix, and more!
  • Limited stock per day - so sell carefully
  • Automatic sales price based on what customer is willing to pay
  • Hint boxes tell you how to get a customer to pay more
  • Schmooze a customer to sell for more

Store and Time

  • "Wait" button lets you sit and do nothing for awhile
  • Work from 8am to 5pm
  • Clean the store for fun
  • Pay rent each day
  • End-of-day summary so you know how well you did
  • Purchase items after store close to sell the next day

trading-post's People

Contributors

mark-chimes avatar

Watchers

 avatar

trading-post's Issues

Basic graphics

E.g. pictures for items and/or for customers
Maybe the buttons themselves are / have pictures.

Some sort of a display to see what items you have on offer already would be nice.

Multiple items for Sale

Sell both swords and trail mix from customers - with each customer having a different preference.

Reputation System

  • More reputation means that customers show up at a faster rate.
  • Perhaps more reputation means customers are willing to pay more (long-term, would want higher-tier customers to show up).
  • Get extra reputation by having happy customers leave.

Customer info panel

For now:

  1. Show the customer name and basic description,
  2. Record whether the customer has been "inspected" or not. If they have, also show the additional description and the max price.

Manual schmoozing / complimenting of customer.

Customers have certain properties to them, and you can compliment or schmooze them based on what you know about them. E.g. compliment hair, physique, weapons, armour, separately depending on what they seem to be interested in.

Deduce customer info

Customers should give away some information about themselves that reveals how much they're willing to pay - perhaps via a conversation option (that takes time).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.