An open API service indexing awesome lists of open source software.

https://github.com/pushfoo/tinytextgamejs

A small text game library & Rock, Paper, Scissors implementation to help learn modern JavaScript.
https://github.com/pushfoo/tinytextgamejs

Last synced: about 12 hours ago
JSON representation

A small text game library & Rock, Paper, Scissors implementation to help learn modern JavaScript.

Awesome Lists containing this project

README

          

# TinyTextGameJS

> [!NOTE]
> This repo will likely be split and updated due to:


  1. [Recent updates to JavaScript's `Set`][set_features]

  2. My own upcoming projects

You are probably looking for another library, such as [xterm.js](http://xtermjs.org/).

This is a learning project. It contains the following:

1. An enhanced subclass of [JavaScript's built-in Set][set_mdn_doc] which adds a `choose()` method
2. A text-based console object which echoes any input
3. A playable example implementation of Rock, Paper, Scissors using the two above

An older version is [live on neocities](https://pushfoo.neocities.org/20210220-rockpaperscissors/).

[set_features]: https://developer.mozilla.org/en-US/blog/javascript-set-methods/
[set_mdn_doc]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set

## Why did you write this?

1. To brush up on modern JavaScript features, such as modules
2. Demonstrate knowledge of JavaScript to prospective clients, teammates, & employers