All Projects → mykeels → whot

mykeels / whot

Licence: MIT license
A Game API for the Nigerian Whot Card Game. https://github.com/mykeels/whot-server, https://github.com/CodeByOmar/whot-app

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to whot

smooth-corners
CSS superellipse masks using the Houdini API
Stars: ✭ 133 (+160.78%)
Mutual labels:  square, circle
algorithmic-market-prediction
Implementation of Algorthmic Prediction of Candle Patterns
Stars: ✭ 21 (-58.82%)
Mutual labels:  market
ibkr
Interactive Brokers wrapper 🚩
Stars: ✭ 34 (-33.33%)
Mutual labels:  market
NEUP-FleaMarket
东北大学先锋市场
Stars: ✭ 18 (-64.71%)
Mutual labels:  market
darkmall
Incomplete example of free market running on ETH blockchain for educational purposes only
Stars: ✭ 51 (+0%)
Mutual labels:  market
EA31337-classes
📦📈 EA31337 framework (MQL library for writing trading Expert Advisors, indicators and scripts)
Stars: ✭ 103 (+101.96%)
Mutual labels:  market
Zlayoutmanager
Some custom LayoutManager .Such as SwipeCard、FLowLayout。一些自定义的LayoutManager,仿探探、人人影视 炫动滑动 卡片层叠 和流式布局等。
Stars: ✭ 2,404 (+4613.73%)
Mutual labels:  cards
StockPricePredictor
An S&P500 Stock Index Movement Predictor built with Machine Learning models
Stars: ✭ 29 (-43.14%)
Mutual labels:  market
every-eos
Decentralized exchange based on eos.io
Stars: ✭ 20 (-60.78%)
Mutual labels:  market
marketplace-feedback
This repository is for feedback regarding NativeScript Marketplace. Use the issues system here to submit feature requests, vote for existing ones or report bugs.
Stars: ✭ 16 (-68.63%)
Mutual labels:  market
TradeBot
Crypto trading bot using Binance API (Java)
Stars: ✭ 292 (+472.55%)
Mutual labels:  market
R-code-for-finance
R code for finance
Stars: ✭ 19 (-62.75%)
Mutual labels:  market
HTML-Crypto-Currency-Chart-Snippets
💹 Simple HTML Snippets to create Tickers / Charts of Cryptocurrencies with the TradingView API 💹
Stars: ✭ 89 (+74.51%)
Mutual labels:  market
bittrex-api
PHP client for the Bittrex API
Stars: ✭ 25 (-50.98%)
Mutual labels:  market
mnemocards
In addition to helping you memorise, this code helps you do other things that I don't remember...
Stars: ✭ 34 (-33.33%)
Mutual labels:  cards
Dmswipecards
🃏 Tinder like card interface
Stars: ✭ 244 (+378.43%)
Mutual labels:  cards
market
🧜‍♀️ THE Data Market
Stars: ✭ 149 (+192.16%)
Mutual labels:  market
Polkadex
An Orderbook-based Decentralized Exchange using the Substrate Blockchain Framework.
Stars: ✭ 223 (+337.25%)
Mutual labels:  market
market-pricing
Wrapper for the unofficial Steam Market Pricing API
Stars: ✭ 21 (-58.82%)
Mutual labels:  market
markets-react
📈 Check the stock market, from your phone!
Stars: ✭ 47 (-7.84%)
Mutual labels:  market

Whot!

build status follow on Twitter

Whot! is the national card game of Nigeria. It is played by young and old, and has come to be associated with fond memories, by me and a lot of people I know. Read More

This is a JS Library that will facilitate the Nigerian Whot! Game Play.

Why

I have started this project because I hope someone else builds a beautiful UI/UX around it (cos I can't).

I also want to play this game with my friends and family from my phone and laptop, and experience the same amount of fun I did playing it as a child.

How

npm install whot
import Game from "whot";

const game = new Game({
  noOfDecks: 1, //number of card decks to be used
  noOfPlayers: 4,
});

You can subscribe to the events that the Game instance offers via its emitter property.

To play a card:

const player = game.turn.next();

if (player.canPlay()) {
  /** pick a random card from the player's hand */
  const compatibleCardIndex = player
    .hand()
    .findIndex((card) => card.matches(game.pile.top()));
  player.play(compatibleCardIndex);
  game.turn.execute(game.pile.top());
} else {
  const marketCards = player.pick();
  game.turn.switch();
}

Read more in docs

Testing

Who

If you're interested, see the Contribution Guide.

When

On-going! Now on version 1.0.6 🙌

Related Projects

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].