npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

okeyground

v1.0.14

Published

oyunkeyf.net mobile application okey UI

Downloads

2

Readme

TODO

  • [ ] add open group by drag
  • [x] add move dests
  • [ ] notify move guide
  • animation

    • [x] add draw left animation
    • [x] add force animations
    • [x] add open series animation
    • [x] add leave-taken
    • [x] add collect open animation
    • [ ] add drop open animation
    • spectator/opponent
      • [x] add draw middle
      • [x] add discard
      • [x] add leave-taken
      • [x] add open-series
    • [x] add leave taken api
    • [ ] draw middle flip animation wait on board

BUG

  • [ ] draw left animation fail if no discard piece
  • [ ] self leave taken/collect open
  • [ ] allow drag group not left collide itself ~~- [ ] fix force vs user move collisions~~ not here ~~- [ ] fix group rainbow with fake color collision~~ not a bug
  • [ ] canDropOpens checks for both dop dos
  • [ ] slide pieces to make room / not replace
  • [ ] dont allow piece collision
  • [ ] remove wood dom, less width

Formatting

Piece

piece = color + number
number = 1-13
color = r|g|b|l
r = red
g = green
b = blue
l = black

example: r1 b13 g5

Board

16 x 2 dimensions

board = [piece|\s]{32}

example: r1b13g5 r1b13g5g5 g1

Discard

every direction discards to its right side. so up discards top left, down discards bottom right.

discard = [piece|\s]{4}

represents: [up, left, down, right]

example: r13b1l1

Middle

middle = middleCount + gosterge
gosterge = piece
middleCount = \d

example: 20r10

Opens

Opened series appear on the left side Opened pairs appear on the right side

opens = series/pairs
pairs = series = [piece|\s]

each piece group is separated by a \s

example: r13b1l1 r2b2l2 r1r2r3r4r5/r1r1 g2g2 l2l2

Drop Opens

drop open series = dos (piece) pos drop open pairs = dop (piece) pos

pos = append type + group index

append type = l|r|p

append left = l append right = r replace okey = p

example: l1 r0 p2

FEN

~~ fen = board/discard/series/pairs/middle/povSide ~~

fen = povSide/middle/board/discard/openSeries/openPairs

Rules

move pieces on board draw middle draw left discard discard end show sign drop open series drop open pairs

Moves

draw middle draw left discard discard end

api move (key, piece) turnSide == player

player

draw left / discard user move place on board api move noop

draw middle user move add middle placeholder api move (piece) replace placeholder

opponent draw middle / draw left / discard api move do move

API

// reconfigure the instance. Accepts all options mentioned above.
ground.set(options);

// make a move for turn side.
// dm | dl | dd | lt | dop | dos
ground.apiMove(move, piece);

// provide the drawn middle piece, required to end the draw middle progress.
ground.apiDrawMiddleEnd(piece)

Getters

// get piece groups on board
var pieceGroups = ground.getPieceGroups();