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.
- Host: GitHub
- URL: https://github.com/pushfoo/tinytextgamejs
- Owner: pushfoo
- License: mit
- Created: 2021-02-20T15:34:40.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-05T04:27:43.000Z (over 1 year ago)
- Last Synced: 2024-11-05T05:24:42.295Z (over 1 year ago)
- Language: JavaScript
- Size: 41 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TinyTextGameJS
> [!NOTE]
> This repo will likely be split and updated due to:
- [Recent updates to JavaScript's `Set`][set_features]
- 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