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

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.