amazons
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Peer to peer game of Amazons

npm Published on webcomponents.org

Install

yarn add amazons

How to Use

Attribute Type Default Description
hidden boolean false Whether the element should be displayed
<!-- 
  Import the element.

  The `module` query parameter expands "bare" imports to full unpkg.com urls.
  This means use of an import map isn't needed.
  @see https://unpkg.com#query-params
-->
<script type="module" src="//unpkg.com/amazons/dist/esm/index.js?module"></script>

<amazons-online
  name="WebComponents Demo"
  signaling="wss://ws.parkshade.com:443"
  .stuns="[
    stun:stun.stunprotocol.org,
    stun:stun.l.google.com:19302,
    stun:stun1.l.google.com:19302,
    stun:stun2.l.google.com:19302,
    stun:stun3.l.google.com:19302,
    stun:stun4.l.google.com:19302,
  ]"
  retries=3
  timeout=5000
></amazons-online>

Roadmap

  • Remove yellow square when opponent is trying to destroy

Readme

Keywords

none

Package Sidebar

Install

npm i amazons

Weekly Downloads

4

Version

0.0.5

License

Apache-2.0

Unpacked Size

93.8 kB

Total Files

29

Last publish

Collaborators

  • mothepro